rj
2015-03-21 12:45:35
How on earth do you debug objects? I'm confused as to why I have to put in a parameter for some object type
Gives a access violation. But how else am i supposed to loop through a object array, the only properies of TReflectObjectArray was get
procedure debugObject(name:String);
var
bmp, i:integer;
objects: TReflectObjectArray;
obj2:TObjectType;
begin
Reflect.Graphics.Create(bmp);
objects.Get(obj2, name, 103); // what is the parameter tobjecttype there for?
for i := 0 to high(objects) do
Reflect.Graphics.DrawClippedText(toStr(objects[i].getName), 'smallchars07', Point(5, 0)); // ?? cant get tpoint
Reflect.Graphics.Free();
end; Gives a access violation. But how else am i supposed to loop through a object array, the only properies of TReflectObjectArray was get