crash report and release builds  [SOLVED]

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
oren
In need of some credit
In need of some credit
Posts: 5
Joined: Wed Dec 21, 2005 2:07 pm

crash report and release builds

Postby oren » Wed Dec 21, 2005 2:15 pm

Hi,

When I use the crash report dialog box in release builds, the dialog disappears after a few seconds (even without user interaction) and the program just hangs there - without the report dialog box.

In debug mode it works great.

Is there a solution for this?

specs: windows xp with vc6

Code: Select all

    if ( wxDebugReportPreviewStd().Show(*report) )
    {
        if ( report->Process() )
        {
            if ( m_uploadReport )
            {}
            else
            {
                report->Reset();
            }
        }
    }
   
    delete report;

priyank_bolia
wxWorld Domination!
wxWorld Domination!
Posts: 1339
Joined: Wed Aug 03, 2005 8:10 am
Location: BANGALORE, INDIA
Contact:

Postby priyank_bolia » Tue Dec 27, 2005 3:38 pm

Thats becuase it was made for error reporting in debug mode, and shouldn't be used in release mode. Anyway, I you still want to do it, then define debug macro (__WXDEBUG__) before the code and again undefine it after the code lines. Not sure whether it works or not.

oren
In need of some credit
In need of some credit
Posts: 5
Joined: Wed Dec 21, 2005 2:07 pm

  [SOLVED]

Postby oren » Thu Dec 29, 2005 11:12 am

thank you for assisting me.

I was under the impression that wxDebugReportPreviewStd could be used for release code inspite of its name.

I will try what you suggested and see what happens

edit :
I found out what the problem was.
1. the wxDebugReportPreviewStd can be used in release without the debug macro.
2. wxDebugReportPreviewStd will disappear only when there is a splash screen running at the same time as the crash report. The time of the splash screen visibility corresponds to the wxDebugReportPreviewStd visibility.
3. once the splash screen has disappeared then wxDebugReportPreviewStd will work normally if executed after the splash screen dissappears.

- this seems to be a bug
Last edited by oren on Thu Dec 29, 2005 12:12 pm, edited 1 time in total.

lowjoel
Moderator
Moderator
Posts: 1511
Joined: Sun Jun 19, 2005 11:37 am
Location: Singapore
Contact:

Postby lowjoel » Thu Dec 29, 2005 12:09 pm

it should be able to be used in release as well, but I write my own frame for wxDebugReport though


Return to “wxCode”

Who is online

Users browsing this forum: No registered users and 7 guests