Problem with mouse events

Iulian-Nicu Serbanoiu undergraver at gmail.com
Thu Oct 5 01:27:32 PDT 2006


what part of the code crashes/where ?

a stack trace in gdb would be good.

try removing the printf. check if the objects are initialized ( vUserLevel
not initialized for example could be the cause of the crash ).

HTH,

Iulian


On 10/4/06, Craig Deady <cdeady at systems-shop.com> wrote:
>
> I have the following two sample code fragments. The first code fragment
> works fine, the second one causes a Segmentation fault. The only
> difference is that the second responds to a mouse down event on a
> wxTextCtrl object and the first is a clicked event on a button.
> Any ideas why I am getting the Segmentation fault?
> Linux 2.6 (Fedora Core 5) & wxWidgets 2.6.3
>
> Thanks,
> Craig
>
> void MainPanel::OnStartrefClick( wxCommandEvent& event )
> {
>     printf("UserLevel =3D %s\n",vUserLevel->GetValue().c_str());
>
> event.Skip();
> }
>
>
> void MainPanel::UserSelect(wxMouseEvent& event)
> {
>     printf("UserLevel =3D %s\n",vUserLevel->GetValue().c_str());
>
>     event.Skip();
> }
>
> --
> Craig Deady
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20061005/e5d=
13b7b/attachment.htm


More information about the wx-users mailing list