| MIL 10 Reference
| Customize Help
| Save Settings

MbufFree



See also
Availability
Available in MIL-Lite
Available in MIL

Available on Windows
Available on Linux

Available on Non-Matrox computer
Available on Matrox 4Sight-X
Available on Matrox 4Sight GP
Available on Matrox Supersight
function map Function map
Examples
3dmodelheightdefect.cpp
3dplanefit.cpp
adaptivethresholder.cpp
addconstant.cpp
advancedmeasurement.cpp
aimdpmgrading.cpp
autodetect.cpp
bestplanefitter.cpp
binarybasedcircledetection.cpp
blisterpackinspection.cpp
blobmerge.cpp
bottlecapinspection.cpp
calibratedruler.cpp
calibrationfromlist.cpp
cameraevents.cpp
cameralasercalibration.cpp
cameraonrobotarmcalibration.cpp
caninspection.cpp
chromasens3dpixa.cpp
chunkmode.cpp
circlemeasurement.cpp
circleshapefinder.cpp
codegrading.cpp
colorbasedproductidentification.cpp
colorrelativecalibration.cpp
cookiedetection.cpp
deadpixelcorrection.cpp
defectdetectionexample.cpp
defectdetectionprocfunc.cpp
defectdetectionprocfunc_capandcontent.cpp
defectdetectiontask.cpp
depthdatamgr.cpp
dmiladdconstantmain.cpp
dmilbasic.cpp
dmilmdigprocesssharedmemory.cpp
dmilmultisystem.cpp
dmilobjecttracking.cpp
dmilobjecttrackingslave.cpp
dmilremap.cpp
dmilremapslave.cpp
dmilsyncasyncmain.cpp
dotspacing.cpp
exampleinterface.cpp
examplemanager.cpp
examplemanagerfor3d.cpp
extendeddepthoffield.cpp
fdkaddconstantmain.cpp
fdkhistogrammain.cpp
fdklutmapmain.cpp
fdkminmaxmain.cpp
fdkoffsetgainlutmapmain.cpp
fdkoffsetgainmain.cpp
fdkoffsetgainminmaxmain.cpp
featurefinder.cpp
findimageorientation.cpp
fixturedcoderead.cpp
fixturingusingblob.cpp
flatfieldcorrection.cpp
foodinspection_cereal.cpp
foodinspection_mango.cpp
foodinspectioncereal.cpp
foodinspectionmango.cpp
form1.cs
form1.vb
histogramdisplay.cpp
histogramequalizeadaptive.cpp
imagedownscalingmodes.cpp
imageupscalingmodes.cpp
inspectiontask.cpp
interactivebayer.cpp
kinect.cpp
kinectcamera.cpp
kinectcamerastandalone.cpp
lmigocator2000.cpp
m3dmap.cpp
m3dmap.cs
m3dmap.vb
mappbenchmark.cpp
mappbenchmark.cs
mappbenchmark.vb
mapptrace.cpp
mapptrace.cs
mapptrace.vb
matroxgatoreye.cpp
mbead.cpp
mbead.cs
mbead.vb
mblob.cpp
mblob.cs
mblob.vb
mbufbayer.cpp
mbufcolor.cpp
mbufcolor.cs
mbufcolor.vb
mbufpointeraccess.cpp
mbufpointeraccess.cs
mbufsharedmemory.cpp
mcal.cpp
mcal.cs
mcal.vb
mcode.cpp
mcode.cs
mcode.vb
mcol.cpp
mcol.cs
mcol.vb
mcolorwarp.cpp
mdigautofocus.cpp
mdigautofocus.cs
mdigautofocus.vb
mdigdoublebuffering.cpp
mdigdoublebuffering.cs
mdigdoublebuffering.vb
mdiggrabmultiple.cpp
mdiggrabsequence.cpp
mdiggrabsequence.cs
mdiggrabsequence.vb
mdigitizer.cpp
mdigprocess.cpp
mdigprocess.cs
mdigprocess.vb
mdigprocess16vd.cpp
mdigprocessmultiple.cpp
mdispgtkview.cpp
mdispmfcdoc.cpp
mdispoverlay.cpp
mdispoverlay.cs
mdispoverlay.vb
mdispqtview.cpp
mdispwindow.cpp
mdispwindowgtk.cpp
mdispwindowleveling.cpp
mdispwindowleveling.cs
mdispwindowleveling.vb
mdispwindowqt.cpp
meas2stepoverview.cpp
measoverviewexample.cpp
mechanicalpartscan.cpp
medge.cpp
medge.cs
medge.vb
mfunc.cpp
mfunc.cs
mfunc.vb
mgrainteractive.cpp
mgrainteractive.cs
mgrainteractive.vb
microsoftkinect.cpp
mil3dcam_sickrangerc.cpp
mil3dcam_sickrangere.cpp
milapplication.cs
milapplication.vb
milgige.cpp
mimbinarizeadaptive.cpp
mimconvolve.cpp
mimconvolve.cs
mimconvolve.vb
mimdeinterlace.cpp
mimdeinterlace.cs
mimdeinterlace.vb
mimfft.cpp
mimfft.cs
mimfft.vb
mimhistogram.cpp
mimhistogram.cs
mimhistogram.vb
mimlocatepeak1d.cpp
mimlocatepeak1d.cs
mimlocatepeak1d.vb
mimmorphic.cpp
mimpolar.cpp
mimpolar.cs
mimpolar.vb
mimprocessing.cpp
mimprocessing.cs
mimprocessing.vb
mimsegment.cpp
mimsegment.cs
mimsegment.vb
mimwarp.cpp
mimwarp.cs
mimwarp.vb
mmeas.cpp
mmeas.cs
mmeas.vb
mmet.cpp
mmet.cs
mmet.vb
mmod.cpp
mmod.cs
mmod.vb
mmodeltracking.cpp
mmodeltracking.cs
mmodeltracking.vb
mocr.cpp
mocr.cs
mocr.vb
morphischannelswitchingdlg.cpp
morphology.cpp
mpat.cpp
mpat.cs
mpat.vb
mpmenu.cpp
mpmenubutton.cpp
mpprocessing.cpp
mprotateprocessing.cpp
mpwarpprocessing.cpp
mreg.cpp
mreg.cs
mreg.vb
mseqprocess.cpp
mseqprocess.cs
mseqprocess.vb
mstr.cpp
mstr.cs
mstr.vb
mthread.cpp
mthread.cs
mthread.vb
muart.cpp
multicamera.cpp
multicastmaster.cpp
multicastmonitor.cpp
multicastslave.cpp
multipledatamatrixcoderead.cpp
multiviewannotations.cpp
objectlocalization3d.cpp
objectseparation.cpp
packetdelay.cpp
pcbmodelmatching.cpp
pfocus.cpp
processingfpga.cpp
productidentificationoasis.cpp
profiledisplay.cpp
publishingapplication.cpp
regionmanager.cpp
registeredgoldentemplate.cpp
scriptpreprocessing.cpp
segmentationandanalysisofcells.cpp
semiocr.cpp
sickcamera_rangere.cpp
sickframegrabber.cpp
sickrangerc.cpp
sickrangere.cpp
simpledilateerode.cpp
stereocalibration.cpp
superresolution.cpp
targetalignmenttask.cpp
tirestringread.cpp
utilmatchcolormap.cpp
variouscodereadings.cpp
variousdenoising.cpp
viofeaturesdemo.cpp
vioplayback.cpp
wavelettransformation.cpp
Synopsis
Free a data buffer.
Syntax
void MbufFree(
MIL_ID BufId //in
)
Description

This function deallocates a previously allocated data buffer. The memory reserved for the specified buffer is released.

Child buffers associated with a parent buffer must be deallocated, using MbufFree(), prior to deallocating the parent buffer.

Note that LUT buffers, once associated with another buffer, a digitizer, or a display, should either be disassociated before being freed, or freed after the assocaited buffer, digitizer, or display is freed.

To disassociate a display or digitizer LUTs, use MdigControl() with M_LUT_ID set to M_DEFAULT or MdispLut() with M_DEFAULT. In the case of buffers, use MbufControl() with M_ASSOCIATED_LUT set to M_DEFAULT.

Using MbufFree() on a buffer created with either MbufCreateColor() or MbufCreate2d() will free the internal structure required to map the buffer to existing memory, but MbufFree() will not free the allocated memory used by the created buffer.

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see if there is complementary information.
Parameters
This function is not supported on the selected boards.
Parameter
BufId

Specifies the identifier of the data buffer to deallocate.

Compilation information
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll.