Rustamas Narusevicius wrote:
> This warning appears, because F can be equal to nil if TFileStream.Create
> raises exception. In this case youll handle exception, but not initialize
> your variable F.

If TFileStream.Create raises an exception, then F will remain
uninitialized. However, the "except" clause catches the exception and uses
"Continue" to skip the rest of the body of the loop, so F never gets used,
either. The warning is incorrect.

-- 
Rob


__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to