Pointers

BlitzMax Forums/BlitzMax Beginners Area/Pointers

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

How do I convert a pointer back?
I have:
DrawImage(ImagePTR,X,Y,FrameNum)

Where ImagePTR is a pointer to a tImage type, but I get an error that it can't convert to tImage.

I've Tried:
DrawImage(ImagePTR[0],X,Y,FrameNum)
and I didn't get an error but my computer locked.

I figured it out, I had loaded the image into a local Object which must have been automatically destroyed, so when I referenced it via a pointer the program crashed.