locked
Wpf Application with .net framework 4.0 is crashing on windows 8.1( working fine on windows 7 without any crash) RRS feed

  • Question

  • I have a WPF application(.net 4.0) which is working fine on Windows 7 systems. But when I try to run the application on windows 8.1 it is working fine for 15 to 20 mins but after that suddenly a popup message is showing like

    A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available

    popup message showing with two options Debug and close program. When I press debug it is showing message as FatalExecutionEngineError detected

    The runtime has encountered a fatal error. The address of the error was at 0x713543ed, on thread 0x23624. 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.

    if i press continue further showing message as

    An unhandled exception of type 'System.ExecutionEngineException' occurred in PresentationFramework.dll

    But i didn't get the exact reason why it is failing and which portion of code is causing the problem?

    After searching over the net i have tried the following

    Added DispatcherUnhandledException handler and App domain Unhandled exception handler and also added legacyUnhandledExceptionPolicy to . But nothing is works for me still facing the crash on Windows 8.1

    Can someone point me how to detect the code portion which causing the crash? and How to handle FatalExecutionEngineEror exception?

     
    Wednesday, December 24, 2014 5:25 AM

Answers

All replies

  • As something of an aside, I far prefer developing on win 8.1 to win7.

    I get better performance out this pc since I upgraded.

    .

    I would install a version of visual studio ( perhaps express ) on a win 8.1 machine and turn on some Managed Debugging Assistants (MDA).

    http://msdn.microsoft.com/en-us/library/d21c150d.aspx

    Then crank it with f5 and see what turns up after 20 minutes.


    Please don't forget to upvote posts which you like and mark those which answer your question.
    My latest Technet article - Dynamic XAML

    Wednesday, December 24, 2014 11:56 AM
  • Well, build the solution on a Window 8 machine and deploy it to a Windows 8 machine.
    Wednesday, December 24, 2014 3:53 PM