Release memory after closing Ocaf document

Does someone know how to release the memory from an Ocaf document (TDocStd_Document) ? The document contains a.o. TPrsStd_AISViewer, TPrsStd_AISPresentation and TNaming_NamedShape attributes.
Calling the Close method of TDocStd_Application does not seem to release any memory.

Regards,

Guido

Pawel's picture

I know the problem too. Unfortunately I haven't found any solution by now (to tell the truth I haven't searched that hard).

OC is know for memory bugs. Check out the forum. I've seen some similar posts.

Pawel

Pawel's picture

I know the problem too. Unfortunately I haven't found any solution by now (to tell the truth I haven't searched that hard).

OC is know for memory bugs. Check out the forum. I've seen some similar posts with some ideas how to solve some problems.

Pawel

gveldkamp's picture

I don't know if it is a bug or not. Maybe some special actions need to be taken?
I tried removing the presentation attributes and remove all ais interactive objects from the viewer but that didn't help (much).
Maybe I need to remove the TNaming_NameShape attributes but I don't know how to do that.