Visual studio 2008 crashes on loading a form in a project


i believe visual studio shoudl hangle problem better crashing on loading form in designer imtimidating result

---------------------------
microsoft visual studio
---------------------------
error encountered while opening associated documents last time solution loaded. document load being skipped during solution load in order avoid error.
---------------------------
ok  
---------------------------

[window title]
microsoft windows

[main instruction]
microsoft visual studio has encountered problem , needs close.

[content]
if had files open contained unsaved changes, these changes might lost.

[v] view problem details  [check online solution , close program] [close program] [debug program]

problem signature:
  problem event name: appcrash
  application name: devenv.exe
  application version: 9.0.30729.1
  application timestamp: 488f2b50
  fault module name: mscorwks.dll
  fault module version: 2.0.50727.4206
  fault module timestamp: 4bf4c6a7
  exception code: c00000fd
  exception offset: 0002b205
  os version: 6.0.6002.2.2.0.256.1
  locale id: 4105

additional information problem:
  lcid: 1033

read our privacy statement:
  http://go.microsoft.com/fwlink/?linkid=50163&clcid=0x0409

the project has been working faultlessly long time without problem , able close , open visual studio forms open until evening. 1 of  the forms refuse load w/o crashing visual studio 2008

after searching , various experimenting, stumbled on thread crashing loading resources in constructor.

 

out of desperation, moved resource loading code separate member , call form's load handler within try catch clause.

 

finally manager load form in designer wihtou hassle.

i sure hope next version of visual studio have better diagnostic message instead of crashes saw.

 

  1. is there else should watch prevent future crashes on opening form?
  2. what other common causes for  visual studio crash  on loading form?

the next version of vs out.  vs has difficult responsibility since loads , runs code.  difficult ensure app runs if have load other people's code well.  if don't believe try creating simple app load arbitrary code , run it.  try handle possible errors may occur.  fyi there 2 errors code cannot handle try-catch blocks you'll have clever handle cases.

nevertheless if find scenario vs crashes consistently can report issue ms @ connect (http://connect.microsoft.com) site.

as cases vs might crash there many.  vs loads packages, addins , extensions.  these run in context of vs if of these trash memory vs going down.  means you'll want run stuff feel confident in.  on top of vs has load , run third-party components might have these need stable.  in cases vs fail load designer rather crash or attempt recover.  alert code may have issue should resolved.  pretty rare vs crash because of component can happen.  true legacy components com vs has no control on memory.

michael taylor - 2/27/2011
http://msmvps.com/blogs/p3net



Archived Forums V  >  Visual C# IDE



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'