Re: exe disappears itself in 5-10 minutes
can you run the application in debug mode?
if so put a break point on the OnClose() or OnDestory() in the dialog or on some destractor when you will get there.... use call stack to see how did you get there....and from here its an easy task.
btw: the app doesnt crash right? casue if its crashing forget what i just said.
Cheers
Re: exe disappears itself in 5-10 minutes
Quote:
Originally Posted by rajeevktripathi
*Program is even terminated when i am continually clicking on varios controls, and tabs of dialog box.
*Also program is even terminated when there are no activities being done on the PC
Please reply .
If still need our help, please, look at the post #2 and try to do what has been suggested:
Quote:
please, describe your problem more clearly and post the code or/and a small project reproducing such "erroneous behaviour"...
Re: exe disappears itself in 5-10 minutes
Quote:
Originally Posted by golanshahar
can you run the application in debug mode?
if so put a break point on the OnClose() or OnDestory() in the dialog or on some destractur when you will get there.... use call stack to see how did you get there....and from here its an easy task.
Cheers
:D
It has been already suggested (in post#5), but... :cry: :cry: OP do NOT want to perform anything....
Re: exe disappears itself in 5-10 minutes
Quote:
Originally Posted by VictorN
:D
It has been already suggested (in post#5), but... :cry: :cry: OP do NOT want to perform anything....
you are right i didnt notice :blush:
Cheers
Re: exe disappears itself in 5-10 minutes
Quote:
Originally Posted by golanshahar
you are right i didnt notice :blush:
Cheers
Don't worry, its not yourth but OP's problem! ;)
Re: exe disappears itself in 5-10 minutes
Quote:
Originally Posted by rajeevktripathi
* I have checked task manager there is no instance of program after termination.
OK.
Quote:
* Time span is not more than 10 mins.
This is likely not to matter.
Quote:
*Program is even terminated when i am continually clicking on varios controls, and tabs of dialog box.
But it doesn't crash, right? There isn't any error message displayed before it's vanished, right?
Quote:
*Also program is even terminated when there are no activities being done on the PC
Did you spot any pattern than leads to program termination?
How big is the code? Can you zip it and post it here (unless it's a proprietary code that should not be made public)?
Re: exe disappears itself in 5-10 minutes
A program "disappearing" is also the symptom of an unhandled exception that is terminating the application. If this is the case, looking for WM_CLOSE, or any functions that terminate applications will not find the problem.
Regards,
Paul McKenzie
Re: exe disappears itself in 5-10 minutes
Quote:
Originally Posted by Paul McKenzie
A program "disappearing" is also the symptom of an unhandled exception that is terminating the application. If this is the case, looking for WM_CLOSE, or any functions that terminate applications will not find the problem.
Regards,
Paul McKenzie
Yes, however, the information about this exception has to appear in a debug window!
Re: exe disappears itself in 5-10 minutes
Quote:
Originally Posted by VictorN
Yes, however, the information about this exception has to appear in a debug window!
Are you sure about this? I've come across cases where the cause of the problem was an exception error, stack overflow, etc, and the only way to know this was to run the app under the debugger. Otherwise running the app stand-alone without the debugger shows the app just disappearing into thin air, similar to what the OP describes.
If they are starting their app under the debugger, then yes, all of those cases will be displayed for them when the app crashes, and I don't think the OP has even run their app under the debugger.
Regards,
Paul McKenzie
Re: exe disappears itself in 5-10 minutes
Of course, I meant and already (earlier in this thread) suggested OP to debug this Application....
Quote:
Originally Posted by Paul McKenzie
...and I don't think the OP has even run their app under the debugger
It looks like You are right! :sick: :sick:
Re: exe disappears itself in 5-10 minutes
Quote:
Originally Posted by rajeevktripathi
* I have checked task manager there is no instance of program after termination.
* Time span is not more than 10 mins.
*Program is even terminated when i am continually clicking on varios controls, and tabs of dialog box.
*Also program is even terminated when there are no activities being done on the PC
Why not do the simplest thing? Run your app under the debugger. When it "disappears", either it will be an exception (then the debugger will pop a window saying an exception has occured), or the output will display that the application terminated normally, meaning that the application was terminated "on purpose", i.e. an exception didn't cause the termination.
If it is an exception, then you inspect the call stack. If the app terminated normally, then you look into your code to see if something terminates the app prematurely.
Checking task manager and all of those things are nice, but they are not necessary for this problem. Just run your application under a debugger first, and get all of the information necessary to determine *where* in the code the crash or termination is occuring. Then you figure out *why* it happens. It looks like you haven't figured out the "where" yet.
Regards,
Paul McKenzie
Re: exe disappears itself in 5-10 minutes
Quote:
Originally Posted by rajeevktripathi
Information related to program are as as follows
1) Program is written in VC++ 6.0.
2) WMI Classes for retrieving system hardware & software Inforamation.
3) Used Registry keys for information retrieval,(here I used RegOpenKeyEx(),RegEnumVale(), RegEnumKey() etc.)
4) Used some APIs for information retrieva(like OS Version, Computer Name, Number of processors etc.)
5) All the property pages are added to sheet in OnInitDialog() function.
6) Also everything is written in OnInitDialog().
7) For every resource(S/W or H/W) a linked list is created .
8) node of Linked list is structure whose attributes are TCHAR and _bstr_t type
9)structures contains all the information retrieved by either WMI, or by Registry or by APIs.
10) Finally values are displayed on property pages through structures.
* I have checked task manager there is no instance of program after termination.
* Time span is not more than 10 mins.
*Program is even terminated when i am continually clicking on varios controls, and tabs of dialog box.
*Also program is even terminated when there are no activities being done on the PC
Please reply .
Thanks
Information related to program are as as follows
1) Car is build by Ford.
2) I use magnifying glass to check sertain parts in a car.
3) I use wreches size #6 to remove some screws.
4) I read labrl to retrieve information (like Year of manufacturing, Site name, number of cylinders etc.)
5) All the gas is added.
6) Also everything is done before I turn the ignition.
7) For every key (S/W or H/W) I have chain link.
8) Each key has metal and plastic part.
9) My notebook contains information either from looking through magnifying glass or reading labels.
10) Finally I display everything through windshield.
After some time after start my car discontinue running.
* I have checked engine after it stops and it is still there.
* Time span is not more than 10 mins.
* Car stops even id I turn lights and radio on an off continually.
*Also car stops if I do not do a thing.
After reading my explanation, if you will be able to tell me what is stoping engine I will tell you what is wrong with your application.
Re: exe disappears itself in 5-10 minutes
Quote:
Originally Posted by JohnCz
After reading my explanation, if you will be able to tell me what is stoping engine I will tell you what is wrong with your application.
You must have killed an attorney. The engine has the unsual bad habit to stop when running over an attorney. :D:D:D:D. Have I guess correctly? Please, please, tell me I'm right :p.
Re: exe disappears itself in 5-10 minutes
Nope, sorry. I did not move the car.
Re: exe disappears itself in 5-10 minutes
Quote:
Originally Posted by JohnCz
Nope, sorry. I did not move the car.
Somebody put a potato up your exhaust pipe.
What do I win?