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.

EasyDAClient prevents WinForms application from closing immediately

More
19 Mar 2018 08:01 #6157 by support
Unfortunately not.
It's when the whole application (process) is shutting down.

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

More
17 Mar 2018 18:45 - 17 Mar 2018 18:52 #6155 by gojanpaolo
Is there any way to force this `cleanup` and know when it is done cleaning up? Thank you for your help.
Last edit: 17 Mar 2018 18:52 by gojanpaolo.

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

More
17 Mar 2018 14:21 #6153 by support
Hello,

I am afraid we won't be able to help here.
There is some internal cleanup work that the component does, and we consider this delay as normal.

I am sorry I cannot give you better news...

Best regards

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

More
16 Mar 2018 18:41 #6152 by gojanpaolo
Hello,

About 3 seconds.

Thanks,
Jan

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

More
16 Mar 2018 17:00 #6151 by support
Hello,

how long is the delay?

Best regards

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

More
16 Mar 2018 16:27 - 17 Mar 2018 14:03 #6150 by gojanpaolo
Hello,

We use EasyDAClient in a WinForms application. When we use EasyDAClient.SubscribeItem or EasyDAClient.SubscribeMultipleItems, it takes a long time for the application to close immediately (during Visual Studio Debug session).

We tried explicitly calling Dispose, UnsubsribeAllItems, and/or UnsubscribeItem but still doesn't fix the issue.

Here is a sample of our code...
public partial class frmDemo : Form
    {
        private EasyDAClient _easyDAClient = new EasyDAClient();
        private float MyValue;
        public frmDemo()
        {
            InitializeComponent();
            _easyDAClient.SubscribeItem("", "My.Server.Name", "My.Tag", 50, (s, e) => MyValue = (float)e.Vtq.Value);
        }
 
        private void frmDemo_Load(object sender, EventArgs e)
        {
            timer1.Enabled = true;
        }
 
        private void timer1_Tick(object sender, EventArgs e)
        {
            textBox1.Text = MyValue.ToString();
        }
    }
Additional information:
OpcLabs.QuickOpc 5.52.91 (from Nuget)
.NET Framework 4.6.1
Microsoft Visual Studio Enterprise 2017 Version 15.6.1

Thank you,
Jan
Last edit: 17 Mar 2018 14:03 by support.

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

Moderators: support
Time to create page: 0.062 seconds