Sorry I can't help you with Wx, but since Wx is based on Gtk2, I will tell you that the thread handling in Gtk2 has changed substantially over the last year. So you might have better luck making sure you have the latest versions of Wx and the underlying Gtk2 libs.

The recent Gtk2 releases have

use Gtk2 qw/-init -threads-init/; #this line causes the warning, but dosn't die die "Glib::Object thread safetly failed" unless Glib::Object->set_threadsafe (TRUE);
You also have the ability to use $thread->enter and $thread->leave to share Gtk2 objects across threads. Now, this may not have anything to do with your problem, but it goes to show that thread support is evolving fast, and that you should be sure what "level of Gtk2 libs" your Wx is built with, and write code accordingly.

You just can't use threads like they are some "improved form of forking with shared data", and expect everything to work, especially in a higher level abstraction layer like Wx.


I'm not really a human, but I play one on earth. flash japh

In reply to Re: ReShow images without user interact with the GUI. by zentara
in thread ReShow images without user interact with the GUI. by Ace128

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.