How are you guys doing?
Don't kill me for this but I don't get it!
The following lines drive me nuts!
It might be discussed already but I can't
remember.
'---------------------------------------
#COMPILE EXE
#INCLUDE "tlxdebug.inc"
FUNCTION PBMAIN
DIM a$
DIM i AS LONG
a$ = a$ + SPACE$(524219)
debugprint str$(STRPTR(a$))
NEXT i
END FUNCTION
'---------------------------------------
RESULT = 1.192757E+7
If I just write a$ = Space$(524219) the world is ok and the size
can be as big as it wants.
Another step:
For i = 1 to 524219
a$ = a$ + " "
Next i
This will perform the same overflow
Everything is fine as long the string size is not bigger than 524218
if I expand an existing string.
Ok, what is that?
I mean it looks like a bug to me.
Oh, I forgot: Ram size is 64MB. Language is PBDLL 6.0
and tlxdebug is not needed. The Msgbox will do the same.
Regards
--- Tom.
------------------
Don't kill me for this but I don't get it!
The following lines drive me nuts!
It might be discussed already but I can't
remember.
'---------------------------------------
#COMPILE EXE
#INCLUDE "tlxdebug.inc"
FUNCTION PBMAIN
DIM a$
DIM i AS LONG
a$ = a$ + SPACE$(524219)
debugprint str$(STRPTR(a$))
NEXT i
END FUNCTION
'---------------------------------------
RESULT = 1.192757E+7
If I just write a$ = Space$(524219) the world is ok and the size
can be as big as it wants.
Another step:
For i = 1 to 524219
a$ = a$ + " "
Next i
This will perform the same overflow
Everything is fine as long the string size is not bigger than 524218
if I expand an existing string.
Ok, what is that?
I mean it looks like a bug to me.
Oh, I forgot: Ram size is 64MB. Language is PBDLL 6.0
and tlxdebug is not needed. The Msgbox will do the same.
Regards
--- Tom.
------------------
Comment