crash report and release builds Topic is solved

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
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

Post by oren »

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:

Post by priyank_bolia »

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

Post by oren »

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
Part Of The Furniture
Part Of The Furniture
Posts: 1511
Joined: Sun Jun 19, 2005 11:37 am
Location: Singapore
Contact:

Post by lowjoel »

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