Hi,
if I just do a simple example on reflections (printing fields and fieldtypes) within a new file (so only the example has to be compiled) everything works as it is expected to work.
If add the code (the one from the docs is enough) to my games code I get a crash on:
reflection.bmx:
Error is: Unhandled Exception:Attempt to access field or method of Null object.
Seems the compiler doesn't recognize some field-types.
In my game I'm using the DX9-Module and some things like XML and Zip-Archiving (including c-sources). May some of them prevent reflections from working?
Sure I could spend some hours fiddling with adding some of my includes/imports to a small example-file to narrow it down to a certain point within the code. But my hope are you, who may already have solved this problem.
Thanks,
bye
MB
if I just do a simple example on reflections (printing fields and fieldtypes) within a new file (so only the example has to be compiled) everything works as it is expected to work.
If add the code (the one from the docs is enough) to my games code I get a crash on:
reflection.bmx:
Function TypeIdForTag:TTypeId( ty$ ) ... For Local i=0 Until ar >> HERE >> id=id.ArrayType() Next... ...
Error is: Unhandled Exception:Attempt to access field or method of Null object.
Seems the compiler doesn't recognize some field-types.
In my game I'm using the DX9-Module and some things like XML and Zip-Archiving (including c-sources). May some of them prevent reflections from working?
Sure I could spend some hours fiddling with adding some of my includes/imports to a small example-file to narrow it down to a certain point within the code. But my hope are you, who may already have solved this problem.
Thanks,
bye
MB