Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Bug Reports / OK its big but an uncerimonious crash isn't right

Author
Message
thedubdude
20
Years of Service
User Offline
Joined: 24th May 2003
Location: San Jose, Ca.
Posted: 16th Sep 2009 07:57
I admit this array is big but shouldn't the compiler do something other than just uncerimoniously crash?

dim chan(10000000,28)
print "hello"
wait key
end
Serial Velocity
15
Years of Service
User Offline
Joined: 24th Aug 2008
Location:
Posted: 16th Sep 2009 17:51 Edited at: 16th Sep 2009 17:52
Unless my math is wrong, you're allocating nearly 1,120,000,000 (10,000,000 x 28 x 4) bytes of memory for the array, or ~1.1GB, which could be responsable for the crash.

tiresius
21
Years of Service
User Offline
Joined: 13th Nov 2002
Location: MA USA
Posted: 16th Sep 2009 18:13
Is the compiler itself crashing, or the EXE it produces when you run it?

If it's the compiler, you have a point.

If it's the EXE, don't make an array that big.

I'm not a real programmer but I play one with DBPro!
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Sep 2009 21:28
It's the exe crashing, and it could do it a little more gracefully.

IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base

Login to post a reply

Server time is: 2024-04-20 11:18:11
Your offset time is: 2024-04-20 11:18:11