Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Cariboo42

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    7,711

    Re: QueryPerformanceCounter failure

    I just had the same problem but I notice something else:
    - If the variable is a member of the class: The function fails.
    - If the variable is a pointer (allocated with a new): The function works....
  2. Re: Problem: Creation of a modless CDialog in a thread.

    Ok. Now, I have a better understanding of how Windows manages messages.
    I’ll redesign my application that way this week-end. Fortunately not a big redesign. :)

    Thanks to all.
    (and sorry for my...
  3. Re: Problem: Creation of a modless CDialog in a thread.

    First of all, I think a good idea is to use a method to design applications.
    Personally I use UML with a lot of sequence diagrams for multi-threaded project, with every possible case. This prevents...
  4. Re: Problem: Creation of a modless CDialog in a thread.

    Thanks. It helps to understand how dialog message pump works and the problems inherent to such design when using in threads. But this concerns essentially modal dialogs. IMO, it should work with...
  5. Re: Problem: Creation of a modless CDialog in a thread.

    // Main thread: Creation of MonitorThread.

    CMonitorThread* pMonitor = new CMonitorThread (); // Derived from CWinThread.
    if ( pMonitor == NULL )
    {
    // Error management.
    ...
  6. Re: Problem: Creation of a modless CDialog in a thread.

    I created the thread using the CreateThread method, to have a message pump and then to be able to use PostThreadMessage.

    My application mount/unmount modules and a need to create a thread for each...
  7. Re: Problem: Creation of a modless CDialog in a thread.

    Sorry: ... it has NO associated windows.
  8. Re: Problem: Creation of a modless CDialog in a thread.

    Ok, we misunderstood. I use only CWinThread but I named this thread "working" thread because it has associated windows.
    Also the "working" thread works fine. The problem lies in the "monitoring"...
  9. Re: Problem: Creation of a modless CDialog in a thread.

    I use CWinThread and everything works fine. I develop and use my application for about one month. I discovered this bug two days ago, when exiting the application, just after a panel creation.
    ...
  10. Re: Problem: Creation of a modless CDialog in a thread.

    In fact, I develop an application with plug-ins and I decided to use Threads (and PostThreadMessages) for communication with my plug-ins. It also prevents the “main” thread to freeze due to...
  11. Problem: Creation of a modless CDialog in a thread.

    Hello,

    I’m developing an application composed of three threads:
    - The “main” thread, with the user interface and other stuff.
    - A “working” thread that handles messages to perform actions.
    - A...
Results 1 to 11 of 11


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center