> > > using wxPerl 0.10...
> > Platform?
>
> sorry, Win2K.
>
> > > i am unable to create a Wx::CheckListBox - i get a violation each
> > > time, although replacing the class with Wx::ListBox works fine.
> > I have got a single segfault, and am not able to reproduce it...
> > Could you please send me a snippet of code that segfaults for you
> > ( please send a "complete" program, so I can do "perl foo.pl" on it )
> > A modification of the minimal sample would be great.
>
> all i need to do to reproduce it is change the controls.pl
> sample (line 157) from:
>
> $this->{LISTBOX} = Wx::ListBox->new( $panel, $ID_LISTBOX, [10, 10],
> [120, 70], $choices, wxLB_ALWAYS_SB );
>
> to:
>
> $this->{LISTBOX} = Wx::CheckListBox->new( $panel, $ID_LISTBOX, [10, 10],
> [120, 70], $choices, wxLB_ALWAYS_SB );
>
> and i get...
>
> perl.exe - Application Error
> The instruction at "0x00ffffff" referenced memory at "0x00ffffff".
> The memory could not be "read".
> OK to terminate, Cancel to debug
I get it too.
Are you using client data? With wxWin 2.3.x I get a warning
that you can't use client data with CheckListBox ( because
client data is aleady used internally ). If I remove the line
SetControlClientData( 'listbox', $this->{LISTBOX} );
the crash is not there anymore.
> if you need another (stand-alone) example, i'll put one together, but
> i think the above should suffice.
Yes, it does, thanks!
> can i just take this opportunity to say i just love wxPerl - it's the
> proverbial dogs bollocks. i've done GUIs under Win16/Win32, more recently
I don't know this proverb, but I think I got the idea ;-)
> HTML generated from Perl back-ends. wxPerl is a delight to use and,
> Mattia, you're doing wonderful things making this happen.
Regards
Mattia
|