Problem in Visual C++

Hi All,

I am facing a peculiar problem. I am using Visual C++ for a GUI program which reads the serial port continously and displaying the contents. I am using a "while" loop for this. But after starting the program I am not able to do anything with the application window (lik minimize, maximize, or stop the program). Can anybody help me in tackling this problem.

With thanks in advance.
VKA



Answer this question

Problem in Visual C++

  • Olivier Jooris

    POst some code
  • gicio

    vka wrote:

    Hi All,

    I am facing a peculiar problem. I am using Visual C++ for a GUI program which reads the serial port continously and displaying the contents. I am using a "while" loop for this. But after starting the program I am not able to do anything with the application window (lik minimize, maximize, or stop the program). Can anybody help me in tackling this problem.

    With thanks in advance.
    VKA

    Looks like you've gone into an endless loop or some call is blocking your main thread. For such tasks, it's best to use a worker thread so that your GUI remains responsive.



  • Problem in Visual C++