How to Release IOPCServer interface quickly.|Classic OPC: DA, A&E, HDA, XML-DA, etc.|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
How to Release IOPCServer interface quickly.
Avatar
Yusuke Masuda
New Member
Members
Forum Posts: 2
Member Since:
02/13/2021
sp_UserOfflineSmall Offline
1
02/13/2021 - 08:12
sp_Permalink sp_Print
I have developed OPC clients in c++ using OPC interfaces.
When OPC client is disconnected to OPC Server, IOPCServer interface is released on my code. However, Releasing IOPCServer takes some times. To reduce to the time, I'm trying not to release IOPCServer and just fill in with null. What if IOPCServer is not released? Is there any way to reduce release time?
Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
02/13/2021 - 16:52
sp_Permalink sp_Print

The delay may be because of a deadlock created by a callback that happens to be occurring before you release the server object.

I suggest you remove any connection points you have set up before you release the server.

Avatar
Yusuke Masuda
New Member
Members
Forum Posts: 2
Member Since:
02/13/2021
sp_UserOfflineSmall Offline
3
02/13/2021 - 20:40
sp_Permalink sp_Print sp_EditHistory

Randy Armstrong said
The delay may be because of a deadlock created by a callback that happens to be occurring before you release the server object.

I suggest you remove any connection points you have set up before you release the server.

  

Thank you for the reply.Smile

What does "connection points" mean?

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
02/14/2021 - 06:42
sp_Permalink sp_Print

The concepts are explained in the "OPC Common Specification".

https://opcfoundation.org/deve.....ta-access/

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 48
Currently Browsing this Page:
2 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855