home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!pageworks.com!world!siegel
- From: siegel@world.std.com (Rich Siegel)
- Subject: Re: "DisposePtr" routine in THINK Pascal
- Message-ID: <C074z8.J2I@world.std.com>
- Organization: GCC Technologies
- References: <1993Jan1.191132.13938@fcom.cc.utah.edu>
- Date: Fri, 1 Jan 1993 22:25:56 GMT
- Lines: 27
-
- In article <1993Jan1.191132.13938@fcom.cc.utah.edu> Dmitry Boldyrev <dmitry@chemistry.chem.utah.edu> writes:
-
- > DisposePtr(Ptr(AppPtr)); #debugger info: address of AppPtr is
- >0001D23A2 (OK)
- >end. #debugger info: address of AppPtr is 0001D23A2 ?
- >
- >I used standard THINK Pascal debugger..
- >
- >Why, after calling *DisposePtr* my address is 0001D23A2 ?
- >It can't be! The address must be 000000000 here !!!!
- >What does it mean ? *DisposePtr* do nothing here? or smth else ?
- >I'm always care about "memory" in my programs!
- >Therefore I CAN'T CONTINUE MY PROJECT! Please, if anyone know what I'm
- >doing wrong, help!
-
- DisposePtr doesn't zero the actual pointer itself; it just releases the
- block of memory that the pointer pointed to. You don't have to worry;
- the memory actually did get freed.
-
- R.
-
-
- --
- -----------------------------------------------------------------------
- Rich Siegel Internet: siegel@world.std.com
- Senior Software Engineer
- GCC Technologies
-