Memory Violation Error in UBE causing it to go into error

Joshua Tomlin

Joshua Tomlin

Member
Hi Experts,

I made a couple of changes to the SOE MBF - B4200311, to add an extra check in an existing IF Condition:

Line 1839
===========
OLD:
if (I4200310_ProcessAvailabilityCheckYN(lpBhvrCom,lpVoid,lpDS,lpds4200310B) == TRUE

NEW:
if (I4200310_ProcessAvailabilityCheckYN(lpBhvrCom,lpVoid,lpDS,lpds4200310B) == TRUE && (jdeStrcmp(lpds4200310B->lpdsF4102->ibprp4, _J("XYZ"))))



Line 1963
==========
OLD:
if(lpDS->szSOEMBFInternalFlags[GET_PENDING_FLAG_SOBD15] != PENDING_ADD_SOBD15)

NEW:
if(lpDS->szSOEMBFInternalFlags[GET_PENDING_FLAG_SOBD15] != PENDING_ADD_SOBD15 && (jdeStrcmp(lpds4200310B->lpdsF4102->ibprp4, _J("XYZ"))))


The BSFN builds / compiles fine, but I get an error on a Custom UBE which calls the MBF.

PDF has below error:

ERROR:
EventRule : Business Function F4211FSEditLine at line 100 for Event 15 in Section Billable Update has caused a memory violation.

Is there a problem with the way I have written my condition? Is there a better way of doing it?

I am new to C BSFN code and any help would be greatly appreciated.



Thanks,
Josh <font color="blue"> </font>
 
You should debug the function, my guess is that lpdsF4102 or lpds4200310B are NULL.
 
Back
Top