Help with Unusal Debug Error.
-
I need some help. I am experiencing an error while attempting to use a function I have imported from a COM inproc DLL. After I import the library I start using it. There is one function that gives me a debug error. It comes out of the i386\chkesp.c file. It says that a ChkESP error has occurred and that it usually happens with an issue with using a function pointer that using a different calling convention that a defined function (I checked and this isn't it. My calling conventions are fine __stdcall). After tracing through the code I find out that it occurs after the COM function completes but before the next line of code exectued in the .tlh file's wrapper functions. Note that if I just click ignore the error everything still works fine. In my app I am using the library in the code looks something like: ITCPServerPtr tcp = ITCPServerPtr( CLSID_CoTCPPort ); tcp->OpenPort(); //works bool check = tcp->SetBuffers(newSize); //works bool check2 = tcp->StartupServer(port); ... the error happens after the actual COM StartupServer func. executes but before a return happens. Has anyone ever seen anything like this before. If so anyone know how to fix it? I am in the dark. FYI: When I build release ver. all works and no error pops up. Joseph Dempsey jdempsey@cox.rr.com Joseph.Dempsey@thermobio.com "Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning." --anonymous
-
I need some help. I am experiencing an error while attempting to use a function I have imported from a COM inproc DLL. After I import the library I start using it. There is one function that gives me a debug error. It comes out of the i386\chkesp.c file. It says that a ChkESP error has occurred and that it usually happens with an issue with using a function pointer that using a different calling convention that a defined function (I checked and this isn't it. My calling conventions are fine __stdcall). After tracing through the code I find out that it occurs after the COM function completes but before the next line of code exectued in the .tlh file's wrapper functions. Note that if I just click ignore the error everything still works fine. In my app I am using the library in the code looks something like: ITCPServerPtr tcp = ITCPServerPtr( CLSID_CoTCPPort ); tcp->OpenPort(); //works bool check = tcp->SetBuffers(newSize); //works bool check2 = tcp->StartupServer(port); ... the error happens after the actual COM StartupServer func. executes but before a return happens. Has anyone ever seen anything like this before. If so anyone know how to fix it? I am in the dark. FYI: When I build release ver. all works and no error pops up. Joseph Dempsey jdempsey@cox.rr.com Joseph.Dempsey@thermobio.com "Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning." --anonymous
i get this when the IDL and the DLL disagree on something. usually a rebuild-all fixes it for me. -c ------------------------------ Smaller Animals Software, Inc. http://www.smalleranimals.com
-
i get this when the IDL and the DLL disagree on something. usually a rebuild-all fixes it for me. -c ------------------------------ Smaller Animals Software, Inc. http://www.smalleranimals.com
tried that already.. Doesn't do any good. Thanks though. Joseph Dempsey jdempsey@cox.rr.com Joseph.Dempsey@thermobio.com "Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning." --anonymous