View Issue Details

IDProjectCategoryView StatusLast Update
00272352.x IDE BugsCompilingPublic2018-06-17 21:07
ReporterStewart BishopAssigned ToCoreTech 
PriorityLowSeverityC - GeneralReproducibility100%
Status AssignedResolutionOpen 
Product Version 
Target VersionFixed in Version 
Summary0027235: Compiling: If you have an error in a rooms creation code it will always state an error in the top object in the resource tree
Descriptionhen there is an undefined variable in the startup, the object that is referenced is the "FIRST"/"TOP" object in the Objects list in the resources tree. This is absolutely confusing, though now that I know this is not trying to reference that object, it is much more understandable, that this was related to the problem I saw in my previous bug report but did not understand.

############################################################################################
FATAL ERROR in
action number 1
of PreCreate Event
for object obj_Draw:

Variable obj_Hello.CWINDOW_HANDLE(100006, -2147483648) not set before reading it.
at gml_Script_CreateWindow (line 48) - if( global.WindowHandles[ nIndex, CWINDOW_HANDLE ] == 0 ) {
Steps To ReproduceYou can reproduce this way:

1) Create an object in the Resources - doesn't matter the name
2) Create a room - have some code there that has a DEFINE or Variable that is not defined
3) Execute the program
4) The error will say 'first object in resource tree'.undefined variable is not set before reading it.

The first object in resource tree part being wrong and misleading.
TagsError, Runner
2.x IDE Found In2.0.7.171
2.x Runtime Found In2.0.7.110
2.x IDE Verified In
2.x Runtime Verified In

Activities

Stewart Bishop

2017-07-28 17:19

Developer  

FirstObjectInObjectsListBug.yyz (15,778 bytes)

ParodyKnaveBob

2017-12-06 09:35

Updater   ~0056903

Related to 0015628 perhaps?