09-20-2007, 12:32 AM
Well, in FreeBASIC,
[tt]dim matrix(100, 100, 100) as integer[/tt]
will place 100x100x100x4 (4,000,000) bytes on the stack, since [tt]matrix[/tt] is a local automatic array (either of a user-defined procedure or the implicit main procedure). In Windows, the default stack size for FreeBASIC programs is 1MB (1,024x1,024 = 1,048,576 bytes), so the latest release (v.18.1b) warns me about that (whichever language dialect I use).
I don't know how the old VB versions handle that, but I'd imagine in a similar way; are you getting a compiler error message or just a warning ? What does FreeBASIC do for you, and what version are you using ? Sorry, I'm having trouble understanding you.
[tt]dim matrix(100, 100, 100) as integer[/tt]
will place 100x100x100x4 (4,000,000) bytes on the stack, since [tt]matrix[/tt] is a local automatic array (either of a user-defined procedure or the implicit main procedure). In Windows, the default stack size for FreeBASIC programs is 1MB (1,024x1,024 = 1,048,576 bytes), so the latest release (v.18.1b) warns me about that (whichever language dialect I use).
I don't know how the old VB versions handle that, but I'd imagine in a similar way; are you getting a compiler error message or just a warning ? What does FreeBASIC do for you, and what version are you using ? Sorry, I'm having trouble understanding you.
stylin: