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.

WriteItemValue waits for indefinite amount of time.

More
22 Sep 2014 17:05 #2329 by support
The dialog box comes from C++ runtime library. QuickOPC has some C++ parts internally. it is likely that the WriteItemValue method does not return because the dialog box is waiting for user input, or in relation to it.

Unfortunately we do not support version 5.12 any longer, plus we would need a reproducible case to work on it. There have been many improvements, and also bug fixes, since version 5.12 (current versions are QuickOPC 5.31 if you can use .NET 4.5, or version QuickOPC 5.23 for .NET 3.5 or 4.0).

My suggestion is that you rebuild the app with one of these current versions, and check if the problem persists.

Best regards

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

  • saravana48
  • Topic Author
  • Visitor
  • Visitor
22 Sep 2014 12:52 - 22 Sep 2014 12:55 #2328 by saravana48
Thanks for reply.

I have used the QuickOPC 5.12.1308.1

I have found the issue with the help of log information.

Code:
objLog.WriteLine ("Write to PLC started.")
m_opcServer.WriteItemValue(ServerName, ServerID, tagName, value)
objLog.WriteLine ("Write to PLC completed.")

Log File - output:
Write to PLC started.


The WriteItemValue() doesn't throw any exception, and the application became not responding.
Last edit: 22 Sep 2014 12:55 by saravana48.

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

More
22 Sep 2014 11:53 #2327 by support
Which version and build of QuickOPC are you using please?

Hint: find the QuickOPC under C:\Program Files [(x86)] folder, then select one of the assemblies (.DLL) in the Assemblies subfolder, right-click, select Properties, and switch to the Details tab.

Best regards

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

  • saravana48
  • Topic Author
  • Visitor
  • Visitor
22 Sep 2014 05:39 - 22 Sep 2014 05:43 #2324 by saravana48
The WriteItemValue function waits for indefinite amount of time, which throws the following error.



Event viewer error details:

Faulting application name: Test.exe, version: 1.0.0.0, time stamp: 0x511b6075
Faulting module name: MSVCR90.dll, version: 9.0.30729.6161, time stamp: 0x4dace5b9
Exception code: 0x40000015
Fault offset: 0x0005beae
Faulting process id: 0x20a8
Faulting application start time: 0x01cfd2d637b93067
Faulting application path: Test.exe
Faulting module path: C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCR90.dll
Report Id: 2c6649f8-3ef1-11e4-b94a-f8b156a6b48a


Note: The error occurs rarely not all the time.
Attachments:
Last edit: 22 Sep 2014 05:43 by saravana48.

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

Moderators: support
Time to create page: 0.048 seconds