Dim a$(255) Maximum?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by LJ.

Was so accustomed to 255 maximum it was kinda burnt into the synaptic channels. Pure Basic doesn't have the 255 maximum limitation! Does anyone know what the new maximum limit of a dimensioned string is in Pure Basic?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tranquil.
Originally posted by LJ

Was so accustomed to 255 maximum it was kinda burnt into the synaptic channels. Pure Basic doesn't have the 255 maximum limitation! Does anyone know what the new maximum limit of a dimensioned string is in Pure Basic?
it mostly depends on how memory you have. If your app crashes, you have surely not enough.

Mike

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
System: Windows 2000 Server, 512 MB Ram, GeForce4200 TI 128 MB DDR, Hercules Theater 6.1 DTS Sound
System 2: Mobile Pentium 4 2.4GHz 512 MB DDR GeForce4 420-32, Windows XP Home
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.
Originally posted by tranquil

it mostly depends on how memory you have. If your app crashes, you have surely not enough.
Fred fixed this in one of the v3.6X releases. It no longer crashes my computer when trying to allocate an array which is bigger than the amount of memory I have. You can check it like this:

Code: Select all

Dim a$(255)
If @a$()=0
    ; Error, not enough memory
    End
EndIf
(I think :wink:

--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.62, external editor)
Post Reply