Search found 21 matches
- Mon Oct 22, 2018 6:49 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Compiling wxWidgets for debug and for release in Windows using MinGW
- Replies: 1
- Views: 950
Compiling wxWidgets for debug and for release in Windows using MinGW
Hi guys, I want to build wxWidgets 3.1.1 using MinGW for debug and release, this is my make command for release: mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 MONOLITHIC=1 BUILD=release > log-rel.txt 2>&1 and for debug: mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 MONOLITHIC=1 BUILD=debug >...
- Thu Mar 26, 2015 11:31 pm
- Forum: C++ Development
- Topic: wxFileDialog very slow opening a file in debug mode
- Replies: 13
- Views: 4222
Re: wxFileDialog very slow opening a file in debug mode
No, the application is very simple, it is a port of the previous release made in Borland/Ebarcadero C++ Builder
- Wed Mar 25, 2015 7:13 pm
- Forum: C++ Development
- Topic: wxFileDialog very slow opening a file in debug mode
- Replies: 13
- Views: 4222
Re: wxFileDialog very slow opening a file in debug mode
It hangs on filedlg.cpp line 368: static bool DoShowCommFileDialog(OPENFILENAME *of, long style, DWORD *err) { if ( style & wxFD_SAVE ? GetSaveFileName(of) : GetOpenFileName(of) ) // this is line 368 return true; if ( err ) { #ifdef __WXWINCE__ // according to MSDN, CommDlgExtendedError() should...
- Wed Mar 25, 2015 6:57 pm
- Forum: C++ Development
- Topic: wxFileDialog very slow opening a file in debug mode
- Replies: 13
- Views: 4222
Re: wxFileDialog very slow opening a file in debug mode
No, there is no high load. Actually as a work around I introduced the recent files features that I didn't provide before so for general debug I haven't to wait anymore, then to test various files to process I can use non debug mode and restart in debug only if I find a problem (actually none found) ...
- Wed Mar 25, 2015 12:51 am
- Forum: C++ Development
- Topic: wxFileDialog very slow opening a file in debug mode
- Replies: 13
- Views: 4222
Re: wxFileDialog very slow opening a file in debug mode
I still have the problem only during debugging that is quite strange. I tried to stop Avast but nothing changed. Also using SetDirectory() to point the test directory doesn't solve the problem. So about 12 seconds are needed to see the open file dialog after clicking the File Open menu. In normal mo...
- Mon Mar 23, 2015 10:50 pm
- Forum: C++ Development
- Topic: wxFileDialog very slow opening a file in debug mode
- Replies: 13
- Views: 4222
Re: wxFileDialog very slow opening a file in debug mode
No, it takes a long time to open the dialog and also to selct the file if I need to navigate the path takes time. OpenData() loads some grids and this appen after the dialog has been closed.
- Mon Mar 23, 2015 9:23 pm
- Forum: C++ Development
- Topic: wxFileDialog very slow opening a file in debug mode
- Replies: 13
- Views: 4222
wxFileDialog very slow opening a file in debug mode
During my debugging, more or less at the end (now I am testing the GUI) I had this strange problem: to open a file using the standard file dialog the operation is very slow, the application seems to be very near to block. Seems to me that the code to write is very simple: void DataBuilder302Frame::F...
- Wed Mar 18, 2015 4:32 pm
- Forum: C++ Development
- Topic: SIGSEGV error if wxPanel has a wxNotebook * as parent
- Replies: 10
- Views: 2446
Re: SIGSEGV error if wxPanel has a wxNotebook * as parent
I found the problem also if I am not able to understand how it is born. For some unknown reason the GUIFrame.h file gerated by wxFormBuilder is correct but corrupted. I mean it compiles well but it was the hidden cause of the problem. I only deleted both GUIFrame.h and GUIFrame.cpp and make them as ...
- Tue Mar 17, 2015 2:23 pm
- Forum: C++ Development
- Topic: SIGSEGV error if wxPanel has a wxNotebook * as parent
- Replies: 10
- Views: 2446
Re: SIGSEGV error if wxPanel has a wxNotebook * as parent
It is initialized here inside the long comments: GUIFrame::GUIFrame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style ) { this->SetSizeHints( wxDefaultSize, wxDefaultSize ); m_MainM...
- Tue Mar 17, 2015 1:58 pm
- Forum: C++ Development
- Topic: SIGSEGV error if wxPanel has a wxNotebook * as parent
- Replies: 10
- Views: 2446
Re: SIGSEGV error if wxPanel has a wxNotebook * as parent
No it isn't possible because it is created in GUIFrame constructor; I checked also debugging it isn't NULL. I try to cut and paste only the relevant part: class GUIFrame : public wxFrame { protected: wxMenuBar* m_MainMenuBar; wxMenu* file; wxMenu* build; wxMenu* outputFormat; wxMenuItem* c; wxMenuIt...
- Tue Mar 17, 2015 11:51 am
- Forum: C++ Development
- Topic: SIGSEGV error if wxPanel has a wxNotebook * as parent
- Replies: 10
- Views: 2446
Re: SIGSEGV error if wxPanel has a wxNotebook * as parent
Yes, it is valid. It isa protected object pointer in GUIFrame class and created in its constructor. GUIFrame was made using wxFormBuilder. So in the 1st post I wrote only the 3 lines inside the main frame constructor. The main frame derives from the GUIFrame and adds the wxNotebook pages at runtime ...
- Tue Mar 17, 2015 10:53 am
- Forum: C++ Development
- Topic: SIGSEGV error if wxPanel has a wxNotebook * as parent
- Replies: 10
- Views: 2446
SIGSEGV error if wxPanel has a wxNotebook * as parent
Seems that I can't call wxPanel constructor without errors if its parent is a wxNotebook: wxPanel *pnl1 = new wxPanel(); wxPanel *pnl2 = new wxPanel(this); wxPanel *pnl3 = new wxPanel(m_notebook7); first 2 rows are working, 3rd causes an error on window.h row 682: long GetExtraStyle() const { return...
- Sat Mar 14, 2015 3:54 pm
- Forum: Compiler / Linking / IDE Related
- Topic: "unknown 32 bit type" error on defs.h line 1072 building wxWidgets no dll monolithic unicode debug mode
- Replies: 1
- Views: 1070
Re: "unknown 32 bit type" error on defs.h line 1072 building wxWidgets no dll monolithic unicode debug mode
Seems to me that the error born using configure because in the private directory of the library (I mean the static monolithic etc etc version) wx/setup.h contains: #define SIZEOF_INT 0 instead of #define SIZEOF_INT 4 as I should expect for a win32 release. this is my setup.h complete path: C:\wx-3.0...
- Sat Mar 14, 2015 8:19 am
- Forum: Compiler / Linking / IDE Related
- Topic: "unknown 32 bit type" error on defs.h line 1072 building wxWidgets no dll monolithic unicode debug mode
- Replies: 1
- Views: 1070
"unknown 32 bit type" error on defs.h line 1072 building wxWidgets no dll monolithic unicode debug mode
I am tring to build wxWidgets using MSYS shell. I was anle to compile to build it as a set of dlls both in release and debug mode. Now I am tring to build it as a monolithic static library so I used: configure --enable-unicode --disable-shared --enable-monolithic --enable-debug and then make the err...
- Sat Mar 14, 2015 8:13 am
- Forum: C++ Development
- Topic: WxLogError SIGSEGV every time
- Replies: 7
- Views: 1854
Re: WxLogError SIGSEGV every time [SOLVED]
As suggested by doubemax I compiled wxWidgets 3.0.2 from source files and the problem disappeared. I experieced other problems building the libraries compiling them directly from Windows shell, for me in this way was impossible to build them correctly. The only way I was able to build the library is...