Continue execution of foo with a GUI []DQ created by thread
3 posts
• Page 1 of 1
Continue execution of foo with a GUI []DQ created by thread
I want to test some GUI functions and make sure they create the appropriate objects.
Say I have these two functions
When I execute 'test', the menu is created in a thread, the execution of test stops until the menu is no longer DQ'd.
What is the best workaround for this?
Say I have these two functions
∇ menu X;r
[1] 'M'⎕WC'Menu'
[2] 'M.m1'⎕WC'MenuItem' 'one'
[3] 'M.m2'⎕WC'MenuItem' 'two'
[4] r←⎕DQ'M'
∇
∇ test;r;tid
[1] tid←menu&''
[2] ⎕DL 0.25
[3] ⎕←'menu exists: ',⍕9=⎕NC'#.M'
∇
When I execute 'test', the menu is created in a thread, the execution of test stops until the menu is no longer DQ'd.
What is the best workaround for this?
-
norbertjurkiewicz84 - Posts: 62
- Joined: Mon Nov 01, 2010 7:26 pm
Re: Continue execution of foo with a GUI []DQ created by thr
Hi Norbert,
The popup menu is modal. We do not think that there is any way that you can workaround this.
Regards,
Vince
The popup menu is modal. We do not think that there is any way that you can workaround this.
Regards,
Vince
- Vince|Dyalog
- Posts: 413
- Joined: Wed Oct 01, 2008 9:39 am
Re: Continue execution of foo with a GUI []DQ created by thr
Just a thought.....
"The popup menu is modal. We do not think that there is any way that you can workaround this."
I believe this is true, but I have had a lot of success by, rather than running code is a separate thread, running the code is a separate APL session and passing the results back via files.
The separate session, does not need even to be on the same machine.
I have not ever tried using futures and isolates, but think that might also be worth looking into.
Hope this helps.
Ray
"The popup menu is modal. We do not think that there is any way that you can workaround this."
I believe this is true, but I have had a lot of success by, rather than running code is a separate thread, running the code is a separate APL session and passing the results back via files.
The separate session, does not need even to be on the same machine.
I have not ever tried using futures and isolates, but think that might also be worth looking into.
Hope this helps.
Ray
Ray Cannon
Please excuse any smelling pisstakes.
Please excuse any smelling pisstakes.
-
ray - Posts: 221
- Joined: Wed Feb 24, 2010 12:24 am
- Location: Blackwater, Camberley. UK
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group