cbruck_1
15 years agoOccasional Contributor
TC 7.52 working with Delphi App - New crash behavior
I'm running into an odd crash resulting from a FindChild call, and working with the object returned. Here's the function that's triggering it:
function slxCoreFind(property, value, depth) {
var control, found;
if (depth == undefined)
depth = 30;
found = Sys.Process("SalesLogix").FindChild(property, value, depth);
if (found != null && found.Exists && IsSupported(found, "FullName"))
return found.FullName;
else
return null;
}
It appears the application (SalesLogix) is crashing when I try to examine the found object that was returned by FindChild. After the app crashes, I can still examine the found object (by setting a break point), and it appears to have managed to find the object, though of course the RPC server is showing up as unavailable due to the crash.
This script worked under TC 7.51