Unusual Object Does Not Exist error
Blitz3D Forums/Blitz3D Programming/Unusual Object Does Not Exist error
| ||
Whenever I try to run this, I get an "Object Does Not Exist" error at line 311 which is simply Return Mesh Within the Function Build_Invader%(INVADER_TYPE%) The dependancies included are just data used to 'pack' images and sound, but I suspect these may be responsible for the error, due to using up memory? Although my system still has well over a gigabyte of RAM to spare... I really don't understand what the problem is, since at the very least, oughtn't it be Entity doesn't exist, if somehow 'Mesh' was nop longer a valid handle? If anyone can shed any light on just what's happening here, I'd be really grateful! Thanks :) |
| ||
I think it is not so much the function, but the point where the function is called. Ie this line:BuildInvaders\MeshHandle=Build_Invader(INVADER_TYPE_PER_LINE*iterbuildY) When "build_invader" returns, it tries to write the mesh data into the "meshhandle" field of "buildinvaders". If Buildinvaders does not exist, you get that error. Edit: looking closer at that function: It seems it is missing the line: "BuildInvaders = new INVADERS" right after the second "For" line. Last edited 2011 |
| ||
DOH!!! Thanks a million Warner - so obvious in retrospect! :D Being "Object does not exist" should have been a clue it referred to the type, but I just completely missed that :) Really thanks very much! |