2

All too often VS2005 will crash when compiling and I'll have to re-open it. That's all well and good, a minor inconvenience really. But the annoying part is that it remembers the opened files from the last time I manually closed VS2005 and not the files that were open when it crashed.

Is there some way to back up my current workspace (the open files) so when it crashes and I reload it, it will remember what I had open?

Status3543
  • 3,461

1 Answers1

0

Potentially relevant information from techie007's link:

When the solution is saved or closed, the environment calls the SavePackageSolutionProps method with a pointer to the SaveUserOptions method. An IStream containing the binary information to be saved is passed to the WriteUserOptions method, which then writes the information to the .suo file and calls the SaveUserOptions method again to see if there is another stream of information to write to the .suo file.

These two methods, SaveUserOptions and WriteUserOptions, are called recursively for each stream of information to be saved to the .suo file, passing in the pointer to IVsSolutionPersistence. They are called recursively to allow for the writing of multiple streams to the .suo file. In that way, user information is persisted with the solution and is guaranteed to be there the next time the solution is opened.

Status3543
  • 3,461