Link to home
Start Free TrialLog in
Avatar of bflVijay
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?
Avatar of jhance
jhance

Could be any number of things...

Have you run ths application in the VC++ debugger and isolated WHERE it is crashing?  That's usually a good placed to start.
Avatar of bflVijay

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...



ASKER CERTIFIED SOLUTION
Avatar of jhance
jhance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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...



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...



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!!
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().ShowScrollBar(SB_BOTH);