Salut Bryan Smith !
Dans un message de Bryan Smith dat‚ du 07 Apr 97 10:29:59 il ‚tait dit:
BS> Can anybody explain the following ? (code has been simplified)
BS> ...Delphi Version 1.0 (raw). Platform, W95.
BS> var
BS> tch : char ;
BS> s : string;
BS> begin tch := 'A';
BS> { then use either }
BS> s := tch ;
BS> ShowMessage('Drive '+ s + ':') ; { works OK, no problem }
BS> { or ... }
BS> ShowMessage('Drive '+ tch + ':') ; { problems ! }
BS> end;
BS> The second causes a
BS> GPF somewhat later in the code while traversing apointer structure.
The two versions are perfectly legals and work equally well here. The
GPF you experience later using some pointer is probably resulting from
a bug elsewhere in your program.
Or yo've got a buggy Delphi !?
Amiti‚s,
{-Francois Piette-}
francois.piette@ping.be
http://www.rtfm.be/fpiette
--- SvFido 1.32
---------------
* Origin: OverByte BBS (Embourg-Belgium) 32-4-3651395 VFC/V34+ (2:293/2202)
|