Crash problem

BlitzMax Forums/BlitzMax Programming/Crash problem

... and if you *don't* call GCCOLLECT() what happens?
This is simply to prove to you that the issue is with GC.
If you can prove that then check the vertdata as I suggested. *IF* it is the vertdata causing the problems then try a different method OR, using the obj ref, check using debugstop which object this refers to.
My guess is GC is running and removing one of your pointers to vertdata. You might want to add them as fields in a type to check/prevent this.

P.S. I am personally a bit 'put-out' that you are charging people to write their code and then using these forums as support.
How about releasing some of this code into the code archives for the community to use?