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.

"An invalid handle was specified" after app. 25 sec.

More
29 Jan 2018 12:56 - 29 Jan 2018 12:56 #5924 by support
When you say "crashes are still present", is that on the original computer, or on some new computer?

The ServiceResultException, by itself, can appear even during normal operations, and is handled internally in the toolkit. But it should not cause further problems or an app crash, of course. Does the app crash *immediately* follow these exceptions?

Regards
Last edit: 29 Jan 2018 12:56 by support.

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

More
29 Jan 2018 09:27 - 29 Jan 2018 09:35 #5923 by Renoo
The crashes are still present, but now (surprisingly) with the following debug error:
Exception thrown: 'Opc.Ua.ServiceResultException' in Opc.Ua.Core
The thread 0x2da4 has exited with code 0 (0x0).
The thread 0x18c0 has exited with code 0 (0x0).
The thread 0x2e9c has exited with code 0 (0x0).
The thread 0x3704 has exited with code 0 (0x0).
The thread 0xc28 has exited with code 0 (0x0).
The program '[212] Project 3.0.exe' has exited with code -1073741816 (0xc0000008) 'An invalid handle was specified'.

And sometimes:
Exception thrown: 'System.ObjectDisposedException' in Opc.Ua.Core
The thread 0x3f64 has exited with code 0 (0x0).
The thread 0xabc has exited with code 0 (0x0).
The thread 0x3f4c has exited with code 0 (0x0).
The thread 0x21e8 has exited with code 0 (0x0).
The thread 0xf40 has exited with code 0 (0x0).
The thread 0x358 has exited with code 0 (0x0).
The program '[17192] Project 3.0.exe' has exited with code -1073741816 (0xc0000008) 'An invalid handle was specified'.

I haven't changed anything in the project, so that this exception is thrown suddenly is remarkable. Is this more helpful to you to determine the possible cause?

EDIT: I have reason to suspect this error message appears because the program crashes somewhere before, and because of this crash, the ServiceException message appears as it couldn't close it's channel properly.
Last edit: 29 Jan 2018 09:35 by Renoo.

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

More
27 Jan 2018 12:10 #5922 by Renoo
Okay, thanks for the confirmation.

Once I get more information about the issue, one way or another, I will update this thread. For now I will leave it as is and try sorting another computer to get going without these errors.

Have a nice day!

Reno

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

More
27 Jan 2018 11:06 #5921 by support
Thank you for more info.

I am quite confident that you have not overlooked anything. It should work under 64-bits as well, and it works on other computers. But the reason is probably an unexpected conflict with something else on your computer, or a hidden bug in QuickOPC. Either way, it's probably not that you are doing something wrong.

Regards

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

More
27 Jan 2018 10:50 #5920 by Renoo
Hello,

Thanks for your continued support.

I've narrowed down the issue to the "Target CPU" setting. If this is set on "AnyCPU", the application crashes. If this is set to "x86" it runs in the debugger without any issues.

I was pretty confident it works on 64-bit, as I got another application with the same version of the references working on the "Target CPU" setting set on "AnyCPU".

At this moment, I am quite certain I am overlooking something very easy...

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

More
26 Jan 2018 05:43 #5917 by support
Thank you. I am afraid there is nothing more I can offer you at this point, because we cannot reproduce it here; others are not seeing this either.

What you have posted in not the call stack yet. It is just a debugger output. What we are looking for is a break into the debugger at the moment the exception is thrown, in order to be able to view the call stack, i.e. the list of uncompleted function calls from top to bottom that lead to the exception.

There are some fairly reliable ways to get that information, but they are also somewhat complicated for an unexperienced - such as what is described here: blogs.msdn.microsoft.com/ntdebugging/2008/05/19/ntdebugging-...alid-handle-can-you-handle-it/ . But if you were willing to go that way, it would be appreciated.

Best regards

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

More
25 Jan 2018 15:22 - 25 Jan 2018 15:43 #5916 by Renoo
Thanks for your reply.

With the changes you provided, the following error message occurs:
Exception thrown at 0x00007FFD5E393C1A (ntdll.dll) in Project 1.0.exe: 0xC0000008: An invalid handle was specified.
ntdll.pdb not loaded
 
ntdll.pdb contains the debug information required to find the source for the module ntdll.dll
 
Version: 10.0.16299.192 (WinBuild.160101.0800)
Original Location: C:\Windows\System32\ntdll.dll


