Re: tstringlist clearing bug or ... !?
Jaco Boersema <[email protected]> Mon, 29 Aug 2005 09:23:27 +0200
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <[email protected]> |
Hi As far I can remeber, Clear does nothing if the TStringList is empty, but if you are using TStrings, it might give an exception since that method might be abstract. You could also make sure the object is created at the time you wish to clear it, cause if it's not, you will also have an exception. I use TStringList quite often and it never gave me any problems trying to clear an empty list. Regards Jaco On 8/26/05, soya protein <[email protected]> wrote: > > As i finished my little program, i've started testing and stumbled > over an exception caused by call to Clear method while TStringList > was still empty. Isn't this call supposed to be safe like Free is ? > > I'll add checking to bypass exception, but this shouldn't happen, > right ? > > -- > Best regards, > soya > > > ------------------------------ > YAHOO! GROUPS LINKS > > > - Visit your group "Delphi-JEDI<http://groups.yahoo.com/group/Delphi-JEDI>" > on the web. > - To unsubscribe from this group, send an email to: > [email protected]<[email protected]?subject=Unsubscribe> > - Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/>. > > > ------------------------------ > -- JE Boersema (Jaco) Software Engineer PEB Development (cc) [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/i7folB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Delphi-JEDI/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/