[Insight-developers] ReleaseDataFlagOn() <-> ReleaseData

Martin Waitzbauer mazzok at gmx.at
Thu Mar 31 07:21:43 EDT 2011


Hello

Ive a question about the use of ReleaseDataFlagOn() an a filter

1, when do i need to set  ReleaseDataFlagOn(), ive seen i can set it before execution, what about after the filters->Update()
2, do i ned to reset ReleaseDataFlagOn() when the same instance of the filter is getting new input
e.g

filter f = filter:new()
f->ReleaseDataFlagOn()
f->SetInput(image)
f->Update()
f->SetInput(image_new)
(f->ReleaseDataFlagOn()?)

does ReleaseDataFlagOn release the filters data object immediatly after the execution of the Filter?
If not is there another way to instantly reset the used memory?
Im aksing because im having a long pipeline with large data, if im not releasing memory i get a bad alloc error

2, Does image->ReleaseData() the same as filter->ReleaseDataFlagOn()?
or does this happen instantly??

Thanks alot

Maz

-- 
NEU: FreePhone - kostenlos mobil telefonieren und surfen!			
Jetzt informieren: http://www.gmx.net/de/go/freephone


More information about the Insight-developers mailing list