Stack corruption w/B19.1
Scott C. Gray
gray@voicenet.com
Tue Apr 28 07:39:00 GMT 1998
I have gone through the mailing archives to some extent and
havn't managed to find a solution to this yet, so here goes...
I have an application that uses Sybase's Open Client libraries
(its just an API to communicate with Sybase's database products).
After converting all of their necessary dll's using:
C:> impdef libxxx.dll > libxxx.def
C:> dlltool --as=as -k --dllname libxxx.dll --output-lib libxxx.a
--def libxxx.def
my program compiles and links flawlessly.
However, at run time it seems that calling almost any function
contained in my libraries generated using dlltool, the call
stack of the calling function gets corruption. I can see this
easily by doing the following:
function()
{
void *x = NULL;
fprintf( stderr, "x = %p\n", x ); /* Prints "x = 0x0" */
some_library_function();
fprintf( stderr, "x = %p\n", x ); /* Prints "x = 0x40f8b4" */
}
Any ideas? I have quite a large user community that would love
to see my program running on 95/NT (see my .sig for those of
you that use Sybase products).
Thanks in advance.
-scott
--
Scott C. Gray gray@voicenet.com "my keybard is brken"
Sybase Professional Services scott.gray@sybase.com
http://www.voicenet.com/~gray/sqsh.html
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
More information about the Cygwin
mailing list