Two problems porting wxApp to Solaris (Ultra Sparc II / wxMotif)
Lothar Behrens
lothar.behrens at lollisoft.de
Sat Jun 9 07:51:07 PDT 2007
Hi,
I have again done some work to get my application running on Solaris
(Sun Ultra 60 Sparc II).
The code now compiles well and the application is usable - some layout
issues but runs.
Problem one:
If I do not comment out the following code by the ifdef, it will crash
on that event araising at startup:
void lb_wxFrame::OnSize(wxSizeEvent& event)
{
#ifndef SOLARIS
m_mgr.Update(); // Separate wxAUI 0.9.1 not included in wxMotif \
// (Code not yet adopted to wxMotif
2.8.0)
event.Skip();
#endif
}
If I don't do that Update, the layout is a bit struggled :-)
Problem two:
If I search for a window in my panel with FindWindowByName("lala some
window", this); and I haven't
created it, FindWindowByName will crash internally while accessing the
windows label:
wxString wxWindow::GetLabel() const
{
char *label;
XtVaGetValues((Widget)GetMainWidget(), XmNtitle, &label, NULL);
return wxString(label); <<<<<<<<
}
Do anyone had similar issues on Solaris ?
The code works well under wxMac, wxGTK(Linux) and wxMSW with Open
Watcom.
Thank you,
Lothar
More information about the wx-users
mailing list