Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
MapleAlloc - allocate memory in external code
MapleDispose - free memory in external code
Calling Sequence
MapleAlloc(kv, n)
MapleDispose(kv, s)
Parameters
kv
-
kernel handle returned by StartMaple
n
number of bytes to allocate
s
Maple object
Description
These functions are part of the OpenMaple interface to Microsoft Visual Basic.
The MapleAlloc function allocates n bytes of memory and returns a pointer to it. The MapleDispose function frees this memory so it can be reused for other purposes.
MapleAlloc is used to access temporary memory that will be cleaned up by the Maple garbage collector. The memory returned by MapleAlloc cannot be protected from gc. To allocate memory that persists, use standard non-Maple memory allocation methods.
MapleDispose releases the memory allocated to the structure s. It must be used only on data structures created using MapleAlloc.
See Also
dismantle, gc, OpenMaple, OpenMaple/VB/API, OpenMaple/VB/Examples
Download Help Document