Article View: borland.public.cppbuilder.internet.socket
Article #2072Re: help with Indy Telnet
From: Bob Gonder
Date: Thu, 31 Aug 2006 14:39
Date: Thu, 31 Aug 2006 14:39
18 lines
1659 bytes
1659 bytes
Andre' Burke wrote: >I would greatly appreciate any advice. 2 suggestions: 1) Don't rely on _finally catching a return; There is a "bug" with _finally and return. In this case, if it hits, your timer stays Off. 2) Restucture your code If "state" is a state machine, it might be clearer to use a switch(state) with the cases in state-order. Added benefit: breaking out of the switch allows you to drop to the _finally and timer-enable, no internal returns needed. At the very least, restart the timer before every return statement, and see if things don't improve.
Technical Details
Message-ID:
<adsdf2dk8k4s0tefv5r49fi67ghjs6rlmt@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!news.albasani.net!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<44f68cef@newsgroups.borland.com> <44f6917c$1@newsgroups.borland.com> <44f69c27@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3d66693bd859a203 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: help with Indy Telnet Date: Thu, 31 Aug 2006 07:39:42 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <adsdf2dk8k4s0tefv5r49fi67ghjs6rlmt@4ax.com> References: <44f68cef@newsgroups.borland.com> <44f6917c$1@newsgroups.borland.com> <44f69c27@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.69.87.29 X-Trace: newsgroups.borland.com 1157035179 69.69.87.29 (31 Aug 2006 07:39:39 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!news.albasani.net!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail