Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Kilitli Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

  • 10 Ocak 2011 Pazartesi 10:57
     
     

    helo i am using Visual Studio 2008

    i am devloping window application for excel automation

    During excecution of application

    i got error as "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

    when i clean my application throgh solution explorer it resolve for some time but this appears again next time

    please provide solution for this 

Tüm Yanıtlar

  • 14 Ocak 2011 Cuma 11:23
    Moderatör
     
     

    Hi Rajendra1988,

     What is the version of the Excel and what is the target platform of your application? x86 or x64?

    And how do you reference the interop into you vb.Net application?

    Based on the error, it seems a platfpem issue, please change the platform and let the applicatioin match the Excel.

    Otherwise, it is haed to know the cause without any code? could you please share some code here that we can help you to troubleshoot it, thanks?

    Sincerely,


    Bob Bao [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.