CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: CHandleMap

Threaded View

  1. #1
    Join Date
    Jan 2005
    Location
    Akron, Ohio
    Posts
    670

    CHandleMap

    I've run into an interesting little stumbling block in the course of my coding adventures. I have been developing a multithreaded application. It worked fine on my old Windows x32 single core system. Now that I've ported it to a Windows x64 i5 dual core, I'm getting CWnd::AssertValid errors.

    I did some research and MSDN says that if two diferent threads make windows, then the assertvalid can fire off. Is this true? It also said something about one thread giving a window handle to another thread. Does anyone have a coding example? What is the typically strategy that others usually take when creating windows in multi-threaded application? Do you normally make one thread that creates all the windows? This can get nasty, so I'd like some thoughts on this initial observation so that I can limit my search of little. Thank you.
    Last edited by paradoxresolved; December 23rd, 2011 at 08:36 PM.
    error C2146a : syntax error : nebulizer stained in the tower floppy apple rider. Go rubble in flee smite. Bleeble snip snip.

    Documentation says: error C2146a - This means there is an error somewhere in the course of human endeavor. Fix in the usual way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured