Cannot debug app!

  • Thread starter Thread starter Peter Morris [Droopy eyes software]
  • Start date Start date
P

Peter Morris [Droopy eyes software]

I get this now and again. It seems that to fix it I just have to go to bed
and try again the next day, unfortunately that is too time consuming :-)

---------------------------
Microsoft Visual Studio
---------------------------
The remote connection to the device has been lost. Please verify the device
connection and restart debugging.
---------------------------
OK
---------------------------


When my apps runs it does this

1) Create an instance of a form in a DLL and show it (splash screen)
2) Load some more DLLs off disk
3) Close the splash screen
4) Create an instance of a different form in one of the loaded DLLs and show
it modally

I have tried resetting my PPC and my desktop, but it makes no difference. I
have seen this question asked many times but not seen an answer.

Can anyone help? Even just suggestings of things to try would be great!


Thanks

Pete
 
AHA!

The DLL in which I stored my second form class was compiled as RELEASE
instead of DEBUG!
 
PS, I also find that the remote desktop viewer app on the PPC often causes
this problem for me too!
 
GRRRR! I spoke too soon!

It was good for a single run only, now it is throwing the error again!
 
This is probably an ActiveSync problem. I see it consistently if I leave
ActiveSync connected and the system goes into hibernate on my laptop.
ActiveSync goes stupid and "forgets" it had a connection. I recommend making
sure you uncradle your device or your emulator before you logoff or
hibernate. If that is indeed the problem, the only other solution is to
restart your system.
 
I think I've had this problem.
The solution is to remove all breakepoints from project and start debug.
It helps me many times.

Best Regards
Darek
 
Back
Top