wxCURL protocols sample : improvments

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
User avatar
xaviou
Super wx Problem Solver
Super wx Problem Solver
Posts: 437
Joined: Mon Aug 21, 2006 3:18 pm
Location: Annecy - France
Contact:

wxCURL protocols sample : improvments

Post by xaviou »

Hi.

I recently had problems while trying to see the "Protocols" sample that comes with the wxCURL sources : it compiles fine, but when I tried to run it, no window was shown (but the application was running as I could see in the tasks list).

After a few searches, I found that the problem was an incompatibility of the main dialog code and my libs.
I've build wxWidgets-2.9.5 with the "DEBUG_FLAG=0" parameter.

And the first line in the constructor of the main dialog (wxCURLDlg.cpp) is :

Code: Select all

wxASSERT(wxXmlResource::Get()->LoadDialog(this, NULL, wxS("main_dialog")));
But as the "DEBUG_FLAG=0" parameter removes all wxAssert stuff from the libs, this line does nothing.

So, I think it should be replaced by something like :

Code: Select all

bool bOk=wxXmlResource::Get()->LoadDialog(this, NULL, wxS("main_dialog"));
wxASSERT(bOk);
And this problem also occurs in "wxGetFTPDialog".

Regards

Xav'
My wxWidgets stuff web page : X@v's wxStuff
Post Reply