calling readln causes memoryleak in D5?

This is a discussion on calling readln causes memoryleak in D5? within the Delphi forums in Programming Languages category; Would it be possible that many many calls to readln(myFILE, myString) would cause a memory leak? The file is closed other objects are closed, still I loose memory in a function. I have found this on D2 that could be it, testing some things now. http://groups.google.nl/group/comp.l...e87a8c1b5629c1 <<< I discovered that my problem was due to using a string in the readln function. I don't know why (I'm now using an fixed lenght arrays), but I believe it has something to do with unix files not using normal (dos?) EOL char sequences. Readln seems unable to handle unix files properly >>> ...

Go Back   Application Development Forum > Programming Languages > Delphi

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-07-2008, 07:52 AM
Sjorsj DubbelJoe Boes
Guest
 
Default calling readln causes memoryleak in D5?

Would it be possible that many many calls to readln(myFILE, myString) would
cause a memory leak?

The file is closed other objects are closed, still I loose memory in a
function.

I have found this on D2 that could be it, testing some things now.

http://groups.google.nl/group/comp.l...e87a8c1b5629c1

<<<
I discovered that my problem was due to using a string in the readln
function. I don't
know why (I'm now using an fixed lenght arrays), but I believe it has
something to do with
unix files not using normal (dos?) EOL char sequences. Readln seems unable
to handle
unix files properly
>>>


But that's in D2, I presume that would be fixed in D5.

Anyone an idea?


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 05:35 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.