Re: [fpc-devel] Problem loading 2 dlls created on Free Pascal

2006-07-13 Thread Vinzent Hoefler
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

Re: Re[2]: [fpc-devel] Problem loading 2 dlls created on Free Pascal

2006-07-13 Thread Felipe Monteiro de Carvalho
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.

RE: [fpc-devel] Problem loading 2 dlls created on Free Pascal

2006-07-13 Thread Jose Manuel
> > 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

Re[2]: [fpc-devel] Problem loading 2 dlls created on Free Pascal

2006-07-13 Thread Sergei Gorelkin
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

RE: [fpc-devel] Problem loading 2 dlls created on Free Pascal

2006-07-13 Thread Jose Manuel
> 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

Re: [fpc-devel] Problem loading 2 dlls created on Free Pascal

2006-07-13 Thread Marco van de Voort
> > 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

Re: [fpc-devel] Problem loading 2 dlls created on Free Pascal

2006-07-13 Thread Felipe Monteiro de Carvalho
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

Re: [fpc-devel] Problem loading 2 dlls created on Free Pascal

2006-07-13 Thread Marco van de Voort
> 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

[fpc-devel] Problem loading 2 dlls created on Free Pascal

2006-07-12 Thread Felipe Monteiro de Carvalho
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