Memory access violation error
BlitzPlus Forums/BlitzPlus Programming/Memory access violation error
| ||
Hi to all! I'm pretty new to BB2d, but not to programming in general. Well, downloading various codes to "study" the language, i often (meaning VERY often) experiece this disturbing error popping up while trying to execute a game: a "memory access violation" box. What can it be due to? My actual configuration is a Pentium 1800, 524 mb RAM and I'm running Win2000. Hope you'll able to help me. Cheer up bros! Gu |
| ||
problem solved, it was something WAY stupid -____-" i'm sorry ^^ |
| ||
... And *everyone* reading this knows what your problem was. We've *all* done it. :) |
| ||
Heh, yup. |
| ||
I'm suddenly curious if there's anyone who HASN'T made this mistake at least once when starting out in Blitz. |
| ||
uhm, i'm not sure i have.. anyone care to explain? :o) |
| ||
no |
| ||
Me |
| ||
usually happens when you load an image that isn't there. sorry for spoiling it :S |
| ||
or when you try to traverse past the head or tail of a linked list... |
| ||
oh. my. god. this is doing my head in. heres my code: Dim map(7) map(1)=LoadImage("images/terrain1.jpg") map(2)=LoadImage("images/terrain2.jpg") map(3)=LoadImage("images/terrain3.jpg") map(4)=LoadImage("images/terrain4.jpg") map(5)=LoadImage("images/terrain5.jpg") map(6)=LoadImage("images/terrain6.jpg") map(7)=LoadImage("images/terrain7.jpg") the files are all there. definitely. ive tried converting them to bmp's, if tried renaming them. all i get is memory violation access, and then blitz kindly rearranges the icons on my desktop. arrrrrggggghhh!!!!! please help. somebody. im not even a new blitz user. ive done this sort of thing a million times before!!!! please. neil |
| ||
its cool, ive sorted it. the problem was elsewhere, in another array. however, i hadnt changed it for days and blitz was fine with it up until i declared the above map array. how odd... neil |