Hi,

I am using SPRINT PPC 6700 and evc++ 4 to develop application. When i
try to stop application from Start->Settings->Memory in Running program
list my application crashes. Then i have handled WM_CLOSE and
WM_DESTROY messages and performing proper clean up before exit. But the
problem comes when any popup dialog of application is open. If any
dialog is open and i try to stop application then i dont get any
message. What could be the reason for this. The dialog is modal dialog
with pop up.

Thanks
Rajat

Re: Application crashes when stop from running program list by ctacke/>

ctacke/>
Tue Sep 19 10:53:16 CDT 2006

Because the WM_QUIT that it's posting is going to the modal dialog's message
pump, not to the app's.


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


"Rajat" <raj.rr7@gmail.com> wrote in message
news:1158670274.039977.259890@d34g2000cwd.googlegroups.com...
> Hi,
>
> I am using SPRINT PPC 6700 and evc++ 4 to develop application. When i
> try to stop application from Start->Settings->Memory in Running program
> list my application crashes. Then i have handled WM_CLOSE and
> WM_DESTROY messages and performing proper clean up before exit. But the
> problem comes when any popup dialog of application is open. If any
> dialog is open and i try to stop application then i dont get any
> message. What could be the reason for this. The dialog is modal dialog
> with pop up.
>
> Thanks
> Rajat
>



Re: Application crashes when stop from running program list by Rajat

Rajat
Wed Sep 20 01:54:23 CDT 2006

Hi,

I also code in the modal dialog to get the events WM_QUIT, WM_CLOSE and
WM_DESTROY. But some how i dont get any event in popup dialog or main
dialog.

Regards,
Rajat


<ctacke/> wrote:
> Because the WM_QUIT that it's posting is going to the modal dialog's message
> pump, not to the app's.
>
>
> --
> Chris Tacke
> OpenNETCF Consulting
> Managed Code in the Embedded World
> www.opennetcf.com
> --
>
>
> "Rajat" <raj.rr7@gmail.com> wrote in message
> news:1158670274.039977.259890@d34g2000cwd.googlegroups.com...
> > Hi,
> >
> > I am using SPRINT PPC 6700 and evc++ 4 to develop application. When i
> > try to stop application from Start->Settings->Memory in Running program
> > list my application crashes. Then i have handled WM_CLOSE and
> > WM_DESTROY messages and performing proper clean up before exit. But the
> > problem comes when any popup dialog of application is open. If any
> > dialog is open and i try to stop application then i dont get any
> > message. What could be the reason for this. The dialog is modal dialog
> > with pop up.
> >
> > Thanks
> > Rajat
> >