We have some code something like this (Delphi 6 RTL Update Pack 3):
objChild1 := TChild1.create();
... (Some Code)
objProcessor.function1(objChild1);
Tchild1 is inherited from TGrandPa through 2 + hierarchy levels.
function1 is defined like this where objChildData is a private variable of TProcessor class and is of type TChild1 :
TProcessor.function1(objTemp : TGrandPa):boolean;
begin
objChildData := TChild1(objTemp);
....
end;
From the logs (since we can't debug on a customer machine), we have narrowed down that the first line in the function1 makes objChildData nil sometimes and only on one particular customer's machines. Rest of the places where same code is deployed seems to be working perfectly fine.
Can anyone throw some light on why this is happening and/or how to resolve this?