<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello.
<br><br>Here next episode of the conversion of a useful unit into a universal library.
<br>In a recent topic i was taking about the total victory of the conversion in Linux OS.
<br>Now im fighting to do it in Windows.
<br>I have Windows 7-64 bit.
<br>If compiling the library with fpc-64bit, all is working perfectly. A 64bit-program can access all the functions of the library.
<br>But, compiling the library with fpc-32bit, if a 32bit-program try to access the 32bit-library, i get that error message :<br> <br>C:\Users\moi>gdb c:\uoslibwin\src\uoslibtest.exe
<br>(gdb) run
<br>Starting program: c:\uoslibwin\src\uoslibtest.exe
<br>[New Thread 3060.0x2b0]
<br>Program received signal SIGSEGV, Segmentation fault.
<br>0x10002c40 in uos_AddDSPVolumeIn () from c:\uoslibwin\src\uos.dll
<br>(gdb)<br> <br>And here with extended gdb
<br>Program received signal SIGSEGV, Segmentation fault.
<br>0x10002cf0 in SYSTEM_$$_CPUINCLOCKED$LONGINT () from c:\uoslibwin\src\uos.dll
<br>(gdb)
<br> <br>I have changed all cdecl into stdcall but without luck...<br> <br>Does the fpc-32 bit libraries work only on a Windows-32bit system (or did i do something wrong ?)<br>Will it be the same for Linux-32bit (inside a multi-arch 64bit system) ?
<br><br>Many thanks.
<br><br>Fred.<br> </div></body>
</html>