Hello.

Here next episode of the conversion of a useful unit into a universal library.
In a recent topic i was taking about the total victory of the conversion in 
Linux OS.
Now im fighting to do it in Windows.
I have Windows 7-64 bit.
If compiling the library with fpc-64bit, all is working perfectly. A 
64bit-program can access all the functions of the library.
But, compiling the library with fpc-32bit, if a 32bit-program try to access the 
32bit-library, i get that error message :
 
C:\Users\moi>gdb c:\uoslibwin\src\uoslibtest.exe
(gdb) run
Starting program: c:\uoslibwin\src\uoslibtest.exe
[New Thread 3060.0x2b0]
Program received signal SIGSEGV, Segmentation fault.
0x10002c40 in uos_AddDSPVolumeIn () from c:\uoslibwin\src\uos.dll
(gdb)
 
And here with extended  gdb
Program received signal SIGSEGV, Segmentation fault.
0x10002cf0 in SYSTEM_$$_CPUINCLOCKED$LONGINT () from c:\uoslibwin\src\uos.dll
(gdb)
 
I have changed all  cdecl  into stdcall but without luck...
 
Does the fpc-32 bit libraries work only on a Windows-32bit system (or did i do 
something wrong ?)
Will it be the same for Linux-32bit (inside a multi-arch 64bit system) ?

Many thanks.

Fred.
                                          
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to