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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Time-Consuming OriginC scripts and the UI
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

hofmaale

20 Posts

Posted - 10/18/2016 :  03:52:50 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Edited by - hofmaale on 10/18/2016 03:54:34 AM

yuki_wu

896 Posts

Posted - 10/26/2016 :  10:15:48 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

VladGets1

Germany
12 Posts

Posted - 11/04/2016 :  04:40:02 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000