locked
The GUI hang up in win 7 RRS feed

  • Question

  • Dear all

    I develop the application  that display the information from mobile phone, and write a small program to monitor the application whether it is still running.(vc ++2008 SP1, MFC)

    The application is stable in winXP(can run in three days), but in win7 the application will hang up, that means I should use task manager to end the application.

    I look up my monitor program to check if the application is pass away, the result shows that the application is still run and update the information(I use virtual list to display the information, the application is continuing call OnLvnGetdispinfo function in the background to update the display when hang up)

    Is there any suggestion or ways to fix this issue?

    Thank you:)





    • Edited by 陸雲 Thursday, November 3, 2011 6:06 AM
    Thursday, November 3, 2011 2:19 AM

Answers

  • Run your app into a debugging session. Let devenv captures all the output debugging informations and paste us the informations. You should have first chance exceptions....

    Use the debugging to stop of every first chance. try again !


    Christophe Pichaud
    • Marked as answer by Rob Pan Monday, November 14, 2011 8:31 AM
    Friday, November 4, 2011 12:53 PM

All replies

  • The application is stable in winXP(can run in three days), but in win7 the application will hang up

    Does it hang on Win7 immediately (that some operation is done), or
    once in a blue moon?

    ... the application is continuing call OnLvnGetdispinfo function in the background to update the display when hang up)

    It's possible that you have some code that's incorrectly handling the
    message processing and it just happens to not cause a problem under
    XP. If you can, chop out any such Windows message handlers until the
    problem goes away and you can identify the culprit.

    Dave

    Thursday, November 3, 2011 7:49 AM
  • Does it hang on Win7 immediately (that some operation is done), or

    once in a blue moon?

    My application is hang on stability test after 1 hours, I can't select row from the clistctrl or click the button on toolbar(there's no reaction).

    It's possible that you have some code that's incorrectly handling the
    message processing and it just happens to not cause a problem under
    XP. If you can, chop out any such Windows message handlers until the
    problem goes away and you can identify the culprit.

    I think it's difficult to find this problem, I'll try it, thanks for your reply:)

     

    Friday, November 4, 2011 5:28 AM
  • Run your app into a debugging session. Let devenv captures all the output debugging informations and paste us the informations. You should have first chance exceptions....

    Use the debugging to stop of every first chance. try again !


    Christophe Pichaud
    • Marked as answer by Rob Pan Monday, November 14, 2011 8:31 AM
    Friday, November 4, 2011 12:53 PM