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

[rt.cpan.org #81670] Wx::Frame weaken away when ->Close()

Thread Next
From:
Kevin Ryde via RT
Date:
December 3, 2012 21:48
Subject:
[rt.cpan.org #81670] Wx::Frame weaken away when ->Close()
Message ID:
rt-3.8.HEAD-32611-1354571326-1628.81670-15-0@rt.cpan.org
Mon Dec 03 16:48:46 2012: Request 81670 was acted upon.
Transaction: Ticket created by user42@zip.com.au
       Queue: Wx
     Subject: Wx::Frame weaken away when ->Close()
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: user42@zip.com.au
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=81670 >


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

Under mswin it looks like that might not be so.  Ie. the foo.pl 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About