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.

Can't run when target platform is x86 or Any CPU with Perfer 32-bit checked

More
23 May 2016 12:50 #4069 by support
Links to older versions are not public but I will send you an email (to the address you used to register with these forums) with the link. It is version 5.34.

Regards
The following user(s) said Thank You: Chen

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

More
23 May 2016 03:51 #4066 by Chen
Unfortunately, I cannot provide such an image available straight away. It may take a bit of effort, but this problem seems to be wide spread and we could reproduce it on everyone's laptop with the configuration I provided before.

Would you be able to provide an older version which does not rely on the 3rd party library causing this problem? and I will install the prerequisites myself.

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

More
20 May 2016 12:10 #4056 by support
Thank you.

The problem seems to be related to loading the mixed-mode assembly (written in C++/CLI) that does the actual OPC communication. There are two of them - one for x86, one for x86. And, they require a corresponding set of Microsoft Visual C++ runtime libraries be present on the system. In order to save our users from having to install these redistributables, we use a special approach that involves "virtualizing" the necessary files in memory. We use a 3rd party library for that, and it looks like that there is a native code exception, possibly in that library, that takes the whole process down immediately. What precisely happens, and why only on your systems, I do not know at the moment.

The library is not under our control, and we cannot even reproduce the problem here. We can try to contact the authors of the library for help.

I assume you don't happen to have a virtual machine image with this problem present?

Regards

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

More
20 May 2016 02:15 #4053 by Chen
Thanks for your response.

1. I am using Windows 8.1 Pro with 64-bit OS.

2. Yes. I have tried try/catch but it didn't catch any exception. Instead, it simply exits on this line "var client = new EasyDAClient();"

3. I compared the debugger outputs. There seems to be a problem with loading App_Web_OpcLabs.EasyOpcClassicRaw.x86.dll. Please see the debugger outputs below.
Target platform set to x64(no problem):
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Symbols loaded.
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework.Aero2\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.Aero2.dll', Symbols loaded.
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationTypes.dll', Symbols loaded.
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpcClassic.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.BaseLibExtensions.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpcClassicInternal.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.BaseLib.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpcClassicNative.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpcClassicNetApi.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.BoxVC120Redist.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\BoxedAppSDK.Managed.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\App_Web_OpcLabs.EasyOpcClassicRaw.amd64.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcNetApi.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpc.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.BoxOpcCorePS.dll'

Target platform set to x86(problem occurs):
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Symbols loaded.
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework.Aero2\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.Aero2.dll', Symbols loaded.
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationTypes.dll', Symbols loaded.
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpcClassic.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.BaseLibExtensions.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpcClassicInternal.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.BaseLib.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpcClassicNative.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.EasyOpcClassicNetApi.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\OpcLabs.BoxVC120Redist.dll'
'WpfApplication1.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Program Files (x86)\OPC Labs\QuickOPC 5.3\ExamplesNet\CSharp\VS2012\WPF\WpfApplication1\bin\Release\BoxedAppSDK.Managed.dll'
The program '[7008] WpfApplication1.vshost.exe: Managed (v4.0.30319)' has exited with code -1073741790 (0xc0000022)

4. C# in VS2013.

The same problem occurs on my colleague's laptop too with the same development environment.

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

More
19 May 2016 09:49 #4046 by support
Yes, it should be possible. We have customers that do just that. I have now made a test on two systems, and it also worked. Of course I trust you that you do have this problem - but at the moment I cannot reproduce it or give an advice.

Some questions:
1. Which Windows version are you using? (and, I assume it is a 64-bit system, right?)
2. Have you tried to put try/catch around the problematic statement and see if there is an exception?
3. Have you tried to look at/capture the contents of the debugger Output window to see whether there aren't any interesting messages?
4. Which version of Visual Studio are you using? Are you developing in C#?

Thank you

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

More
18 May 2016 06:13 - 18 May 2016 11:31 #4044 by Chen
I have version 5.35 installed on my pc. Reading your documentation, I think I should be able to build my application with target platform set to x86. But running your QuickOpcCSharpExmaples solution straight out of the box, I can't get any project to run when I set the configuration to x86 or Any CPU with Prefer 32-bit checked. It builds successfully, but when I try to debug it, it just exits when initialising EasyDAClient.
Last edit: 18 May 2016 11:31 by Chen.

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

Moderators: support
Time to create page: 0.067 seconds