[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2638.0. "Ques. Concerning Xt memory allocation/deallocation" by FREZEN::PROJECTS () Mon Apr 23 1990 13:20

There has been some talk in the vaxc conference pertaining to the use of
malloc/realloc/alloc/free/cfree

As for XtCalloc/XtMalloc/XtFree ...
Are there any conflicts in decwindows with the uses of one with the other.
Is there a documented rule set for using these.
Can using one with the other or vise versa cause conflict.

Thank you
T.RTitleUserPersonal
Name
DateLines
2638.1PSW::WINALSKICareful with that VAX, EugeneMon Apr 23 1990 19:166
The main rule is don't mix the DECwindows functions (XtMalloc, XtCalloc, XtFree)
with the non-DECwindows functions (malloc, calloc, free).  If you obtain memory
with malloc(), free it with free(), not XtFree().  Vice versa, if you get your
memory with XtMalloc(), be sure to free it with XtFree().

--PSW