IROOTFORM_Release fails | developer.brewmp.com IROOTFORM_Release fails | developer.brewmp.com

Developer

IROOTFORM_Release fails

Forums:

What are the possible cuases of getting unhandlled exception while calling IROOTFORM_Release method? I have a root form, a form, multiple XY containers and multiple widgets within those xy containers. Before I call IROOTFORM_Release method I release all of the above resources. For few items the reference count does not go to zero. When I call IROOTFORM_Release, I get an access violation error.

- SD

One thing that can trip you is that forms are released before the form widgets. So if a widget's free function references something that was released or freed by the form's free function, you can get a crash. Also make sure you cancel any listeners you've set and free all handler descs.
-Erik

One thing that can trip you is that forms are released before the form widgets. So if a widget's free function references something that was released or freed by the form's free function, you can get a crash. Also make sure you cancel any listeners you've set and free all handler descs.
-Erik