General information
Category:
COM/DCOM and OLE Automation
What about this scenario,
- Client Create Object A
- Client Call an Object A Method
- Object A Create Object B
- Object A Calls an Object B Method
- Object B Encounter an error
- Object B Returns control to the client with ComReturnError()
Object A will still be active and is not aware of the problem of Object B, So what append in this case ?
>IMO, the best approach is to have a garbage collection method. Call it anytime you need to cleanup. Then call COMRETURNERROR(). The problems you cited are NOT due to COMRETURNERROR(), they are due to not doing proper cleanup.
>
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only