|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
edit1.create
When I have posted that the following lines:
:= Nil; Free(); This will cause an exception try Free; := nil; except on E:Exception do; end; will not! you set := nil you cannot reach it Mick |
|
#2
|
|||
|
|||
|
edit1.create
mikcaau wrote:
>When I have posted that the following lines: >> >:= Nil; >Free(); > This will cause an exception No it won't. What exception do you think it will raise? try Free; := nil; except on E:Exception do; end; will not! you set := nil you cannot reach it But you can still call non-virtual methods on that variable, and Free in particular won't do anything if it detects that it has been called on a null reference. -- Rob |
![]() |
| Viewing: Web Development Archives > Mailing Lists > Delphi > edit1.create |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|