Tracking down memory access violation errors

BlitzPlus Forums/BlitzPlus Programming/Tracking down memory access violation errors

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.

If you can load such a big amount of images without problems, then you should not have any problem checking for collisions.

One thing that comes in my mind, is that you could have ran out of images frame.

In fact, the imagescollide syntax looks like:
ImagesCollide(image1,x1,y1,frame1,image2,x2,y2,frame2)

Perhaps you refer to non-existant frames for some of your images.

Check it out...; alternatively, you can change imagescollide with imagesoverlap (taking away the frames parameters), and see if solves the error. If so, it could definately be some 'out of frame' kind of problem.

I assume, also, that all your images are declared as global, or are loaded in one array (which is global by default).

If loaded in an array, check also if you ran out over the array boundaries.

Good luck,
Sergio.