DebuggerCheck is missing in String-Management

Just starting out? Need help? Post your questions and find answers here.
User avatar
Rings
Moderator
Moderator
Posts: 1427
Joined: Sat Apr 26, 2003 1:11 am

DebuggerCheck is missing in String-Management

Post by Rings »

Following Code creates a big String.
I noticed that under Win32 this code throws a error with a memory exception
(hitting my 2gb memory area)
but shouldn't the PB-Stringmanager throw a Out-Of-Memory error ?
(If Debugger is on of course)

Code: Select all

Global text$ = "The quick brown fox jumps over the lazy dog"
Count=30
For i = 1 To Count              ;make a long test-string   
  Debug Str(i) + " " +Str(Len(Text$))
  text$ + text$
Next

Debug Len(Text$)
SPAMINATOR NR.1