[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-perl
Subject:    Re: [Kde-perl] PerlQt and threads
From:       Roy Souther <roy () silicontao ! com>
Date:       2007-12-10 22:10:47
Message-ID: 1197324647.23728.153.camel () serverlink
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/alternative)]


I am the moderator for the PerlQt list. Your message was held back
because your sending email address is not in the list. This is to
protect our members from SPAM. Sorry for the delay.

I have not used threads in Perl but I would expect it to be logically
the same as threads in C++. I would expect that the $window variable is
out of scope and cannot be access by the thread. I would advice you to
use a call back from the child thread to the parent thread that asks the
parent thread that does have $window in scope to show the window by
proxy.

You will need to lookup how to do callbacks in Perl, I don't have an
example for that but I am sure it can be done.

On Tue, 2007-12-04 at 15:52 +0100, Rafał Grzegorz Sławik wrote:

> Hello
> 
> I have some problem: How can I open new window (from thread)?
> When I try to do $window->show; I get error "Xlib: unexpected async reply". Is 
> there any solution to solve this problem?
> [I have already opened one window.]
> 


Royce Souther
www.SiliconTao.com
Let Open Source help your business move beyond.

For security this message is digitally authenticated by GnuPG.




[Attachment #7 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.2.5">
</HEAD>
<BODY>
I am the moderator for the PerlQt list. Your message was held back because your \
sending email address is not in the list. This is to protect our members from SPAM. \
Sorry for the delay.<BR> <BR>
I have not used threads in Perl but I would expect it to be logically the same as \
threads in C++. I would expect that the $window variable is out of scope and cannot \
be access by the thread. I would advice you to use a call back from the child thread \
to the parent thread that asks the parent thread that does have $window in scope to \
show the window by proxy.<BR> <BR>
You will need to lookup how to do callbacks in Perl, I don't have an example for that \
but I am sure it can be done.<BR> <BR>
On Tue, 2007-12-04 at 15:52 +0100, Rafa&#322; Grzegorz S&#322;awik wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hello</FONT>

<FONT COLOR="#000000">I have some problem: How can I open new window (from \
thread)?</FONT> <FONT COLOR="#000000">When I try to do $window-&gt;show; I get error \
&quot;Xlib: unexpected async reply&quot;. Is </FONT> <FONT COLOR="#000000">there any \
solution to solve this problem?</FONT> <FONT COLOR="#000000">[I have already opened \
one window.]</FONT>

</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<U><A HREF="mailto:roy@SiliconTao.com">Royce Souther</A></U><BR>
<U><A HREF="http://www.SiliconTao.com">www.SiliconTao.com</A></U><BR>
Let Open Source help your business move beyond.<BR>
<BR>
For security this message is digitally authenticated by <U><A \
HREF="http://www.gnupg.org">GnuPG</A></U>. </TD>
</TR>
</TABLE>
<BR>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>


["signature.asc" (application/pgp-signature)]

_______________________________________________
Kde-perl mailing list
Kde-perl@kde.org
https://mail.kde.org/mailman/listinfo/kde-perl


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic