Memory Violation error while using a custom C BSFN

SUJIT RANADHEER A

Member
Hi,

I have created a C BSFN which will get the processing option values and if those values are blank it will pass the default values. I am using these default values in a simple report to display these values. This C BSFN is for practice purpose I created. I am getting an error message in the PDF output file "EventRule : Business Function TestGetPOValues at line 0 for Event 13 in Section <Untitled> has caused a memory violation."
In the JDEDEBUG.LOG It showing an error "JDB1200001 - Failed to validate Environment handle".

Could any one please help me on this.

I am attaching all the details of the objects I created.
 

Attachments

  • 186764-Cache BSFN.zip
    121.3 KB · Views: 37
Hello

Please try this. I believe that jdeStrncpy is expecting a string, not a character in the second parameter.

jdeStrncpy((JCHAR*)lpDS->szErrorMsg, (const JCHAR*)_J(“ "), DIM(lpDS->szErrorMsg)-1);
 
Back
Top