Debug Error I386 Chkesp.c
Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your Blog quick answersQ&A Ask a Question View Unanswered Questions View All Questions... C# questions Linux questions ASP.NET questions SQL questions VB.NET questions discussionsforums All Message Boards... Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI C# Free Tools Objective-C and Swift Database Hardware & Devices> System Admin Hosting and Servers Java .NET Framework Android iOS Mobile SharePoint Silverlight / WPF Visual Basic Web Development Site Bugs / Suggestions Spam and Abuse Watch features Competitions News The Insider Newsletter The Daily Build Newsletter Newsletter archive Surveys Product Showcase Research Library CodeProject Stuff communitylounge Who's Who Most Valuable Professionals The Lounge The Insider News The Weird & The Wonderful The Soapbox Press Releases Non-English Language > General Indian Topics General Chinese Topics help What is 'CodeProject'? General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ while runtime the error message displays like : debug error File i386\chkesp.c line 42 Rate this: Please Sign up or sign in to vote. See more: VC6 C++ Program:my.exe debug error File i386\chkesp.c Line 42 The valueof ESP was not properly saved across fucntion call.This is usally a result of calling a fucntion declared with one calling convention with a function pointer declared witha declared calling convention.. In C/C++ settings it is _cdecl convention. the code is which i am coverting bmp to png format char *inBuffer = new char[inStreamSize]; uncompressedBufferSize = inStreamSize*40; unCompressedBuffer = new char[uncompressedBufferSize]; inFile.read (inBuffer, inStreamSize); //inStreamSize = inFile.gcount(); zs = new z_stream; zs->next_in = (unsigned char *)inBuffer; //point to beginning of compressed file zs->avail_in = inFile.gcount(); //specify the size of the compressed file zs->next_out = (unsigned char *)unCompressedBuffer; //point to where the uncompressed file will be zs->avail_out = uncompressedBufferSize; //specify size of buffer to hold uncompressed file zs->zalloc = (alloc_func)0; zs->zfree = (free_func)0; zs->d
Forum Visual C++ & C++ Programming Visual C++ Programming What is the ESP of debug error? If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register or Login before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 2 of 2 Thread: What is the ESP of debug error? Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to http://www.codeproject.com/Questions/372809/while-running-the-application-debug-error-Filei Threaded Mode May 27th, 2002,07:07 AM #1 WenZhong He View Profile View Forum Posts Junior Member Join Date May 2002 Location Republic of China Posts 5 What is the ESP of debug error? Originally my application can work well, but after I add a variable in CFormView class, the following information is shown on the screen when it begins to work even though it passes the Build successfully. Microsoft Visual C++ Debug Library http://forums.codeguru.com/showthread.php?190932-What-is-the-ESP-of-debug-error Debug Error! ............ Module File:i386\chkesp.c line:42 The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention. The following is my questions: The first is what the ESP is. The second is how to understand 'calling a function declared with one calling convention with a function pointer declared with a different calling convention'. Reply With Quote May 27th, 2002,07:32 AM #2 antony holmes View Profile View Forum Posts Member Join Date Nov 2001 Location London. England Posts 114 Hello The ESP is the stack pointer. Basically when you call a routine all the variables which are local to the function (and passed to the function) are placed on the stack, this advances the stack pointer. When the function is exited all variables/parameters are removed from the stack. The stack pointer must be same after the function has returned as before it is entered. If not it is a major error. If you can identify which function call this appears in. The calling convention is set globally for a project in the setting under C/C++, Code generation. The calling convention can be change for an individual function using keywords in the
Version Translate Topic jigarmehtamscit Members Profile Send Private Message Find Members Posts Visit Members Homepage Add to Buddy List Groupie Joined: 29 October 2005 Location: India Status: Offline Points: 64 Post Options Post Reply Quotejigarmehtamscit Report Post Thanks(0) QuoteReply http://forum.codejock.com/forum_posts.asp?TID=3412 Topic: Application crashing saying chkesp.c erroPosted: 15 December 2005 at 11:56am Hi,File : i386\chkesp.cLine : 42The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention. What does this error mean ? my executable (developed using just codejock classes, no functionality from my side is attached.. just a sample one..) runs perfectly debug error on my machine but when i give it on to the client machine.. it crashes while loading.. by giving above error.. I need to solve this issue.. how can I ?? Thx. Regards, Jigar Mehta Oleg Members Profile Send Private Message Find Members Posts Visit Members Homepage Add to Buddy List Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 Post Options Post Reply QuoteOleg Report Post Thanks(0) QuoteReply Posted: 16 December debug error i386 2005 at 4:15am Hi, Such problem can appear if you use another version/compiller for ToolkitPro dll Do you deliver Toolkit dll? Be sure you copy dll from bin directory of compiller you use to make your application. (if you have some VC versions installed) Oleg, Support TeamCODEJOCK SOFTWARE SOLUTIONS Warren Members Profile Send Private Message Find Members Posts Add to Buddy List Groupie Joined: 23 February 2005 Status: Offline Points: 64 Post Options Post Reply QuoteWarren Report Post Thanks(0) QuoteReply Posted: 16 December 2005 at 11:22am Have you tried checking the DLLs you are using? In my experience, if a program works fine on one box, and dies on another, DLLs are the first place I look. Get dependecy walker: http://www.dependencywalker.com/ and run this on your .exe (just drag/drop the .exe into the Dependency Walker) on BOTH the working box, and the client box where it dies. This will show you the DLLs loaded, and they are probably different. If this is the problem, check which DLLs you will need to install, and/or use the vcredist program from Microsoft to update the client system with the problem. Best of Luck... Warren jigarmehtamscit Members Profile Send Private Message Find Members Posts Visit Members Homepage Add to Buddy List Groupie Joined: 29 October 2005 Location: India Status: Offline Points: 64 Post Options Post Reply Quotejigarmehtamscit Report Post Thanks(0) QuoteReply Poste