vs2005 express hangs

C

colin

Hi,

I seem to have introduced a probem into my application wich cuases the IDE
to hang
when I switch from debug to reease mode. it doesnt even consume any cpu %,
just sits there, with the debug/release drop down menu stil half visible,
and not even the close buton or taskbar menu works -
has to be clsoed from taskmanager.

It seemed to start after I did 2 things,
I added a file from a referenced library
just some enums as it was internal,
and also added some [Conditional("DEBUG")]
statements around some debug functions,
it hung as soon a I tried to change to release mode.

I undid the changes and it was ok,
so I put them back again and it was ok too,
so i dont know if this even had anything to do with it.
but now it hangs about 1 time in 10.
(just when I switch to relase mode)

Ive tried rebuilding all etc.

its just midly iritating, but ive found before
on a new project the IDE is much faster,
so is there a good way to do a clean,
short of starting a new project and copying all the files accross

thanks
Colin =^.^=
 
J

jp2msft

I've had problems with VS2005, too, and I've got Professional.

My solution has been to go to Add/Remove Programs, find Visual Studio, and
do a Repair/Ininstall. Just repair everything and start running it again.

I'm not sure what causes flukes like this, but I've had it happen twice on
the machine I am using now in the last 6 months.

Hope that helps!
 
C

colin

thanks i might try that, i have also got xna installed too,
but it seems that if I leave out the
[conditional("DEBUG")]
lines it seems ok, the one that seemed to be cuasing the trouble was
a function that was called from a virtual function - thats all it called,
as I found out you cant apply the conditional to the virtual function as I
wanted.

It was just a debug function wich just dumped all the windows
messages to a file by overiding the windproc.

I copied a sample docking system and was just testing it out but ended up
writing mosyt of my app
in the sample project, I think I need to create a new project and weed out
al the stuff I dont actually need.
but its got quite large lol.

I have managed to merge about 4 seperate programs id written
into one multi windowed IDE type monster now lol.

Colin =^.^-



jp2msft said:
I've had problems with VS2005, too, and I've got Professional.

My solution has been to go to Add/Remove Programs, find Visual Studio, and
do a Repair/Ininstall. Just repair everything and start running it again.

I'm not sure what causes flukes like this, but I've had it happen twice on
the machine I am using now in the last 6 months.

Hope that helps!

colin said:
Hi,

I seem to have introduced a probem into my application wich cuases the
IDE
to hang
when I switch from debug to reease mode. it doesnt even consume any cpu
%,
just sits there, with the debug/release drop down menu stil half visible,
and not even the close buton or taskbar menu works -
has to be clsoed from taskmanager.

It seemed to start after I did 2 things,
I added a file from a referenced library
just some enums as it was internal,
and also added some [Conditional("DEBUG")]
statements around some debug functions,
it hung as soon a I tried to change to release mode.

I undid the changes and it was ok,
so I put them back again and it was ok too,
so i dont know if this even had anything to do with it.
but now it hangs about 1 time in 10.
(just when I switch to relase mode)

Ive tried rebuilding all etc.

its just midly iritating, but ive found before
on a new project the IDE is much faster,
so is there a good way to do a clean,
short of starting a new project and copying all the files accross

thanks
Colin =^.^=
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top