Two problems porting wxApp to Solaris (Ultra Sparc II / wxMotif)
Lothar Behrens
lothar.behrens at lollisoft.de
Sat Jun 9 08:44:07 PDT 2007
Lothar Behrens wrote:
> Vadim Zeitlin wrote:
> > LB> wxString wxWindow::GetLabel() const
> > LB> {
> > LB> char *label;
> > LB> XtVaGetValues((Widget)GetMainWidget(), XmNtitle, &label, NULL);
> > LB>
> > LB> return wxString(label); <<<<<<<<
> > LB> }
> >
> > What is the value of label here? Does it help to initialize the label
> > variable with NULL?
> > VZ
>
> It may help, as of I am thinking the called function may not
> initialize it.
>
> I'll try that...
That was the problem. It's true, some compilers will 'save runtime',
not automatically initializing variables, but
others do. Pittfall!
Lothar
More information about the wx-users
mailing list