On Thursday 13 July 2006 12:31, Jose Manuel wrote:
>>> The error code is: 193 0x00C1 N/A %1 is not a
>>> valid Win32 application.
>>>
>>> But that doesn't make sense.
[...]
>
> I guess FPC is creating the DLL with no relocation section in it.
> Another issue is that meaningless error. It
On 7/13/06, Sergei Gorelkin <[EMAIL PROTECTED]> wrote:
May be, for some reason DLLs are created without the relocation
information (or with malformed relocation info)?
Yes, you really guessed right =)
I found an explanation on the fpc documentation about it that says exactly that:
http://www.
> > The error code is: 193 0x00C1 N/A %1 is not a
> valid Win32 application.
> >
> > But that doesn?t make sense.
>
> See if FPC has some directive for setting the DLL baseaddress
> and set it,
> and see if that matters.
I guess FPC is creating the DLL with no relocation section in
Thursday, July 13, 2006, 4:04:05 PM, Felipe wrote:
FMdC> The error code is: 193 0x00C1 N/A %1 is not a valid Win32
application..
FMdC> But that doesn´t make sense.
May be, for some reason DLLs are created without the relocation
information (or with malformed relocation info)? When you jus
> The error code is: 1930x00C1 N/A %1 is not a
> valid Win32 application.
>
> But that doesn´t make sense.
Can you try indicating another address space to be loaded in the 2nd lib?
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
> > You might get a clue if you print last windows error.
> > (sysutils.getlastoserror) after the 2nd loadlib
>
> The error code is: 1930x00C1 N/A %1 is not a valid Win32
> application.
>
> But that doesn?t make sense.
See if FPC has some directive for setting the DLL baseaddress a
You might get a clue if you print last windows error.
(sysutils.getlastoserror) after the 2nd loadlib
The error code is: 193 0x00C1 N/A %1 is not a valid Win32 application.
But that doesn´t make sense.
--
Felipe Monteiro de Carvalho
___
fpc-deve
> var
> Lib, Lib2: HINST;
> begin
> Lib := LoadLibrary('C:\Programas\Apache\pmodules\newlib.dll');
> Lib2 := LoadLibrary('C:\Programas\Apache\pmodules\newlib2.dll');
> WriteLn(Lib);
> WriteLn(Lib2);
> Sleep(5000);
> FreeLibrary(Lib);
> FreeLibrary(Lib2);
> end.
>
> The WriteLn stat
Hello,
I am experiencing a problem with libraries on Free Pascal 2.0.2. It
seams that a software cannot load 2 dlls created with Free Pascal.
Loading the first library will be successfull, but loading the second
library will fail. All of this is on Windows XP.
I noticed this when Apache would su