Hello all,
I am programming using C# and I am also running Vista. I am running Visual C# 2010 Express.
I am working on some code which is basically a minimalist clone of the Visual Studio environment itself I wrote using a hodgepodge of 14 or so projects all rolled into one Solution -- the application is a Java IDE patterned to look and feel like Visual Studio express. I developed it in Visual C# 2008 Express. Since moving it over to VC# 2010 Express, I have updated each project (in Project -> Properties) to use .NET Framework 4 and then I also went in and changed around all the references to the .NET 4 versions of System, System.Drawing etc etc.
What is puzzling is that, at seemingly random times and not every time I run the program, it crashes seemingly randomly with the 'FatalExecutionEngineError was detected' exception box, which elaborates:
The runtime has encountered a fatal error. The address of the error was at 0xf20f4298, on thread 0xc3c. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.
It's funny, though, that there doesn't seem to be a pattern for which lines it crashes on. It says something about P-Invoke and COM-Interop, and I am using some projects and libraries which may depend on this, in particular:
- ICSharpCode.TextEditor
- The
FileBrowser
library at here[^] - The
UISwitchBoard
library at here[^] - The
ProcessCaller
library at here[^]
That's all I can think of. Perhaps there are some issues with the UI Switchboard library in particular, since it runs timers and other threads.
Thanks in advance for any insights!
Brian