|
FreeMemory Method
|
|
|
Applies To
|
BasicTcl Object, AdvancedTcl Object
|
|
Prototype
|
FreeMemory(Handle As Long, Flags As Long, Reserved As Long) As Long
|
|
Input
|
The "Flags" parameter, which is reserved for future use and must be zero.
The "Reserved" parameter, which is reserved for future use and must be zero.
|
|
Output
|
The "Handle" parameter, which is set to zero.
|
|
Returns
|
Non-zero on success or zero in case of error.
|
|
COM Results
|
S_OK: Success.
E_INVALIDARG: A NULL pointer was passed. |
|
Side Effects
|
None.
|
|
Description
|
This method is a wrapper around the Tcl_Free function.
Memory freed using this method MUST have been allocated using the AllocateMemory method.
|
|
Notes
|
None.
|
|
Example
|
Private Sub Command1_Click()
Dim poTcl As TclBridge.BasicTcl Dim plHandle As Long Set poTcl = New TclBridge.BasicTcl Call poTcl.AllocateMemory(plHandle, 100&, 0&, 0&) ' allocate 100 bytes Call poTcl.FreeMemory(plHandle, 0&, 0&) Set poTcl = Nothing End Sub |