mdichildren - causing error 15580

Posted by Darren Parr on 22-Apr-2015 08:53

Hi

I'm raising an exception in the constructor for an form which is an mdichild after the child has been added to the window. The object is not created and the exception is returned to the parent nicely.

Unfortunately the mdichildren array is causing me problems as soon as I look at it. Is there a way to force this to be cleaned up?

Regards

Darren

All Replies

Posted by Matt Gilarde on 22-Apr-2015 09:37

Could you detect the error and raise the exception before adding the child to the MDI window? I've found that MDI is rather fragile and doesn't deal with unexpected outcomes well.

This thread is closed