Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

EasyUAClinet subscribe method throws InvalidOperationException error (5.40) - by: UKPR

$
0
0
Hi,

we've switched from 5.35 to 5.4 version for testing. We've used to nuget packages to get de dlls.
The code that worked before now sometimes throws an exception when we try to subscribe an item using SubscribeMonitoredItem. The error message is "Precondition failed: SdkMonitoredItem == null". The surprising thing is that first few items are subscribed ok. Then the next item throws an error but we get events for this item and the rest of items subscribe ok. Our code for now requires us to use SubscribeMonitoredItem in a loop but it worked without any errors for version 5.35. Even after we added a wait for 0.5 s between subscriptions we still sometimes get the error and it seems that it always throws it after two items. Can we manipulate some internal timeout to remedy that or do we have to redesign our code to use SubscribeMultipleItems ?

Regards,

Michal Waclawski

This email address is being protected from spambots. You need JavaScript enabled to view it.

Viewing all articles
Browse latest Browse all 1794

Trending Articles