Problem running code in IDE

  • Thread starter Thread starter Michael C
  • Start date Start date
M

Michael C

Hi all,

Just started having a problem with the IDE. When I try to 'start' code in
the IDE the IDE locks up. It builds and re-builds OK, and I can run the
generated EXE outside the IDE, but when I hit the start button the IDE just
hangs. This just started happening recently (last few days). I'm not sure
if it's something else I installed recently or copying Projects from my
laptop to the Desktop and then editing/running them or something else. I'm
about to run the VS.NET setup again and see if that solves it, but I was
wondering if anyone else has had any problems like this? I'm running VS.NET
2003 on XP (on both computers).

Thanks,
Michael C.
 
Michael said:
Hi all,

Just started having a problem with the IDE. When I try to 'start' code in
the IDE the IDE locks up. It builds and re-builds OK, and I can run the
generated EXE outside the IDE, but when I hit the start button the IDE
just
hangs. This just started happening recently (last few days). I'm not
sure if it's something else I installed recently or copying Projects from
my
laptop to the Desktop and then editing/running them or something else.
I'm about to run the VS.NET setup again and see if that solves it, but I
was
wondering if anyone else has had any problems like this? I'm running
VS.NET 2003 on XP (on both computers).

Thanks,
Michael C.

What type of app?

Console?
Windows Forms?
Web Service?
NT Service?

?
?
?
 
It started with a Windows Form app that runs fine on the laptop in the IDE,
but I've also tried various other Windows Form apps and Console apps,
including the ubiquitous "hello world" just to see if anything at all would
run. Nothing works.

Thanks,
Michael C
 
Michael said:
It started with a Windows Form app that runs fine on the laptop in the
IDE, but I've also tried various other Windows Form apps and Console apps,
including the ubiquitous "hello world" just to see if anything at all
would
run. Nothing works.

Can you set and hit any break points? Be sure to run in 'debug' mode.

Also, have you updated your .NET framework to 1.1 ?
 
I remember during the beta phase I had a similar problem with a WinFowms
app; it turned out I had removed the [STAThread] attribute from the Main
method. Replacing it fixed it.
 
This problem cropped up last fall. I never saw a resolution posted to the
newsgroups. The thread, if you want to google it, was titled:
"VS hangs when start debug for any app" in microsoft.public.vsnet.debugging

Microsoft did post a KB article about a debugging element consuming 100% of
all resources, but it wasn't clear to me how to avoid the error or what
conditions to expect the error in:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;307169
I do not know if this is related or not.

Sorry I couldn't help more.

--- Nick
 
[STAThread] is still there... I've even created a couple of new simple apps
from scratch, but that didn't work either. I tried reinstalling VS from the
original installation CD's and it seems to have stopped in the middle...

Odd..

Thanks,
Michael C

Simon Smith said:
I remember during the beta phase I had a similar problem with a WinFowms
app; it turned out I had removed the [STAThread] attribute from the Main
method. Replacing it fixed it.

--
Simon Smith
simon dot s at ghytred dot com
www.ghytred.com/NewsLook - NNTP Client for Outlook


It started with a Windows Form app that runs fine on the laptop in the IDE,
but I've also tried various other Windows Form apps and Console apps,
including the ubiquitous "hello world" just to see if anything at all would
run. Nothing works.

Thanks,
Michael C

code
in
 
Tried running in both debug mode and in release mode. The app compiles but
locks up before it even starts running. Odd...

Thanks,
Michael C
 
Back
Top