Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:04 pm
by Anonymous >> Mon, 13 Nov 2006 0:34:28 GMT
The following from an old Jade support contact:
I should also point out, that while this is an undocumented feature, it is also unsupported and may function differently under future releases of Jade. Define an external function in jlnintp as:
interpreterSendMessage(processOid : Integer; message : Integer) : Integer is interpProcessSendMessage in jlnintp applicationServerExecution;
The following code constructs an external (C++) DskObjectId structure for the current process:
vars
oid : Binary[14];
oidStr : String;
i : Integer;
classId, instId : Integer;begin
oidStr := process.getOidString;
i := 1;
classId := oidStr.scanWhile("1234567890", i).Integer;
i := i + 1;
instId := oidStr.scanWhile("1234567890", i).Integer;
oid[14:1] := null;
oid[1:2] := classId.Binary[1:2];
oid[3:4] := instId.Binary[1:4];
Use the above code fragment to construct an oid for a process, and enable method trace by calling the external function:
call interpreterSendMessage(oid.bufferAddress(), 2);
Disable method trace by calling the external again:
call interpreterSendMessage(oid.bufferAddress(), 3);