"Hello, world!" crashes during exit

Slava Semushin slava.semushin at gmail.com
Fri May 25 09:37:20 PDT 2007


2007/5/25, Vadim Zeitlin <vadim / wxwindows.org>:
[...]
> SS> (BTW, I think this example may be upgraded by using
> SS> wxID_ABOUT/wxID_EXIT contants instead of self defined enumeration...)
>
>  Funny you should say this, I thought using these "magic" constants would
> be too confusing for the beginners. Maybe I was wrong.

IMHO these constants have speakers names and can't confuse users. And
if I`m not mistaken when we use these constants in menus appear icons
and additional hints in status bar.

[...]
>  I don't think there are any bugs in the code which can result in a crash
> in such simple example so I suspect the libraries were built incorrectly
> somehow and/or there was a mismatch between library headers and actual
> libraries used.

May be. And how test this? Build wxWidgets from sources?

[...]
>  Are you sure the packages were built with the same compiler version or at
> least a compatible one?

No.

>  Also, seeing you have the debug info package, what about running the
> program under gdb and looking at the backtrace ("bt" command) when it
> crashes?

I try debug under gdb and see to bt output, but I received only
question signs instead of real names of functions. Also I  try to link
againts wxWidgets with debug symbols (from wxWidgets-debuginfo
package) but my dance with LD_LIBRARY variable and -L flag fails =( (I
check this by grep'ing ldd output)


-- 
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru




More information about the wx-users mailing list