I'm using DLLImport to import a library provided by a hardware company and I'm writing my code in .NET Framework to consume the API provided by the DLL.
In one of the methods, when triggered, Visual Studio returns "A breakpoint instruction (__debugbreak() statement or a similar call) was executed in XXX.exe." while I'm in Debug mode. When switching to Release mode, the application crash and Visual Studio just stop the execution.
How do I escape the error/debugbreak so the application won't be triggering this error or I can bypass it?