PStruct = ^Struct;
Struct = record
num : integer;
end;
I have a unit to handle that structure ( is a bit more complicated, but
is a good example), in this unit I have a procedure that deletes (
disposes ) the pointer. How can I know if a pointer are created or not?,
I mean, I don't wont to try to delete something that has not been
created yet, but I don't know how to do it, if that is possible.
Thanks a lot.
Zaka.
Anton
Right for what?
If you want to post a followup via groups.google.com, ensure
you quote enough for the article to make sense. Google is onl
an interface to Usenet; it's not Usenet itself. Don't assume
your readers can, or ever will, see any previous articles.
More details at: <http://cfaj.freeshell.org/google/>
--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
** Posted from http://www.teranews.com **
All right. But I thought I was replying to a post to this group, and
I didn't post it via google groups...
Original question:
--------------------------
I have a unit to handle that structure ( is a bit more complicated, but
is a good example), in this unit I have a procedure that deletes (
disposes ) the pointer. How can I know if a pointer are created or not?,
I mean, I don't wont to try to delete something that has not been
created yet, but I don't know how to do it, if that is possible.
---------------------------
Anton
You are connecting to the usenet group
"comp.lang.pascal.ansi-iso". There are various ways of doing that,
and some hide what they are doing. The best means is to get a
newsreader, such as Thunderbird, slrn, etc. You seem to have one
already, in Xnews.
>
> Original question:
> --------------------------
> I have a unit to handle that structure ( is a bit more complicated,
> but is a good example), in this unit I have a procedure that
> deletes ( disposes ) the pointer. How can I know if a pointer are
> created or not?, I mean, I don't wont to try to delete something
> that has not been created yet, but I don't know how to do it, if
> that is possible.
> ---------------------------
You can't tell after the fact. You have to remember that you
created it.