Title: | -={ H A C K E R S }=- |
Notice: | Write locked - see NOTED::HACKERS |
Moderator: | DIEHRD::MORRIS |
Created: | Thu Feb 20 1986 |
Last Modified: | Mon Aug 03 1992 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 680 |
Total number of notes: | 5456 |
Does the following sequence of calls cause a problem with the heap? "Initialize DESCR to a null dynamic descriptor" STR$COPY_DX (%ASCID'12345', DESCR); ! 5 characters STR$COPY_DX (%ASCID'321', DESCR); ! 3 characters STR$FREE1_DX (DESCR); ! return the memory In the FREE1_DX call DESCR has a length of 3, is there any problem with this or is it taken care of by the STR library? David
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
348.1 | CLT::GILBERT | eager like a child | Fri Oct 31 1986 15:06 | 2 | |
The parameters to STR$COPY_DX are reversed. That corrected, the answer to your question is "There's no problem". |