Results 1 to 5 of 5
  1. #1
    DoctorGordanBens
    Guest

    Default Disabling popup window on application memory fault

    Hi All:

    I have developed and application (.exe) that I am using on WinXP to
    process data at night. A memory fault occurs on approximately .7% of
    the data (not a problem, the application does not have to be perfect
    right now). However, when a memory fault does occur, the annoying error
    report window pops up, suspending the processing until a user clears
    the window. For overnight processing jobs, this is unacceptable.

    I have disabled error reporting for this application, but a memory
    fault still causes an alert window to pop up, that must be cleared by a
    user.

    Aside from fixing the problem that causes the mem fault, any idea on
    how to have a memory fault handled without this popup alert, and have
    processing continue?

    Any help is appreciated.


  2. #2
    DoctorGordanBens
    Guest

    Default Re: Disabling popup window on application memory fault

    To disable the good Dr. Watson completely.

    HKLM\Software\Microsoft\WindowÂÂ*s NT\CurrentVersion\AeDebug
    set the string value
    Auto="0"
    and possibly change the string for
    Debugger="drwtsn32 -p %ld -e %ld -g"
    to
    Debugger=""

    If you later change your mind, from the "Run" box
    drwtsn32 -i

    Else if you just want no notification, from the run box;
    drwtsn32
    then uncheck the box for "Visual Notification"

    HKEY_LOCAL_MACHINE\SOFTWARE\MiÂÂ*crosoft\DrWatson
    "VisualNotification"=dword:000ÂÂ*00000

    --
    Regards,


    Dave Patrick ....Please no email replies - reply in newsgroup.
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    http://www.microsoft.com/protect

    "No Such Luck" wrote:
    | Hi All:
    |
    | I have developed and application (.exe) that I am using on WinXP to
    | process data at night. A memory fault occurs on approximately .7% of
    | the data (not a problem, the application does not have to be perfect
    | right now). However, when a memory fault does occur, the annoying error
    | report window pops up, suspending the processing until a user clears
    | the window. For overnight processing jobs, this is unacceptable.
    |
    | I have disabled error reporting for this application, but a memory
    | fault still causes an alert window to pop up, that must be cleared by a
    | user.
    |
    | Aside from fixing the problem that causes the mem fault, any idea on
    | how to have a memory fault handled without this popup alert, and have
    | processing continue?
    |
    | Any help is appreciated.
    |



  3. #3
    DoctorGordanBens
    Guest

    Default Re: Disabling popup window on application memory fault


    "No Such Luck" <no_suchluck@hotmail.com> wrote in message
    news:1123084546.727444.24280@g44g2000cwa.googlegro ups.com...
    > Hi All:
    >
    > I have developed and application (.exe) that I am using on WinXP to
    > process data at night. A memory fault occurs on approximately .7% of
    > the data (not a problem, the application does not have to be perfect
    > right now). However, when a memory fault does occur, the annoying error
    > report window pops up, suspending the processing until a user clears
    > the window. For overnight processing jobs, this is unacceptable.
    >
    > I have disabled error reporting for this application, but a memory
    > fault still causes an alert window to pop up, that must be cleared by a
    > user.
    >
    > Aside from fixing the problem that causes the mem fault, any idea on
    > how to have a memory fault handled without this popup alert, and have
    > processing continue?


    By using Structured Exception Handling in Windows... but there isn't much
    else you can do than to suspend the thread... and hope that other threads
    can run without it without being blocked due to some mutex/critical section
    or semaphore tokens the thread has aquired.

    So best to fix the bugs....

    - Sten




  4. #4
    DoctorGordanBens
    Guest

    Default Re: Disabling popup window on application memory fault

    Hi,

    Well, you can use the win32 API SetErrorMode() function to inform the
    system that
    your application program will handle any serious errors on its own. You
    need to
    include the following flags within the function call, to prevent the
    display of the GPF
    messageBox, when the runTime system detect the memory fault error.

    SEM_FAILCRITICALERRORS
    SEM_NOGPFAULTERRORBOX

    That said, you need to call this function again when the application
    program had
    stopped, to restore back the old error mode for the other applications.

    http://msdn.microsoft.com/library/de...terrormode.asp


    Hope these information helps.

    Kellie.


  5. #5
    DoctorGordanBens
    Guest

    Default Re: Disabling popup window on application memory fault

    Um, an exe that memory-faults is not "imperfect" - it is "buggy"!

    Surely, if you already know where the bug is, it shouldn't be all that
    hard to fix it?

    TC


Similar Threads

  1. Pagefiles
    By DoctorGordanBens in forum Make
    Replies: 9
    Last Post: 09-12-05, 09:24 AM
  2. Overclocking the CPU, Motherboard & Memory
    By Blues in forum Tips & guides
    Replies: 10
    Last Post: 08-03-05, 12:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts