Results 1 to 4 of 4

Thread: Window manager in Windows, How I can solve this problem?

  1. #1
    Join Date
    Oct 2013
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Window manager in Windows, How I can solve this problem?

    I'm developing an application that receives data from the com port. The data are continuously logged to a file on hard drive, lost data can not be allowed. I encountered the following problem when pinch a window, the main thread is blocked, and the data are no longer written to the file. How can I solve this problem? I try make a record in a separate thread, but it did not help because the data obtained in the main thread, which is drawn interface. If any solutions to this problem?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Window manager in Windows, How I can solve this problem?

    Have you moved both reading and writing to the secondary thread?

    Does the thread interact with the main thread in any way?

    Cheers,
    _

  3. #3
    Join Date
    Oct 2013
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Window manager in Windows, How I can solve this problem?

    Architecture classes next . There is the main class that creates a lot of others. Driver Class com port that receives the data and sends to the class that processes the data from the device , the class creates another class that is responsible for writing to a file . I try moved to a separate thread , only the object that writes to a file, but it does not produce results , unnecessarily blocking the main thread , I block to receive and process data. Move all in the other thread (receiving, processing and recording , I can not ) might interact architecture classes is not very good, and trying to do it, there are many errors.The only way to completely rewrite the entire project by dividing the drawing interface and work with data in different threads , but here there ability to make some complexity.Perhaps there any ways out of this situation?

  4. #4
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Window manager in Windows, How I can solve this problem?

    Really, there was no sync transmitter - receiver physical layer?

Similar Threads

  1. Tell the window manager to skip the taskbar (launcher)
    By turtle in forum Qt Programming
    Replies: 1
    Last Post: 20th March 2016, 20:22
  2. How to solve GUI freezing problem
    By honestapple in forum Newbie
    Replies: 28
    Last Post: 6th April 2013, 13:35
  3. Changing window states breaks window manager
    By sebastian.f in forum Newbie
    Replies: 3
    Last Post: 30th June 2009, 15:40
  4. Antico Window Manager
    By peppino in forum Qt-based Software
    Replies: 2
    Last Post: 25th November 2008, 20:31
  5. Replies: 4
    Last Post: 30th March 2006, 00:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.