Message 1 of 6
.Net custom object wrappers.
Not applicable
09-18-2012
06:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a custom entity which contains other child entities. The child entities are non-resident and are filed in/out via the parent entities dwgInFields and dwgOutFields methods. The .net wrapper for the parent has collections of wrapper objects for the children entities. When I add the parent wrapper object to the database, I get the warning "Forgot to call dispose()" for the children. I was under the impression that the garbage collector would handle the clean up, is this not the case? Should I call dispose() for the child wrapper objects, and if so, where?
Any thoughts on this?
Mike B