Re: Writing Binary Files with TFileStream
- From: Rob Kennedy <me3@xxxxxxxxxxx>
- Date: Wed, 23 Nov 2005 00:35:50 -0600
Rick Francken wrote:
Just a hunch that may be completely invalid, but you are putting this in a try..except block, and the exception handling mechanism can use a temporary variable named "e" for an exception instance. Is it possible there is a conflict there?
No. An exception handler only uses E when you tell it to use E. It's not an implicit variable like Result. You can name it whatever you want, but you have to name it yourself if you want to use it. Exception handlers are the one place in Delphi where you can introduce a variable into scope in the middle of executable code.
try // ... except on E: EInvalidCast do ; on F: EAssert do ; on LongExceptionName: Exception do ; on ObjectsCanBeThrownToo: TObject do ; end;
-- Rob .
- Follow-Ups:
- Re: Writing Binary Files with TFileStream
- From: Rick Francken
- Re: Writing Binary Files with TFileStream
- References:
- Writing Binary Files with TFileStream
- From: Robert Kilroy
- Re: Writing Binary Files with TFileStream
- From: Robert Kilroy
- Re: Writing Binary Files with TFileStream
- From: Andreas Koch
- Re: Writing Binary Files with TFileStream
- From: Robert Kilroy
- Re: Writing Binary Files with TFileStream
- From: Rick Francken
- Writing Binary Files with TFileStream
- Prev by Date: Re: Writing Binary Files with TFileStream
- Next by Date: Re: pointer syntax
- Previous by thread: Re: Writing Binary Files with TFileStream
- Next by thread: Re: Writing Binary Files with TFileStream
- Index(es):
Relevant Pages
|
|