473,385 Members | 1,275 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

C++ application creash after 1 minute

Hello,

I have a C++ MFC application which sometimes crashes exactly 1 minute after
starting the app. "sometimes" means maybe after the first start, maybe after
the tenth. The crash happens on Windows 2000 SP 4 but does not happen on
Windows XP. It happens only in release build, not in debug build.

I tested the application with two different testing tools (in debug build).
There seems to be no memory corruption or any other bad memory handling.

Dr Watson says on most computers:

eax=00000000 ebx=00000102 ecx=00000101 edx=ffffffff esi=00144608 edi=77e73ace
eip=00000000 esp=0221ff94 ebp=00007530 iopl=0 nv up ei pl zr na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000246
Funktion: <nosymbols>
FAULT ->00000000 ???
00000001 ???
00000002 ???
00000003 ???

*----> Stack Back Trace <----*

FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
0221FF90 77AA50EE 00000000 77A40000 00144608 0221FFEC !<nosymbols>
00007530 00000000 00000000 00000000 00000000 00000000
ole32!CoFreeAllLibraries

....but I have a case where the function name is different:

eax=00000000 ebx=00000102 ecx=00000101 edx=ffffffff esi=0014b928 edi=7c4fc468
eip=00000000 esp=0222ff94 ebp=00007530 iopl=0 nv up ei pl zr na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000246
function: <nosymbols>
FAULT ->00000000 ???
00000001 ???
00000002 ???
00000003 ???

*----> Stack Back Trace <----*

FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
0222FF90 77AB46FB 00000000 77A50000 0014B928 0222FFEC !<nosymbols>
00007530 00000000 00000000 00000000 00000000 00000000
ole32!UpdateDCOMSettings

Has anybody an idea what could cause the crash?

Nov 17 '05 #1
1 953

Some possible reasons:

1. Call through a function pointer whose value is 0.
If you call functions through pointers, check all places where it is done.
Check all such pointers for being 0 before calling the function.

2. Function return address on the stack corrupted, usually because
of writing past boundaries of an array allocated as a local variable.
Try to recompile the application with /GS compiler option.

3. Heap corruption (vtable pointer corrupted for an object allocated on the heap)
Test release build of your application with appropriate tools,
testing debug build is rarely enough.

Also produce debug information for your release build,
it will make debugging easier. Use the following options:
Compiler: /Zi
Linker: /debug

Also consider tracing to a file, it will tell you what the application
was doing before the crash.

Also check this link:
http://www.flounder.com/debug_release.htm

Regards,
Oleg


Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Peter | last post by:
If I want to build a web services application (not web application), what is the hardware requirement ? Does anyone have the experience?
11
by: Wayne | last post by:
I need an application to start run it's process, and save a log as it goes, it will be automated with a scheduled task and as such requires no interface. I don't want to use a service as it only...
2
by: Wayne | last post by:
I have an application where I added a comment as the first line of my Config file, as I found out I can't do this. However, an entry was made in the event log about the error (Source = .net...
6
by: | last post by:
Hi, Gary, I recompile my code under UICODE setting and it seems that it still crashes under Janpanese Language input. It is strange, it can run on that machine, but as long as Japanese IME is up,...
3
by: Jeff Greenland | last post by:
Hello everyone, I am having problems with Timers in a web application. They just seem to stop running after 15 minutes or so. My web application is set up like this: When a user hits a...
13
by: Åženol Akbulak | last post by:
Hi, I have an asp.net application. And I have worker threads which must run always (7x24). I start my threads in Application_Start, and I stop its in Application_Stop events. I log this...
6
by: Wayne Smith | last post by:
Hi, We are having a few problems with ASP.Net pages hanging during load when an Application Pool is recycled. To test this we have setup the following ASP.net page which refreshes every 2...
1
by: scolemann | last post by:
Hi all, I have my application pool set to recycle once a night. After recycling it takes about 1 minute for my application to reload. That is to say if I got to the site in the browser it...
6
by: Allan Ebdrup | last post by:
I have a webservice written in dotNet1.1 that does some stuff and calls a webservice written in dotNet 2.0. I'm using a Visual Studio 2005 webtest and loadtest to test webservice. When I load...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.