Register    Login
 
Professional OPC Development Tools
And Services
 
 
SupportOnline Forums
 
Links: Related Pages
 
Links: Related Services
 
Links: Related Support
 
Links: Related Resources
 
Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see link in upper right corner) in order to Post questions. You do not have to be a licensed user.

OPC Labs team is actively monitoring the forums, and provides answers as soon as possible. For your convenience, we have also assembled a Frequently Asked Questions page.

Please do not use the Contact page for technical support.

HINT: You may use the Search feature (magnifier icon below) in the forums to locate the information you need. You can also search our entire Web site (the search box in the upper right corner of every page).

 
 
SupportSupportDiscussions (re...Discussions (re...QuickOPC-ClassicQuickOPC-ClassicQuickOPC-COM  QuickOPC-COM Unable to run as serviceUnable to run as service
Previous Previous
 
Next Next
New Post
 1/9/2012 3:09 PM
 

Hello,

My xbase++ OPC client application runs fine when started as a Windows application.
When run as a service, i am unable u connect to the OPC server.
I make a connection via COM "OPCLabs.EasyDAClient.5.1".
I search on this website, and found some references, but was unable to open the link.

The link http://www.opclabs.com/onlinedocs/Con...

I was also looking on my harddrive for eopcdal.exe (should i run eopcdal /Service ??) but was unable to locate this file.

How to proceed?

Regards,
Jack

New Post
 1/10/2012 4:04 AM
 

Hello,

for current instrucions to registering the component as a service, please see the main "Concepts" document (installed with the product, or http://www.opclabs.com/LinkClick.aspx...), and look for the "COM Registration and Server Types" heading.

In general, all combinations are possible (your application as an application/a service, and EasyOPC component as an application/a service), but they may require different settings - especially around security. The security is also most likely the cause of your problem. Services run under accounts they are configure to run in Service Manager; and, if they are DCOM components, they are influenced by the settings in DCOMCNFG. It is is necessary to give permissions to proper accounts to launch and access the component - and the OPC server; and, in fact, also your client - because the component is making callbacks (if you are using subscriptions).

For start, we need to know what kind of error are you getting?

New Post
 1/11/2012 9:21 AM
 

Hello,

Thank you for the reply.
It seems that the folowing line of Xbase++ code freeze the thread (never returns).
::oOpc := CreateObject("OPCLabs.EasyDAClient.5.1")
The same code does run when started from a destop application.

I followed all instructions, i set the login for the service to system account and to administrator, but no improvement there.

I reported this error to Alaska support, the function CreateObject() should never Freeze.

Regards,
Jack Duijf

New Post
 1/17/2012 12:25 AM
 

Hello,

"CreateObject" run a combination of code on the client side (in this case, the Xbase++ code for it), and a code of the component itself (if it successfuly manages to connect to it). Therefore the problem can be on either side.

I have some questions:

  1. Have you waited "long enough", i.e. isn't there actually some error message, but after a long time? I am asking because the function needs to start a separate process and wait before it registers its class factories with COM, so there is a wait operation inside Microsoft COM that is supposed to eventually time out if not eveything goes right.
  2. When your code reaches the "CreateObject", can you actually see the "easyopcl" process starting in Task Manager? If not, then this a client side or service/COM configuration problem, because our code does not get a chance to run. If, on the other hand, our process is starting, we will need to investigate further in this direction.

Thank you

Previous Previous
 
Next Next
SupportSupportDiscussions (re...Discussions (re...QuickOPC-ClassicQuickOPC-ClassicQuickOPC-COM  QuickOPC-COM Unable to run as serviceUnable to run as service

 
 
 
 
 

 
 
 
 
Home|Services|Products|Purchase|Downloads|Support|Resources|Company|Contact
Copyright 2007-2012 by OPC Labs Terms Of Use Privacy Statement May 20, 2012