You are here: Symbol Reference > MtxVec Namespace > Classes > TMtx Class > public > Disown Method > TMtx.Disown Method (PAPointer, integer, integer, boolean, boolean)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtx.Disown Method (PAPointer, integer, integer, boolean, boolean)

Disowns a pointer to an array from matrix Values1D.

Pascal
procedure Disown(out AArray: PAPointer; out ARows: integer; out ACols: integer; out aIsComplex: boolean; out aIsDouble: boolean); overload;

The method does the opposite of the Adopt method. It will set the AArrays to Pointer(Values), ARows and ACols to matrix's Rows and Cols and IsComplex to matrix TMtxVec.ComplexComplexproperty. Use the Disown method to "disconnect" AArray from the TMtx.Values1D. Disown sets Values1D and CValues1D array pointers to nil and Rows, Cols properties to ACols, but without freeing the allocated memory. The allocated memory can be disowned only, if it was adopted with a call to the Adopt method.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!