Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Win32::GUI and threads issue

by Garden Dwarf (Beadle)
on Jan 16, 2019 at 08:28 UTC ( [id://1228640]=note: print w/replies, xml ) Need Help??


in reply to Re: Win32::GUI and threads issue
in thread Win32::GUI and threads issue

The code I've posted is supposed to issue numbers. The first thread provides the numbers 0 to 9 to the parent, the second thread 10 to 19, etc. When the parent has all results, he displays all of them (on Win32 interface or into the terminal, depending on the setup I explained above).

When I use Win32, the application stops without issuing anything (no numbers, no errors). I didn't know where to start investigations, so I posted my questions here.

Replies are listed 'Best First'.
Re^3: Win32::GUI and threads issue
by Anonymous Monk on Jan 16, 2019 at 10:27 UTC
    So you say you've got logic error... Timer never starts threads never start display never updates? Simplify code
      Seems like if the end of the first thread finishes also the GUI (and the whole application). I'm trying to create the threads now before creating the GUI, as suggested. Then communicating through queues. Will see it that works better.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1228640]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-03-28 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found