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
 LabTalk Forum
 Origin controlled by another application

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
elquin Posted - 02/04/2015 : 7:25:06 PM
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2015 (64bit)
Operating System: Windows 7 64bit

My group use Origin as plotting tool of huge data analysis with main program A.
The program A is written in Visual C#(maybe) and Origin is called through DLL, as shown in
..\OriginLabs\Origin2015\Samples\Origin C Examples\Programming Guide\Calling C DLL.
However when we try to close Origin after being called from program A, the error message comes as;

Origin cannot be closed because it is being controlled by another application

And we cannot close Origin.
How do we solve this..??
2   L A T E S T    R E P L I E S    (Newest First)
elquin Posted - 02/08/2015 : 7:46:38 PM
Thank you for your help.
Also, it would be more helpful if there's guide or manual related origin c or c# for origin.
Sophy Posted - 02/04/2015 : 10:32:11 PM
hi, Elquin:

I guess you are using Origin as COM server to be called within your program A, then you were referring to a wrong example, "Calling C DLL" means write extension module as a dll file, and to be invoked in Origin C.

From your description, I suggest you refer to the example at "\Samples\COM Server and Client\CSharp\Realtime Send Data To Wks\Realtime Send Data To Wks", which use Origin as COM server in a C# application.(When you connect to Origin, and leave the "Realtime Send Data To Wks.exe" running, try to close Origin will see the warning message "Origin...being controlled by another application", yet if you close that "Realtime Send Data To Wks.exe", then you can close Origin without any problem, can check the C# code to see how it release control of Origin COM Server, System.Runtime.InteropServices.Marshal.FinalReleaseComObject(m_originApp);)

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