Skip to Content
0
Former Member
Oct 19, 2007 at 08:43 AM

Dispose of SDK UI API Objects

230 Views

Is it recommended to dispose the UI objects like this? Is there a check by sap on the refcount of the ui com objects?

System.Runtime.InteropServices.Marshal.ReleaseComObject( m_menu );

I know it is strongly recommended for DI objects and had already some trouble with it. Strange enough none of the sample code releases the objects witch is wrong in my opinion!

What is yours expirience with the UI objects? Do i have to dispose the after use?