Quantcast
Channel: SCN : Discussion List - SAP on Microsoft Windows
Viewing all articles
Browse latest Browse all 614

Error Attempted to read or write protected memory. Happens when i add several tables and fields from visual basic

$
0
0

Hi everyone

When I install many tables and user fields with SAP objects

 

For user fields

Private oCampoMD AsUserFieldsMD

  • oCampoMD.Add

 

For user tables

Private oTablaMD AsUserTablesMD

  • oTablaMD.Add

 

There comes a point that my application uses lots of RAM and I get the following error when I try to just add an object (objeto.add)

 

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

What can i do, to liberate RAM memory once the field or table has been added?

 

When i add fields/tables, i kill the object


System.Runtime.InteropServices.Marshal.ReleaseComObject(objeto)

 

Apparently only happens in Windows 2012 Server


Viewing all articles
Browse latest Browse all 614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>