Windows 7 Message

[Migrated content. Thread originally posted on 01 February 2012]

Hi All,

Just started to get a windows error message popping up when running my Visual Cobol Windows project.

This has only started happening since it started running on a Windows 7 pc and the message says:-

"Program has stopped working" "Windows is checking for a solution to the problem" however it just hangs.

The exact same application works fine on a Windows XP machine.

So what does it mean and how can I tell it to just "get on with it!" so the program works normally.

Any help greatly appreciated as my customer is getting very annoyed!

Many thanks

Neil.
  • Neil, any clues as to where this is happening in the code?

    Does it happen when running under the debugger?

    NET or native code?
  • Hi Neil,

    Just as some background - the way Windows works (primarily for GUI applications) is that the operating system sends the application messages on a regular basis, and expects a quick response. With early versions of Windows, it was easy for a badly behaved application to become unresponsive and give a poor experience for the whole desktop.
    With Windows 7, it has a built-in monitor for each application ensuring that it responds promptly to each message. What you're seeing is symptomatic of a GUI application not responding quickly to its messages.
    As Scot has indicated, it would be helpful for you to give us an idea of exactly what it is that you're doing when you get this dialog. We'll then be able to work with you to ensure that the application is responsive enough.
  • Hi Scott,

    No and no its just random and only just started happening in Windows7 pc's.

    Thanks

    Neil.
  • Hi Neil,

    If I am not mistaken this is a managed code Windows Forms application, is that correct?
    Is it 32-bit or 64-bit or anyCpu?

    Does it access a database using OpenESQL?
    Does it call native code .dlls as well?
    The more detail that you can provide us with the better chance we will have of tracking down the issue?

    Thanks.
  • Hi Chris,

    Thanks for getting back to me, answers below:-

    If I am not mistaken this is a managed code Windows Forms application, is that correct?
    YES

    Is it 32-bit or 64-bit or anyCpu?
    32-BIT

    Does it access a database using OpenESQL?
    IF THATS THE TOOL IN VISUAL COBOL THEN YES.
    TO CONNECT TO THE SQL DATABASE AT RUNTIME I USE THE 32 BIT SQL SERVER DRIVER IN THE MICROSOFT ODBC DATA SOURCE MANAGER.

    Does it call native code .dlls as well?
    NO.

    As I say this only happens on Windows7 machines so what have Microsoft done now!

    Kind regards

    Neil.