|
-
Feb 10th, 2000, 07:11 PM
#1
Hello There - I Got a program where i put a Very Large amount of text into a string and i after a while he tells me OUT OF MEMORY ! i need something Bigger then a string that can hold more text , Any ideas [dont tell me Long or something Cuz i need it 2 be a string Kinda type ..]
-
Feb 10th, 2000, 08:00 PM
#2
Addicted Member
I don't know if it is the best way but...
I once had a simillar problem so I created an array of strings and checked when the string was reaching the overflow point added one element to the array and continued from then.
------------------
Jorge Ledo
[email protected]
Portugal
-
Feb 10th, 2000, 08:04 PM
#3
Umm , Well i dont think its the best way as you said ..
This is what i do maby this will make it more clear - my program send a file from the server side and send it to the client - files over 50 Mgz give me an overflow in the client side ... What do i do :
-
Feb 10th, 2000, 10:15 PM
#4
New Member
Do you need to process all the data at once, if not why store it in memory! Just write it into a temporary file and then reload when you need that particular section of the string.

[This message has been edited by Trumpeter_Chris (edited 02-11-2000).]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|