Now: Tutorial for Web and Software Design > Programming > delphi > Programming Content
> Debugger [Bookmark it]
Debugger

Debugger

Hard Mode error message


Hard Mode error message

Question


I have a number of checkboxes on the screen and all of a sudden I am getting

an error message - Hard Mode. What does this mean?

Answer


A:

16Q) What does the debugger message "Debugger Is Unable To Stop

    Due To 'Hard Mode' " mean?

16A) DEFINITION:Hard mode is a state of Windows when no message

    processing can take place. It happens during menu drawing

    and some kernel operations.  It means that you are in a

    state that Delphi can not "freeze" your application without

    locking up Windows. Typically, that arises as a result of 

    multiple SendMessage calls. In addition a workaround which 

    often works: What you need to do is kick the system out of 

    hard mode. Interestingly enough, this can happen when the

    debugger puts up the system modal messagebox to tell you it's 

    in hard mode! So try putting an additional breakpoint on the

    line *before* your breakpoint. This first one will cause the 

    hard mode warning and should kick Windows out of hard mode. 

    When you OK that messagebox the second, desired, breakpoint

    should work.

       NOTE: Since the debugger is message driven, it cannot 

             allow you to stop at a breakpoint if it thinks 

             the system is in hard mode, because you wouldn't

             be able to do anything and the system would appear

             to be hung.



[Borland Delphi FAQ]


[Bookmark][Print] [Close][To Top]
  • Prev Article-Programming:

  • Next Article-Programming:
  • Related Materias
    Visual Basic Explorer - OL
    MAPI C++ Exchange Public F
    C++ MAPI - Configuring EDK
    Socket Server in Winsock E
    Socket Server in Win32 Sel
    Unicode to ascii conversio
    DDE / OLE
    Perl Success Story: Client
    Perl Success Story: Client
    Inside YAPC::NA 2005
    Topics
    Photoshop Tutorial
     

    Special Effect

      3D Effect
      Photoshop Articles
    Programming Tutorial
     

    C/C++ Tutorial

      Visual Basic
      C# Tutorial
    Database Tutorial
     

    MySQL Tutorial

      MS SQL Tutorial
      Oracle Tutorial
    Graphic Design Tutorial
     

    Coreldraw Tutorial

      Illustrator Tutorial
      3D Graphics Articles
    Webmaster Articles
     

    Domain Service

      Web Hosting
      Site Promotion
    Java Tutorial&Articles
     

    Java Servlets

      JavaEE Tutorial
     

    JavaBeans Tutorial

    XML Tutorial&Articles
     

    XML Style Tutorial

      AJAX Tutorial
      XML Mobile
    Flash Tutorial&Articles
     

    Flash Video

      Action Script
      Flash Articles
    OS Tutorial&Articles
     

    Linux Tutorial

      Symbian Tutorial
      MacOS Tutorial