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

  • Question

  • Any help will be appreciated 
    +  $exception {"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."} System.Exception {System.AccessViolationException}

    Using VB6 OCX...in C#.NET (3.5 Framework)

    Thanks,



    Thursday, May 21, 2009 3:44 PM

Answers

  • This is an error happening inside of your VB6 code, most likely.  It sounds like you're using an object after it's been cleaned up, or calling a method prior to initializing some object correctly.  Make sure your OCX is being initialized and setup properly before you use it.

    Without a lot more details, it would be difficult to give you exact advice on where to find the problem.
    Reed Copsey, Jr. - http://reedcopsey.com
    • Proposed as answer by Rudedog2 Thursday, May 21, 2009 4:44 PM
    • Marked as answer by liurong luo Monday, May 25, 2009 10:23 AM
    Thursday, May 21, 2009 4:38 PM

All replies

  • This is an error happening inside of your VB6 code, most likely.  It sounds like you're using an object after it's been cleaned up, or calling a method prior to initializing some object correctly.  Make sure your OCX is being initialized and setup properly before you use it.

    Without a lot more details, it would be difficult to give you exact advice on where to find the problem.
    Reed Copsey, Jr. - http://reedcopsey.com
    • Proposed as answer by Rudedog2 Thursday, May 21, 2009 4:44 PM
    • Marked as answer by liurong luo Monday, May 25, 2009 10:23 AM
    Thursday, May 21, 2009 4:38 PM
  • I assume that the error occurs inside of the OCX and you do not know where it trips.


    Mark the best replies as answers. "Fooling computers since 1971."
    Thursday, May 21, 2009 4:47 PM