The memory will be lost to the application if you don't Dispose it (a memory
leak)
Dispose shouldn't cause an access violation - it's a good idea to set the
variable to nil after disposing and to test for nil before disposing.
Bob
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Monday, May 07, 2001 11:04 PM
Subject: [DUG]: Dispose Memory
> Hi all.
>
> I have a question that I am not sure of the answer.
>
> I am doing new(blah) when creating a pointer to a record.
> What I am not sure of is, if I dont do a Dispose(blah) what happens to the
memory that has been assigned to the pointer?
> Obviously if I try to dispose(blah) I can get an access violation etc.
>
> Can some one fill me in here ?
>
> Thanks, Jeremy Coulter
>
>
>
> Jeremy Coulter (Manager)
> Visual Software Solutions
> Christchurch, New Zealand
> PH 03-3521595
> FAX 03-3521596
> MOBILE 021-2533214
> www.vss.co.nz
>
> --------------------------------------------------------------------------
-
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"