WCCOA C# API in debug mode?

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
mikek10
Posts:20
Joined: Wed Jun 26, 2019 4:05 pm

WCCOA C# API in debug mode?

Post by mikek10 »

Hi,

I am following the WCCOA C# API guide in the help documents and believe I have followed all the steps correctly. However when I step through the C# code the project crashes on the following line:

myManager.Init(ManagerSettings.DefaultApiSettings, args);

with the error: The program '[10548] WCCOACSAPITest.vshost.exe' has exited with code 1 (0x1).

Should I be able to step through the code in debug mode or will only the compiled exe in the project\bin path work?

Thanks

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: WCCOA C# API in debug mode?

Post by leoknipp »

If you want to debug a WinCC OA process you can
-- Start the process
-- Attach with the debugger to the process
-- Start debugging

Best Regards
Leopold Knipp
Senior Support Specialist

2 posts • Page 1 of 1