This is a piece of the code:
CALL COB_FILE_DELETE USING BY REFERENCE COBF-INF
RETURNING RET-CODE
IDENTIFICATION DIVISION.
PROGRAM-ID. COB_FILE_DELETE IS PROTOTYPE CUSTOM-ATTRIBUTE IS PInvoke.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION...
Hi people,
I got the following error when I try to delete a file:
ERROR OCCURED System.ArgumentException: This is not a COBOLData object.
Parameter name: obj
at Fujitsu.COBOL.InteropServices.Win32.COBOLDataMarshaler.MarshalManagedToNative(Object obj)
at COB_FILE_DELETE(Object COBF-INF)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.