Board index » Visual Studio » Dialog box as a child window exiting problems

Dialog box as a child window exiting problems

Visual Studio284
I have created a Modeless Dialog box as a child window (so that the control

are always visable). I thought (wrongly so it seems) that when the user

exits the main window the closing of the closing of the child window would be

handled by the destroy call of of the main window but I am getting an

Assertion fault. What do I need to do before the programme exits?


-
 

Re:Dialog box as a child window exiting problems

Grant wrote:

Quote
I have created a Modeless Dialog box as a child window (so that the control

are always visable). I thought (wrongly so it seems) that when the user

exits the main window the closing of the closing of the child window would be

handled by the destroy call of of the main window but I am getting an

Assertion fault. What do I need to do before the programme exits?



What's the assertion on which you get a fault? Have you tried to look at

the source code where the assertion happens?



And, yes, it's generally a good habit to explicitly close all child

windows upon exiting, in the order reverse to their opening. Keeps the

filthy birds out of the room, you know...



V

-

Re:Dialog box as a child window exiting problems

Thanks it was a firday night problem...I was using the wrong funciotn to open

the child window.....got it to work now



"Victor Bazarov" wrote:



Quote
Grant wrote:

>I have created a Modeless Dialog box as a child window (so that the control

>are always visable). I thought (wrongly so it seems) that when the user

>exits the main window the closing of the closing of the child window would be

>handled by the destroy call of of the main window but I am getting an

>Assertion fault. What do I need to do before the programme exits?



What's the assertion on which you get a fault? Have you tried to look at

the source code where the assertion happens?



And, yes, it's generally a good habit to explicitly close all child

windows upon exiting, in the order reverse to their opening. Keeps the

filthy birds out of the room, you know...



V



-