Skip to Content
0
Former Member
Jun 28, 2009 at 11:24 AM

Error "Attempt to read or write protected memory" in MAS

38 Views

Hello,

I am always getting the error message "Attempt to read or write protected memory. This is often a indicator that other memory is currupt" as soon as I try to add a new Method to a BO. What I do is

1) Open BO in Code Mode

2) Open Tab "Document Outline" ; right click on Method and "New.."

3) I enter the Method name i desire "Z_CPB_RetrieveStockInfo"

4) I enter the specific signature i need "Public Function Z_CPB_RetrieveStockInfo( ByRef Sfmara As String) As Object"

5) I press ok and get the error message in the first popup.

6) I get another error Popup "Cannot open the code window. Reason: The object may have been deleted from the Changelist"

The method "Z_CPB_RetrieveStockInfo" listed in the "Document Outline" Tab below Methods, but not in the selection box above the code. If I restart MAS I can see the method in the code and in every selection box. It is also possible to enter the code into the method, but as soon as I saved and restarted the machine, the code is gone and the method body is empty again.

Does anyone know what's going wrong?

Regards,

Andreas