Memory access violation error

BlitzPlus Forums/BlitzPlus Programming/Memory access violation error

goodeep(Posted 2003) [#1]
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


goodeep(Posted 2003) [#2]
problem solved, it was something WAY stupid -____-"
i'm sorry ^^


Myke-P(Posted 2003) [#3]
... And *everyone* reading this knows what your problem was. We've *all* done it. :)


Anthony Flack(Posted 2003) [#4]
Heh, yup.


jhocking(Posted 2003) [#5]
I'm suddenly curious if there's anyone who HASN'T made this mistake at least once when starting out in Blitz.


myspys(Posted 2003) [#6]
uhm, i'm not sure i have..

anyone care to explain? :o)


SoggyP(Posted 2003) [#7]
no


WoeIsMe(Posted 2003) [#8]
Me


Ross C(Posted 2003) [#9]
usually happens when you load an image that isn't there. sorry for spoiling it :S


soja(Posted 2003) [#10]
or when you try to traverse past the head or tail of a linked list...


El Neil(Posted 2006) [#11]
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


El Neil(Posted 2006) [#12]
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