Solved: wincore line 1034 on CE version line 875 on PC version

Solved: wincore line 1034 on CE version line 875 on PC version

Post by Laer » Wed, 16 Jul 2003 04:12:22



Hi,

Finally the beast has been found and killed.
The problem was this:

I did this in PretranslateMessage                                                       nChar=VK_ESCAPE                                                                 pMsg->wParam=MAKEWPARAM(nChar,nhChar);                                       //AfxMessageBox(_T("Posting
quit message");                                    PostMessage(pMsg->message,pMsg->wParam,pMsg->lParam);

Replacing it with this solved the
problem:                                                PostMessage(WM_KEYDOWN,VK_ESCAPE,0);

strange but true.

Thanks to everybody who has replied to my posting.

Regards
Laery


> Which makes sense why you are hitting the ASSERT.

> What do you need the ASSERT for?

> --
> ~Demitri

> (This posting is provided "AS IS" with no warranties, and confers no
> rights.)



> > Sorry misunderstood you're question.
> > The cdialog is gone when the assertion is given.

> > > Sounds like your handle is invalid.

> > > Has the window already been destroyed when you hit this ASSERT?

> > > --
> > > ~Demitri

> > > (This posting is provided "AS IS" with no warranties, and confers no
> > > rights.)



> > > > Hi,

> > > > I have an application that compiles for CE and PC using EVC 3.0 and
> > > > VC6.0.
> > > > But in debug both give this error when VK_RETURN of VK_ESCAPE is
> > > > pressed to close the the dialog.

> > > > ASSERT(::IsWindow(m_hWnd));

> > > > What could cause this problem?
> > > > I have tried tracing but without result :-(

> > > > Could reusing the same dialog ID for several windows (not at the same
> > > > time offcours) be the problem.

> > > > Regards

> > > > TheLaery

 
 
 

1. wincore line 1034 on CE version line 875 on PC version

Hi,

I have an application that compiles for CE and PC using EVC 3.0 and
VC6.0.
But in debug both give this error when VK_RETURN of VK_ESCAPE is
pressed to close the the dialog.

ASSERT(::IsWindow(m_hWnd));

What could cause this problem?
I have tried tracing but without result :-(

Could reusing the same dialog ID for several windows (not at the same
time offcours) be the problem.

Regards

TheLaery

2. fatal exception 0028:C000BC1E

3. Error: FIle wincore.cpp, Line 1034

4. Canon G@

5. Assertion Failed wincore.cpp line 1241

6. NT4 and Get27

7. transfering files

8. IE version from CMD line?

9. Recycle Bin - cmd line version?

10. Is there a Windows Comnmand Line Version Like the Unix "kill"

11. Is There a Command Line Windows Version of the Unix "Kill"

12. Command Line version of NT WINDISK?