none
My application is crashing suddenly with myapp.exe stopped working error on win 7 / 64 bit machine RRS feed

  • Question

  • Hi
    My application is crashing suddenly with myapp.exe stopped working error on win 7 / 64 bit machine, here is the error I am getting. However it is working absolutely fine on win XP. 
    One additional information is I use some interaction with ansi c++ code from managed c#.
    My application is C# application with .net 3.0. 
    here is the error details printed on close dialog box
    Problem signature:
      Problem Event Name: APPCRASH
      Application Name: MyApp.exe
      Application Version: 1.0.0.0
      Application Timestamp: 4e578057
      Fault Module Name: mscorwks.dll
      Fault Module Version: 2.0.50727.5446
      Fault Module Timestamp: 4d8cdc73
      Exception Code: c0000005
      Exception Offset: 0008adf5
      OS Version: 6.1.7601.2.1.0.256.48
      Locale ID: 16393
    Read our privacy statement online:
      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt
    Please get back if any idea.
    Thanks,
    Rashmi


    • Moved by Helen Zhou Monday, August 29, 2011 8:30 AM (From:Windows Forms General)
    • Edited by itsRashmi Friday, December 16, 2011 4:23 AM
    Friday, August 26, 2011 1:50 PM

Answers

  • How is the interaction done with ansi c++? If the unmanaged C++ code is 32 bit and your application is built for anycpu it will crash hard as it will try to run as 64bit on 64bit os. Check your compilation that it is x86 in the project properties.
    • Marked as answer by Paul Zhou Monday, September 5, 2011 7:36 AM
    Friday, August 26, 2011 2:07 PM
    Moderator
  • Hi,

    Have you checked the platform option suggested by Andreas?

    Firstly, check whether the C++ code is build with x86 option.

    Secondly, if the answer of question above is YES, you need to build the C# application with X86 option.


    Paul Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Paul Zhou Monday, September 5, 2011 7:36 AM
    Tuesday, August 30, 2011 7:38 AM

All replies

  • How is the interaction done with ansi c++? If the unmanaged C++ code is 32 bit and your application is built for anycpu it will crash hard as it will try to run as 64bit on 64bit os. Check your compilation that it is x86 in the project properties.
    • Marked as answer by Paul Zhou Monday, September 5, 2011 7:36 AM
    Friday, August 26, 2011 2:07 PM
    Moderator
  • Hi itsRashmi,

    Welcome to MSDN.

    This question is more related to  Common Language Runtime, I'm moving it to the  Common Language Runtime forum to make it get better help.

    Thank you for your understanding.

    Sincerely,


    Helen Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, August 29, 2011 8:30 AM
  • Hi,

    Have you checked the platform option suggested by Andreas?

    Firstly, check whether the C++ code is build with x86 option.

    Secondly, if the answer of question above is YES, you need to build the C# application with X86 option.


    Paul Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Paul Zhou Monday, September 5, 2011 7:36 AM
    Tuesday, August 30, 2011 7:38 AM