The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Time-Consuming OriginC scripts and the UI

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
hofmaale Posted - 10/18/2016 : 03:52:50 AM
Origin Ver. and Service Release: 2015 / 2016, whichever is better
Operating System: Windows 7

I have a few OriginC-Scripts whose execution might take some time (separating tables and creating multiple worksheets, processing and fitting data, importing data etc.).

It occurs to me, however, that Origin seems to run my code in the main UI thread, or at least blocks it until execution finishes. This leads to all kind of annoyances, some of them are:
a) the process' message queue is stopped, Origin does not respond to Windows' messages anymore and the well known "The Process has stopped responding" message appears
b) (because of a) no statusmessages can be displayed
c) (because of a) incorporating a "Press any key to stop"-system involves some fancy Keyboard-Routines and manual readout of the Keyboard-Buffer because normal keyboard-functions in Windows depend on a working Message-Loop

I can live with a), but I would like to overcome b) and c)...

Is there a possibility to allow Origin to process Messages during scrip execution? Note that simply outsourcing the work to annother thread wouldn't help, as origin still needs to wait for it to finish before it can continue, especially when creating/manipulating Origin-Objects like Worksheets or Graphs.

Thanks in advance
Alex
2   L A T E S T    R E P L I E S    (Newest First)
VladGets1 Posted - 11/04/2016 : 04:40:02 AM
thanks
quote:
Originally posted by yuki_wu

Hi Alex,

Checked with our developers, it is not supported for now. I will bring your case to our weekly share meeting and see what we can do to improve it.

Regards,
Yuki
OriginLab

yuki_wu Posted - 10/26/2016 : 10:15:48 PM
Hi Alex,

Checked with our developers, it is not supported for now. I will bring your case to our weekly share meeting and see what we can do to improve it.

Regards,
Yuki
OriginLab

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000