Dear Juan,
Show me the code.
Best Regards
Leigh
----- Original Message -----
From: "Juan Manuel Gomez Ramos" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Tuesday, November 14, 2000 1:24 PM
Subject: [DUG]: incredible and horrible.
> Hi there:
>
> I'm having a strange situation. I create, in a class method, two
instances of
> another class. At the end of the method code, I call the Free method for
both
> of them and, the one that was created the second, raises an
> EInvalidPointer exception. The weird thing I see, is that after they are
> created, both class variables have the same memory address (@Variable,
this
> is the horrible part). And, if I Free them right after creation, no
exception
> is raised (this, is the incredible part). I traced through the Destroy
method
> and every code line was executed correctly (some open arrays are
Finalized),
> except for the last one (no matter the operation), where the exception is
> raised. If the problem occurs while accessing a pointer already disposed
off,
> then the exception should be raised on the second Free call but, it
happend on
> the class instance created the second, no matter if is freed the first.
Every
> thing goes ok while using the instances and their values keep different. I
> wouldn't like to use the "bad practice" of letting them unreleased. Thanks
in
> advance.
>
> Best regards, JM.
>
> --
> Juan Manuel Gomez Ramos
> Computer Science student at Havana University
> Paraglider pilot and RadioHam (CM9BPG)
> http://cubairsports.itgo.com = http://www.geocities.com/cubairsports
>
> email:<[EMAIL PROTECTED]> eFax: +1-707-313-0329 (USA)
> <[EMAIL PROTECTED]> +44-870-125-4936 (UK)
> <[EMAIL PROTECTED]>
> ICQ: 62091995
> http://chronos.itgo.com
>
>
> --------------------------------------------------------------------------
-
> 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"