develooper Front page | perl.wxperl.users | Postings from December 2012

[ #81670] Wx::Frame weaken away when ->Close()

Thread Next
Kevin Ryde via RT
December 3, 2012 21:48
[ #81670] Wx::Frame weaken away when ->Close()
Message ID:
Mon Dec 03 16:48:46 2012: Request 81670 was acted upon.
Transaction: Ticket created by
       Queue: Wx
     Subject: Wx::Frame weaken away when ->Close()
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
      Status: new
 Ticket <URL: >

Under a gtk build, a Wx::Frame $frame->Close seems to be enough to make
the $frame object weaken away.  The program below prints "undef".

Under mswin it looks like that might not be so.  Ie. the would
print a Wx::Frame object, not undef.

Alas I don't have an mswin to try, so this is just based on cpantesters
failures I had in a pod browser main window.

Is a $frame->Close meant to be enough for the object to weaken away?
Or have I misunderstood Close() vs Destroy() methods?

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About