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.

Application Crashes after getting tags from OPCL

More
17 Mar 2021 11:24 #9513 by support
"Hard" crashes in QuickOPC (not just uncaught .NET exceptions, but native memory access violations and the like) are usually caused by an incompatibility between a 3rd-party library we are using (BoxedApp SDK) and a particular Windows version. This seems to be a continuous fight as Windows versions evolve. Besides updating QuickOPC to a newest version, here is workaround that may help: kb.opclabs.com/How_to_disable_prerequisites_boxing . Be careful because the necessary settings differ slightly from version to version (the XML at the bottom of the article combines them all into one). The earliest documented settings are for version 2016.2 (5.41). I do not have the settings for earlier versions.

Best regards

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

More
16 Mar 2021 20:20 #9510 by mafujosh
I have the same or similar issue. I couldn't narrow down exactly where it fails, seemed asynchronous for me.
The BrowseServers workaround didn't work for me.

version 5.53.405
Visual Studio 2019 v16.0.31025.194 D16.9
Windows 10 version 20H2 (OS Build 19042.867)
32bit .NET 4.5.2
connecting to Intellution.OPCiFIX

Used to work ok, then didn't use the VM for a couple years. Now doesn't work. Visual Studio and Windows 10 updated a number of times.

I switched to using Nuget, which didn't fix it for the same version. Then kept updating the version until version 5.58 (2020.2) fixed it (and 5.60 works too). I had to change to use .NET Framework 4.7.

I feel like that's probably my only solution, and just wanted to put that in here in case it is affecting anyone else or maybe someone has some insight into this.

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

More
07 Nov 2017 12:13 #5646 by support
I understand - but unfortunately I was unable to reproduce this issue here so far.

Regards

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

More
05 Nov 2017 10:09 #5638 by Roie.b
Hi,
so I figured out a solution to the problem , I still don't know the root cause but This is the solution I found:
all I have to do is to is to call:

var easyDAClient = new EasyDAClient();
easyDAClient.BrowseServers();

If I start reading the data(using easyDAClient) like so:
_easyDAC.GetMultiplePropertyValues(Parameters.OPCIP, Parameters.OPCServerName, tag, _propertyIds)

without loading the list of servers first, the application is crashing.
I do not know the root cause for this crash, and I am unable to debug it.(I have tried enabling all of the exceptions) but this is the solution I found, if you can please try and reproduce it It would be a great help.
:)
Regards,
Roie Beck

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

More
02 Nov 2017 11:14 #5629 by support
This is going to be hard to diagnose, without having a way to reproduce it here locally.

Can you try hooking a handled to AppDomain.UnhandledException, to see if it catches the exception, and if so, provide its details?

Regards
The following user(s) said Thank You: Roie.b

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

More
30 Oct 2017 12:20 #5620 by Roie.b
Hi all,
I am new to OPCLabs And I have a WPF client that is connecting to a server,
the connection works OK,
however , if I start the app without loading the OpcServerDialog() & showing it, the application crashes after I stop taking measurements from the OPC server(by pressing any button in the WPF UI).
the only way to avoid is is to show the OpcServerDialog before starting to get measurements from the server, but I would like to avoid the need of opening it every time I load the Application,
also no exception is thrown, I only see the following in event logger(below)
again, problem can be solved via opening the OpcServerDialog which I guess load the DLL's necessary,
Can you please help?
Regards,
Roie Beck

Faulting application name: EMU.App.vshost.exe, version: 14.0.23107.0, time stamp: 0x559b788a
Faulting module name: ntdll.dll, version: 10.0.15063.608, time stamp: 0x8274fd8b
Exception code: 0xc0000008
Fault offset: 0x00000000000a917a
Faulting process id: 0x2efc
Faulting application start time: 0x01d35160753bea8b
Faulting application path: C:\Siga\Repositories\SigaGuard\APP\EMU\EMU.App\bin\Debug\EMU.App.vshost.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: 98e642de-846d-4e88-81e8-61e392d190a5
Faulting package full name:
Faulting package-relative application ID:

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

More
30 Oct 2017 10:55 - 05 Nov 2017 10:10 #5619 by Roie.b
Last edit: 05 Nov 2017 10:10 by Roie.b.

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

More
30 Oct 2017 10:41 - 05 Nov 2017 10:10 #5618 by Roie.b
duplicate , sorry
Attachments:
Last edit: 05 Nov 2017 10:10 by Roie.b.

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

More
30 Oct 2017 10:34 - 05 Nov 2017 10:11 #5617 by Roie.b
Hi All,
I am a new OPCLab use. and I am currently using OPC-DA server & a WPF client App,
problem is: after reading a few tags(like so):
_easyDAC.GetMultiplePropertyValues(Parameters.OPCIP, Parameters.OPCServerName, tag, _propertyIds)
the application crashes when pressing a button, it only happening when I use the OPC device, no other device does it and I am also reading from Phoenix modbus, labjack etc...
I think it has something to do with me being force to upgrade to .NET 4.5.2 in order to use OPCLabs nugets (we were at .Net 4.5 prior to this), no exception is caught & the application just crashed, In the event viewer I can see the following(below)
I am also attaching the memory dump and additional log files from the crash,I have tried looking in google but nothing related to OPClabs came up.


Faulting application name: EMU.App.vshost.exe, version: 14.0.23107.0, time stamp: 0x559b788a
Faulting module name: ntdll.dll, version: 10.0.15063.608, time stamp: 0x8274fd8b
Exception code: 0xc0000008
Fault offset: 0x00000000000a917a
Faulting process id: 0x2efc
Faulting application start time: 0x01d35160753bea8b
Faulting application path: C:\Siga\Repositories\SigaGuard\APP\EMU\EMU.App\bin\Debug\EMU.App.vshost.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: 98e642de-846d-4e88-81e8-61e392d190a5
Faulting package full name:
Faulting package-relative application ID:
Attachments:
Last edit: 05 Nov 2017 10:11 by Roie.b.

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

Moderators: support
Time to create page: 0.063 seconds