Professional OPC
Development Tools

logos

Online Forums

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

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

Change shared parameters on the EasyDAClient causes exception

More
08 Feb 2020 10:04 #8210 by support
Hello,

there are two things here: Actually, you really are supposed to set any of the static parameters just once, before the first instance is created or any of the static methods is called. Not sure how well it is documented, but it the case by design.

On the other hand, when you fail to do so (as it was your case originally), the QuickOPC behavior should not precisely be as you have described. Either the changes after certain point should be ignored, or there should still be InvalidOperationException, but not from the place (call stack) it has happened.

Since this is a minor problem, we will make a note but do not expect a fix any time soon.

Regards
The following user(s) said Thank You: Andriy

Please Log in or Create an account to join the conversation.

More
07 Feb 2020 11:36 #8208 by Andriy
Hello,

I get InvalidOperationException when apply shared parameter on the EasyDAClient class after a first instance of it is created.
The error disappeared when I changed the order

I configured shared parameter as recommended in the following topic
Subscription mode. Catastrophic failure error
              EasyDAClient.ClientParameters.LinkCallbackQueueSize = 500000;
              EasyDAClient.ClientParameters.RequestQueueSize = 500000;
              EasyDAClient.ClientParameters.ResponseQueueSize = 500000;
              EasyDAClient.EngineParameters.TopicLruSize = 500000;
              EasyDAClient.EngineParameters.DefaultEventQueueSize = 500000;
OPC library build 5.56.1055.1
Call stack:
System.InvalidOperationException: Handle is not initialized.
   at System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr value)
   at gcroot<System::Object ^>..PE$AAVObject@System@@(gcroot<System::Object ^>* )
   at OpcLabs.EasyOpcRaw.DataAccess.CDAInnerEngine._GetSharedParameters(CDAInnerEngine* )
   at OpcLabs.EasyOpcRaw.DataAccess.DAInnerEnginePropertyUpdater.SharedParametersOnPropertyChanged(Object sender, PropertyChangedEventArgs eventArgs)
   at OpcLabs.EasyOpc.DataAccess.Engine.EasyDASharedParameters.OnPropertyChanged(String propertyName)
   at OpcLabs.EasyOpc.Engine.EasyClientParameters.OnPropertyChanged(String propertyName)

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.042 seconds