This also happens with my Anti-Virus disabled (ESET NOD32).

Full callstack:
'Project 1.0.exe' (Win32): Loaded 'D:\Gebruikers\Renoo\VB\Project 1.0\Project 1.0\bin\Debug\Project 1.0.exe'. 
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\mscoree.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscoreei.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\msvcr120_clr0400.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\psapi.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Unloaded 'C:\Windows\System32\psapi.dll'
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_64\mscorlib\8a9c7ab28dfd1baa08e20283667c4c7e\mscorlib.ni.dll'. 
'Project 1.0.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Program Files\Nahimic\Nahimic2\UserInterface\x64\Nahimic2DevProps.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Program Files\Nahimic\Nahimic2\UserInterface\x64\Nahimic2OSD.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'D:\Gebruikers\Reno\VB\Project 1.0\Project 1.0\bin\Debug\Project 1.0.exe'. Symbols loaded.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_64\System\308a31a8a7d6c1bbc98a29187d026452\System.ni.dll'. 
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Core\591cd3b387a9fb88ead436368131effc\System.Core.ni.dll'. 
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_64\Microsoft.V9921e851#\a65852fe2b6eb2e67dc0e3be830df4fd\Microsoft.VisualBasic.ni.dll'. 
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clrjit.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\compatjit.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Drawing\b227187873642faa120414623621f712\System.Drawing.ni.dll'. 
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Windows.Forms\fbf4ea9b0c6c5588433406a97121f488\System.Windows.Forms.ni.dll'. 
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Configuration\75e3f7cd8c8086d5c5b54fb6cf3ee8f2\System.Configuration.ni.dll'. 
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Xml\0c032f2c2d3d88c7b46155cb13d8e30d\System.Xml.ni.dll'. 
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\rsaenh.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.16299.192_none_887f70824ab5b0de\comctl32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\dwmapi.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Runt73a1fc9d#\9904d7fdf01edd69df08b3cb89e8d0f4\System.Runtime.Remoting.ni.dll'. 
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Remoting\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Remoting.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. 
'Project 1.0.exe' (Win32): Unloaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'
'Project 1.0.exe' (Win32): Loaded 'D:\Gebruikers\Reno\VB\Project 1.0\Project 1.0\bin\Debug\OpcLabs.EasyOpcUA.dll'. 
'Project 1.0.exe' (Win32): Loaded 'D:\Gebruikers\Reno\VB\Project 1.0\Project 1.0\bin\Debug\OpcLabs.EasyOpcUA.dll'. 
'Project 1.0.exe' (Win32): Unloaded 'D:\Gebruikers\Reno\VB\Project 1.0\Project 1.0\bin\Debug\OpcLabs.EasyOpcUA.dll'
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'D:\Gebruikers\Reno\VB\Project 1.0\Project 1.0\bin\Debug\OpcLabs.EasyOpcUA.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'D:\Gebruikers\Reno\VB\Project 1.0\Project 1.0\bin\Debug\OpcLabs.BaseLib.dll'. 
'Project 1.0.exe' (Win32): Loaded 'D:\Gebruikers\Reno\VB\Project 1.0\Project 1.0\bin\Debug\OpcLabs.BaseLib.dll'. 
'Project 1.0.exe' (Win32): Unloaded 'D:\Gebruikers\Reno\VB\Project 1.0\Project 1.0\bin\Debug\OpcLabs.BaseLib.dll'
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'D:\Gebruikers\Reno\VB\Project 1.0\Project 1.0\bin\Debug\OpcLabs.BaseLib.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'D:\Gebruikers\Reno\VB\Project 1.0\Project 1.0\bin\Debug\halcondotnet.dll'. 
'Project 1.0.exe' (Win32): Loaded 'D:\Gebruikers\Reno\VB\Project 1.0\Project 1.0\bin\Debug\halcondotnet.dll'. 
'Project 1.0.exe' (Win32): Unloaded 'D:\Gebruikers\Reno\VB\Project 1.0\Project 1.0\bin\Debug\halcondotnet.dll'
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'D:\Gebruikers\Reno\VB\Project 1.0\Project 1.0\bin\Debug\halcondotnet.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\urlmon.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\imagehlp.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\iertutil.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\sspicli.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\msIso.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\propsys.dll'. Cannot find or open the PDB file.
onecoreuap\inetcore\urlmon\zones\zoneidentifier.cxx(359)\urlmon.dll!00007FFD424FFF00: (caller: 00007FFD424FFB0D) ReturnHr(1) tid(2a68) 80070002 Het systeem kan het opgegeven bestand niet vinden.
Exception thrown at 0x00007FFD5B4B3FB8 in Project 1.0.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x000000C3786F5900.
Exception thrown at 0x00007FFD5B4B3FB8 in Project 1.0.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
Exception thrown at 0x00007FFD5B4B3FB8 in Project 1.0.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x000000C3786F5900.
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'Opc.Ua.Client'. Cannot find or open the PDB file.
Exception thrown at 0x00007FFD5B4B3FB8 in Project 1.0.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x000000C3786F4590.
Exception thrown at 0x00007FFD5B4B3FB8 in Project 1.0.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
Exception thrown at 0x00007FFD5B4B3FB8 in Project 1.0.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x000000C3786F4590.
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'Opc.Ua.Core'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\secur32.dll'. Cannot find or open the PDB file.
Exception thrown at 0x00007FFD5B4B3FB8 in Project 1.0.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x000000C3792FA350.
Exception thrown at 0x00007FFD5B4B3FB8 in Project 1.0.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
Exception thrown at 0x00007FFD5B4B3FB8 in Project 1.0.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x000000C3792FA350.
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'Opc.Ua.Configuration'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'D:\Gebruikers\Reno\VB\Project 1.0\Project 1.0\bin\Debug\OpcLabs.BaseLibForms.dll'. 
'Project 1.0.exe' (Win32): Loaded 'D:\Gebruikers\Reno\VB\Project 1.0\Project 1.0\bin\Debug\OpcLabs.BaseLibForms.dll'. 
'Project 1.0.exe' (Win32): Unloaded 'D:\Gebruikers\Reno\VB\Project 1.0\Project 1.0\bin\Debug\OpcLabs.BaseLibForms.dll'
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'D:\Gebruikers\Reno\VB\Project 1.0\Project 1.0\bin\Debug\OpcLabs.BaseLibForms.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_nl_b77a5c561934e089\mscorlib.resources.dll'. Module was built without symbols.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_nl_b77a5c561934e089\mscorlib.resources.dll'. Module was built without symbols.
'Project 1.0.exe' (Win32): Unloaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_nl_b77a5c561934e089\mscorlib.resources.dll'
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_nl_b77a5c561934e089\mscorlib.resources.dll'. Module was built without symbols.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\clbcatq.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Runteb92aa12#\bf472a51537745494d433901b8564196\System.Runtime.Serialization.ni.dll'. 
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll'. Cannot find or open the PDB file.
Exception thrown at 0x00007FFD5B4B3FB8 in Project 1.0.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x000000C3793F8E60.
Exception thrown at 0x00007FFD5B4B3FB8 in Project 1.0.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
Exception thrown at 0x00007FFD5B4B3FB8 in Project 1.0.exe: Microsoft C++ exception: EETypeLoadException at memory location 0x000000C3793F8E60.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_64\SMDiagnostics\c37b6d0a3db6d5d1082e5f44cc1c82ae\SMDiagnostics.ni.dll'. 
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_64\System.ServiceModel\84cf383bdc9ae81ece3973d032a0750c\System.ServiceModel.ni.dll'. 
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Servd1dec626#\e796eab7b3bebad3ff00c187eeec2770\System.ServiceModel.Internals.ni.dll'. 
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.RunTime.Serialization.resources\v4.0_4.0.0.0_nl_b77a5c561934e089\System.RunTime.Serialization.resources.dll'. Module was built without symbols.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.RunTime.Serialization.resources\v4.0_4.0.0.0_nl_b77a5c561934e089\System.RunTime.Serialization.resources.dll'. Module was built without symbols.
'Project 1.0.exe' (Win32): Unloaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.RunTime.Serialization.resources\v4.0_4.0.0.0_nl_b77a5c561934e089\System.RunTime.Serialization.resources.dll'
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization.resources\v4.0_4.0.0.0_nl_b77a5c561934e089\System.Runtime.Serialization.resources.dll'. Module was built without symbols.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Xaml\0dcd91724ed84a5401541432ae92c1b2\System.Xaml.ni.dll'. 
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Xaml.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.16299.192_none_46b3c093edf73c09\GdiPlus.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\DWrite.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'D:\Program Files\MVTec\HALCON-13.0\bin\x64-win64\halcon.dll'. Module was built without symbols.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\comdlg32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\wintrust.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\setupapi.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\netapi32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\dhcpcsvc.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\nsi.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\IPHLPAPI.DLL'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\MMDevAPI.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\AudioSes.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\avrt.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\mswsock.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\NapiNSP.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\pnrpnsp.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\nlaapi.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\dnsapi.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\winrnr.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'D:\Program Files\National Instruments\Shared\mDNS Responder\nimdnsNSP.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\nimdnsResponder.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\wshbth.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Program Files\Bonjour\mdnsNSP.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\msisip.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\coml2.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\wshext.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\AppxSip.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\OpcServices.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\xmllite.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\WindowsPowerShell\v1.0\pwrshsip.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\EsdSip.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Program Files\Microsoft Silverlight\xapauthenticodesip.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\dpapi.dll'. Cannot find or open the PDB file.
Exception thrown at 0x00007FFD5B4B3FB8 in Project 1.0.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x000000C3792FA5C0.
Exception thrown at 0x00007FFD5B4B3FB8 in Project 1.0.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
Exception thrown at 0x00007FFD5B4B3FB8 in Project 1.0.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x000000C3792FA5C0.
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'BoxedAppSDK.Managed'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\sxs.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\mpr.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\gpapi.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'D:\Program Files\MVTec\HALCON-13.0\bin\x64-win64\hcanvas.dll'. Module was built without symbols.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\opengl32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\glu32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\OpenCL.DLL'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nvmiwu.inf_amd64_7b11efeca48cd7d3\nvinitx.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\nvmiwu.inf_amd64_7b11efeca48cd7d3\nvinitx.dll'
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\nvoglv64.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\wtsapi32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'. Cannot find or open the PDB file.
The thread 0x1440 has exited with code 0 (0x0).
The thread 0x1578 has exited with code 0 (0x0).
The thread 0x3354 has exited with code 0 (0x0).
The thread 0x3da8 has exited with code 0 (0x0).
The thread 0x4740 has exited with code 0 (0x0).
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\nvspcap64.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\psapi.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Unloaded 'C:\Windows\System32\psapi.dll'
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\winhttp.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\psapi.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\nvapi64.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'. Cannot find or open the PDB file.
[25:16:19:32:263][10856] IGIESW d:\gebruikers\reno\vb\Project 1.0\Project 1.0\bin\debug\Project 1.0.exe found in whitelist: NO[25:16:19:32:266][10856] IGIWHW Game d:\gebruikers\reno\vb\Project 1.0\Project 1.0\bin\debug\Project 1.0.exe found in whitelist: NO'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\winsta.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.16299.192_none_15c8cdae9364c23b\comctl32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Windows.Forms.resources\v4.0_4.0.0.0_nl_b77a5c561934e089\System.Windows.Forms.resources.dll'. Module was built without symbols.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Windows.Forms.resources\v4.0_4.0.0.0_nl_b77a5c561934e089\System.Windows.Forms.resources.dll'. Module was built without symbols.
'Project 1.0.exe' (Win32): Unloaded 'C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Windows.Forms.resources\v4.0_4.0.0.0_nl_b77a5c561934e089\System.Windows.Forms.resources.dll'
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms.resources\v4.0_4.0.0.0_nl_b77a5c561934e089\System.Windows.Forms.resources.dll'. Module was built without symbols.
The thread 0x4d8 has exited with code 0 (0x0).
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_64\System.IdentityModel\8054ca04f468ab0c05d471abca867f0a\System.IdentityModel.ni.dll'. 
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\rasapi32.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\rasman.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\rtutils.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\OnDemandConnRouteHelper.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Unloaded 'C:\Windows\System32\OnDemandConnRouteHelper.dll'
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\dhcpcsvc6.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\rasadhlp.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\FWPUCLNT.DLL'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Net.Http\722c65b40127c1d61502f2de8b3e0e49\System.Net.Http.ni.dll'. 
'Project 1.0.exe' (CLR v4.0.30319: Project 1.0.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\TextInputFramework.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'. Cannot find or open the PDB file.
'Project 1.0.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. Cannot find or open the PDB file.
The thread 0xf78 has exited with code 0 (0x0).
The thread 0x1cb4 has exited with code 0 (0x0).
The thread 0x4434 has exited with code 0 (0x0).
Exception thrown: 'Opc.Ua.ServiceResultException' in Opc.Ua.Core
The thread 0x4168 has exited with code 0 (0x0).
The thread 0x32c8 has exited with code 0 (0x0).
The thread 0x40c4 has exited with code 0 (0x0).
The thread 0x2064 has exited with code 0 (0x0).
The thread 0x1190 has exited with code 0 (0x0).
'Project 1.0.exe' (Win32): Unloaded 'C:\Windows\System32\msisip.dll'
'Project 1.0.exe' (Win32): Unloaded 'C:\Windows\System32\wshext.dll'
'Project 1.0.exe' (Win32): Unloaded 'C:\Windows\System32\WindowsPowerShell\v1.0\pwrshsip.dll'
'Project 1.0.exe' (Win32): Unloaded 'C:\Windows\System32\EsdSip.dll'
'Project 1.0.exe' (Win32): Unloaded 'C:\Program Files\Microsoft Silverlight\xapauthenticodesip.dll'
'Project 1.0.exe' (Win32): Unloaded 'C:\Windows\System32\xmllite.dll'
'Project 1.0.exe' (Win32): Unloaded 'C:\Windows\System32\OpcServices.dll'
'Project 1.0.exe' (Win32): Unloaded 'C:\Windows\System32\AppxSip.dll'
The thread 0x16e8 has exited with code 0 (0x0).
The thread 0x3ee0 has exited with code 0 (0x0).
The thread 0x1330 has exited with code 0 (0x0).
The thread 0x4b4 has exited with code 0 (0x0).
The thread 0x2eac has exited with code 0 (0x0).
Exception thrown at 0x00007FFD5E393C1A (ntdll.dll) in Project 1.0.exe: 0xC0000008: An invalid handle was specified.
 
The program '[10992] Project 1.0.exe' has exited with code 0 (0x0).

EDIT: The error callstack for EasyOpcUADemo is more or less the same. It also fails with the same error.
Last edit: 25 Jan 2018 15:43 by Renoo. Reason: Additional information

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

More
22 Jan 2018 04:46 #5896 by support
Thank you. Of course this is not expected behavior. Unfortunately, I cannot reproduce it here - not even with the Community Edition of Visual Studio which I have installed for that purpose.

If you have some kind of antivirus or other system-affecting software, try to turn it off temporarily to see if it is not causing it.

With the intent to catch the cause of the exception, can you please also try one or two of the following:?
  • Right-click on you project node in VS Solution Explorer, select Properties command. Then switch to the Debug tab, check "Enable native code debugging", rebuild and start the project.
  • Tools -> Options, Debugging: check "Use Managed Compatibility Mode".

If the behavior changes and the debugger kicks in when the exception is thrown, we would be happy to learn about the call stack(s) at the point of exception.

Best regards

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

More
20 Jan 2018 12:43 - 20 Jan 2018 12:47 #5895 by Renoo
Thanks for your fast support. I think I've narrowed it down:

It only crashes when it's being debugged in VS2017. When I run the program without the debugger it works fine. So I assume the debugger is causing the libraries to throw errors.

I really have no idea whether this is expected behavior for the OPCLabs VB libraries (maybe some functions are being called which the debugger does not like?)

Anyhow, the program is working now, even though with a workaround. If you find a permanent fix so I can run the program inside the debugger, that would be really helpful.

Thanks for the support so far. Have a nice day.

EDIT:

1. I have tested it, and the UA demo provided by OPCLabs crashes also with the C# version in debugging mode.
2. This was already enabled.
Last edit: 20 Jan 2018 12:47 by Renoo.

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

More
20 Jan 2018 11:54 #5894 by support
Thank you.

We do not actually officially support Visual Studio Community Edition (and have not tested with it); on the other hand, I do not see why it shouldn't work with it. So, in an attempt to reproduce it, I will install the VS Community Edition and try it out.

In the meantime, can you please test following two things?

1. If you load the solution with C# examples and try the same project, how does it behave?
2. In VS, do Debug -> Windows -> Exception Settings, and in the Exception Settings window, right-click "Win32 Exceptions", select Add command, and add 0xc0000008. The re-run in debugger to see if it does not break into the debugger and give you more info such as call stacks.

Best regards

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

Moderators: support
Time to create page: 0.567 seconds