From: dkr <dr...@pe...> - 2005-05-09 14:56:38
|
Hi Geoff, and all others that gave me a helping hand. I've changed the malloc as you advised to ib_util_malloc so that line is now: char *buffer=(char*)ib_util_malloc(256); To be an the save side I've taken the ib_util.dll from the server and used implib to import the right entrypoints. Recompiled the dll and moved it into the udf-folder on the servermachine. If I now do a request I get the error first time I try and the fb-server stops the exception now says 'unknown software exception' :o( I've also tried a download of binary ib_util_bor.lib - neither this works. Any idea? Thanx to all. Dieter Geoff Worboys schrieb: > Dieter, > > You have already received info about call conventions. This > little post is to highlight... > > >> char *buffer=(char*)malloc(256); > > ^^^^^^^^^^^^ > ... > >>Compiled with bcc32 and ilink > > > You should be using ib_util_malloc (and linking with ib_util) > so that you allocate the memory using the same services as FB. > And of course remember to use FREE_IT on the declaration. > |