comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Freeing handles question.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Freeing handles question. [message #4941] Wed, 23 August 1995 00:00
Russ Welti is currently offline  Russ Welti
Messages: 27
Registered: October 1994
Junior Member
Can anyone summarize in plain English:

"Precisely when it is critical to free handles?"

For example, if I point handles to things which are
in COMMON blocks, I assume I don't want/need to free
the handles when it is time to point them to a new
item. BUT if I point these handles to items created local
to a routine and exit that routine while still having
the handle set and accessible, then I better remember
to free it at some point... (?)

One can generate quite complex scenarios w/arrays of structures
which have handles to various places, and if the array must be
completely rebuilt (suppose the user 'opens' a new "file") then
can I just destroy and rebuild my complex array? What guides my
decision?

Another way to phrase this is "What are the most common
pitfalls to using handles, in a nutshell?"

I confess that I do NOT make the use of them that I could/should,
merely because it is somewhat of a mystery to me what my
duties are to use them correctly. I only know when I *don't*
use them correctly (core dump). I would like to see them
explained in terms of malloc and free.
/
Russ Welti /-\
(c-g)
University of Washington \-/
Molecular Biotechnology /
PO Box 352145 /-\
Seattle, WA 98195 (a-t)
rwelti@u.washington.edu \-/
(206) 685 4449 voice (206) 685 ???? FAX /
http://chroma.mbt.washington.edu/graphics/gif/russ.gif
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Query: How to import Color Tables
Next Topic: Compound widget problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 01:37:42 PDT 2025

Total time taken to generate the page: 0.48100 seconds