> On Wed, 12 Jan 2005 10:50:30 +0100, mattia.barbon@...
> > I'm sorry I couldn't answer before.
> No worries, I learned a lot digging around on my own :)
> > > I'm =
having issues with wxSize objects getting double deleted somewhere
> > >=
in the call to wxArtProvider::CreateBitmap. As near as I can tell,
> what happens is:
> > This looks plausible. There are workarounds for=
> > ext/docview/XS/*.xs and ext/docview/cpp/*.h. I'll give more=
> > precise indications later.
> Such indications would be appreci=
ated, since the only references to
> wxSize I can find in those files ar=
e some of the constructors, which
> just seem to pass the objects throug=
I wasn't referring to wxSize but to general strategies for
roblem you experienced, sorry if I was unclear. And
sorry if I directed =
you to the wrong file... in cpp/scrolledwindow.h:
ndow::OnDraw( wxDC& dc )
Callback( aTHX_ &m_callback, "OnDraw" ) )
SV* val =3D wxP=
li_object_2_sv( aTHX_ newSViv( 0 ), &dc );
CallCallback( aTHX_ &m_callback,
G_SCALAR|G_DISCARD, "S", val );
sv_setiv( SvRV( val ), 0 );=0D
SvREFCNT_dec( val );
w( dc );
For a wxSize you need to use wxPli_non_object_2_sv.
hould probably automate this more.
______________________________________________________=0ALibero ADSL: 3 m=
esi gratis e navighi a 1.2 Mega. E poi hai l'Adsl senza limiti a meno di =
1 euro al giorno. =0AAbbonati subito senza costi di attivazione su http:/=