TIP: Click on subject to list as thread! ANSI
echo: locuser
to: Brenton Vettoretti
from: Bob Lawrence
date: 1995-03-15 08:00:48
subject: VB strings

Hi Brenton,
            I found something interesting about VB. It allows a
maximum 32K for strings, but what they don't say is that each module
is only allowed 64K string memory.

  In rep2pkt, I was reading 32K of the packet into buf$, and then
reading the message out of that as msg$. It's a lot faster that way,
rather than try to find the message directly from the file. 

  What I ended up with was two big strings (buf$ and msg$), and when I
processed msg$ later, I just ran out of memory. To cure it, all I had
to do was put    buf$ = ""    once I had read msg$, and release the 32K 
it was using.

  God, the book is useless! I read it 47 different ways, and I don't
think the guy who wrote it realises that this is all you have to do.

  Is this a common trick, or is it unique to VB?

Regards,
Bob
___ Blue Wave/QWK v2.12
@EOT:

---
* Origin: Precision Nonsense, Sydney (3:711/934.12)
SEEN-BY: 711/934
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.