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 |
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.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2638.1 | PSW::WINALSKI | Careful with that VAX, Eugene | Mon Apr 23 1990 19:16 | 6 | |
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 |