all groups > dotnet windows forms > march 2005 >
You're in the

dotnet windows forms

group:

Program exit unexpected


Program exit unexpected Jens Burup
3/24/2005 6:49:45 PM
dotnet windows forms:
Hi

I have a large App VS2003, that have started a very funny behaviar.
Suddenly without changes in the code, when starting run(F5) the compiller
starts doing its job,
but then the program stops before screen form shows up, and whith no
exceptions or errors thrown.
In the Debug output I can see the normal loading information and at the end
only this:
The program'[3088] myAPP.exe' has exited with code 0 (0x0)

I can trace the last line to be:

Public sub Main
Application.Run(New frmStart)
end sub

(This is my Startup object)

I am 100% sure there is no code or breakpoints that stops the program.

Now an even more strange things is, if I rename my app folder like Myapp to
MyApp1 then everything works normal again.

Is it posible this description could trick any hint where I should look?

Regards
Jens

Re: Program exit unexpected Jens Burup
3/25/2005 5:47:22 PM
I allready stepped through all lines as you mentioned, but no sign of this
spookey thing...
Last year I used the MS block in an other app, and maybe this can bring me
closer to an answer.
In the mean time I compiled my not working App and builded a complete setup
package,
and installed this on another machine, and it worked perfectly, so the
conclusion must be:
It is a single machine issue and not a global problem.
Even my machine is only 1 year old,and equipped with sufficient power for
almost everything
thx for your input
jens..


"Some Guy" <someguy@biteme.com> skrev i en meddelelse
news:OWedLoTMFHA.3340@TK2MSFTNGP14.phx.gbl...
[quoted text, click to view]

Re: Program exit unexpected Some Guy
3/25/2005 11:56:17 PM
It could be that the problem is in the initialization code for frmStart.
This will make it appear to bomb out on the application.run line... and
you'll get no info whatsoever telling you why. Cool huh...

When similar things happen to me I find I have to set a breakpoint in the
form init code and then step through it line by line. It is painful but
generally works. You might want to look at Microsoft's application blocks
(on MSDN somewhere)... there is one that implements a global exception
handler. This may (I emphasize MAY as I have not tried it yet) allow you to
catch and correctly handle the real culprit. Otherwise do the line by line
step through.

As for the renaming bit - you've got me there....

I've also found that at times nuking the project's obj folder and
recompiling helps.

Hope that helps....


[quoted text, click to view]

AddThis Social Bookmark Button