See what's going on with flipcode!




This section of the archives stores flipcode's complete Developer Toolbox collection, featuring a variety of mini-articles and source code contributions from our readers.

 

  Recovering From The MSVC Class Browser Bug
  Submitted by



A little trick that one of my students showed me today (Hello everyone at Thomson Cambridge!). MSVC has a really annoying bug that appears occasionially in versions 5.0 and 6.0 (not sure about service packs) that causes it to crash. It appears to be something to do with either the class view mechanism or the Intellisense menus. Well, needless to say, the crash always occurs when you're just happliy typing away, and it always occurs in one of the string functions (strcpy, strlen etc.)

To recover from a crash of this nature, simply choose to debug MSVC when the dialog appears, examine the assembly dump and find the nearest "ret" command after the line on which it crashed. Select the "ret" command, hit "jump-to cursor" from the debug menu and hit f5 to continue execution. Hey-presto, your MSVC session will come back to life and all of that code you've been writing will be saved.

Jack

The zip file viewer built into the Developer Toolbox made use of the zlib library, as well as the zlibdll source additions.

 

Copyright 1999-2008 (C) FLIPCODE.COM and/or the original content author(s). All rights reserved.
Please read our Terms, Conditions, and Privacy information.