We have a Delphi design-time module in which we execute Data Abstract calls.
For some developers, it does not work. For others, it worked initially, but stopped working.
After some debugging, the code which fails can be reduced to:
procedure TDADatasetComponentEditor.TestROCache;
Var
a : TClass;
begin
try
a:=uRORTTISupport.RORTTI_GetExceptionClass(‘SessionNotFoundException’,Nil);
ShowMessage(‘OK’);
except
On E : exception do
ShowMessage(Format(‘Failed: %s %s’,[E.ClassName,E.Message]));
end;
end;
(this is a component editor method, simply invoked by right-clicking a component and selecting a method we made)
odd, but I can’t reproduce this with simple method of design-time editor.
can you specify bds.exe as a host for your package and launch it in debugger and see what causes this issue, pls?
The call to isROComplexType fails, it seems to get an invalid pointer.
I tried to find out what class this is, but the name does not seem to be available.