Hello ,
I don't know how to ask and if that's really a problem... But I'll try..
I have a function that locks (in some medium) an object and returns a real pointer to it.
So, I have a function:
function lockObj (Id: DWord): TMyObject;
And it works just fine! Very fast!
And if I declare something like this:
function lockObj (Id: DWord; ExpectClass: TClass): TMyObject;
It works 8-9 times slower even with the same internal functionality...
And this really makes me cry... :(Best regards,
Aleksey
