bflVijay
asked on
Dump on first run...
My mfc app is set up using installshield.
On each first run after reboot - the app dumps giving a stack trace (the program has performed and illegal operation and will be shut down).
After that it runs fine each time, till the first time after boot.
What could be the reason for this to happen?
On each first run after reboot - the app dumps giving a stack trace (the program has performed and illegal operation and will be shut down).
After that it runs fine each time, till the first time after boot.
What could be the reason for this to happen?
ASKER
The problem is that it does not crash on the development environment either debug/release mode.
On target environment (win9X) it crashes only the first time after boot. The second time it runs properly. Since there is consistency, I thought someone might have come across a similar problem...
On target environment (win9X) it crashes only the first time after boot. The second time it runs properly. Since there is consistency, I thought someone might have come across a similar problem...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The problem is that it does not crash on the development environment either debug/release mode.
On target environment (win9X) it crashes only the first time after boot. The second time it runs properly. Since there is consistency, I thought someone might have come across a similar problem...
On target environment (win9X) it crashes only the first time after boot. The second time it runs properly. Since there is consistency, I thought someone might have come across a similar problem...
ASKER
The problem is that it does not crash on the development environment either debug/release mode.
On target environment (win9X) it crashes only the first time after boot. The second time it runs properly. Since there is consistency, I thought someone might have come across a similar problem...
On target environment (win9X) it crashes only the first time after boot. The second time it runs properly. Since there is consistency, I thought someone might have come across a similar problem...
So what are we to do here? If you cannot or will not supply any information and check the things that have been suggested, HOW CAN YOU EXPECT ANY RESOLUTION?
I gave you 5 concrete things to try and check and you've not indicated that you've checked into ANY of them!!
I gave you 5 concrete things to try and check and you've not indicated that you've checked into ANY of them!!
ASKER
No offence intended - but the browser refresh resulted in the duplicated messages. Also I could not reply till I actually found the suggestion either useful or otherwise.
Well - I opted for option 5 (Msg Boxes) because I felt 1 or 2 was not the possible reason, I cannot have VC on the target environment (it works then!!) - and downloading SoftICE was not possible.
The dump was caused by the following lines of code in the OnSize() of my RichEditView Class (any reasons why??)
ShowScrollBar(SB_BOTH);
GetRichEditCtrl().ShowScro llBar(SB_B OTH);
Well - I opted for option 5 (Msg Boxes) because I felt 1 or 2 was not the possible reason, I cannot have VC on the target environment (it works then!!) - and downloading SoftICE was not possible.
The dump was caused by the following lines of code in the OnSize() of my RichEditView Class (any reasons why??)
ShowScrollBar(SB_BOTH);
GetRichEditCtrl().ShowScro
Have you run ths application in the VC++ debugger and isolated WHERE it is crashing? That's usually a good placed to start.