View Full Version : ESP-Value was not prop. saved

August 13, 2004, 12:31:39
When I use the ICImaging-Control, the call to


and the following calls allways get the warning message box:

Debug Error!
File i386/chkesp.c
Line: 42
The value of ESP was not properly saved across a function call. This
is usally a result of calling a function declared with one calling convention
with a function pointer declared with a different calling convention.

after clicking through all this boxes, the programm still seem to work, but
it is strange at all.
In my settings for the project the default calling way is set: __cdecl.
I work with Visual C++ 6.0, latest SP.
Thanks for any help for this problem.

Jens Liley

Johannes Vogel
August 13, 2004, 19:58:28

Which version of IC are you using?

August 13, 2004, 20:51:52
I use 1.41 on Windows XP.
Thanks for any further idea.
Jens Liley

Stefan Geissler
August 16, 2004, 07:47:40

this error sounds for a link mix of debug and release versions: You may compile and link a debug version of of your program and use the release DLLs of IC Imaging Control at runtime. This normally creates an error in the the funtion _CRTIsValidHeapPointer.

August 16, 2004, 10:43:49
thanks for the tip, but it is a little bit different. My release-code is
compiled with the release-vesions of DCamProp.lib and
When I use the debug-versions of the related dlls for executing, the above
warning occur, when I use the release-version of the
dlls, the program crashed somewhere in the TIS_UDSHL05.dll-Module.

(Even if I use the debug-vesions of DCamProp.lib and
TIS_UDSHL05.lib for linking and the debug-dlls for executing,
the warning occur.)


August 16, 2004, 21:27:40
Hello Again,
I did some more test. The same computer under Win2000
with the same files (app + debug or release-dlls) and the
same hardware seems to work fine with no errors!
The driver for the VideoToFirewire-Converter is up to date
on 2000 and xp.
So xp could have a problem?! The only thing I did is
using Windows Update frequently and on xp is the
lastest release of DirectX9.
But I have no more Ideas left now.
Thanks for more suggestions...

Stefan Geissler
August 17, 2004, 07:13:04
Hello Jens,

The ESP error could also be caused if the programm was not compiled with the "Multithreaded DLL" options. IC Imaging Control and your program should run on Windows 2000 and Windows XP without problems.
What version of IC Imaging Control do you use?

August 17, 2004, 09:33:22
I use the "Multithreaded DLL" option. I use the 1.41 Version,
as mentioned above.
The program crashed somewhere in the TIS_UDSHL05.dll-Module
under Windows XP, so it is not running so far....

August 17, 2004, 14:23:27
Hello Again,
I received the Library-Update 2.0. After upgrading everything
is ok now under Windows XP. I will work with 2.0 now and
hope, my problems with the ESP-Error are gone.
Thanks for help