Device.Net: Always get SEHException with visual studio debug
Describe the issue
I always got System.Runtime.InteropServices.SEHException
if i run my app (test console app) with visual studio debugger. If i run without debugger, this error never appear. I suspect that it is thrown when im trying to dispose the IDevice
object:
m_deviceService.Device.Dispose();
or even with this code:
await DeviceManager.Current.GetConnectedDeviceDefinitionsAsync(null);
Where m_deviceService
is an instance of BulkIOService
. I dont know which part of my code causes this error because visual studio says that it is executing external code (see screenshot below). I dont know if this is a real issue but it is quite annoying to always get it when debugging. Any idea?
Screenshots
Platform: Windows 10 Version: 3.0.0 beta 2
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 1
- Comments: 20 (8 by maintainers)
Same problem here… probably it has something to do with SafeFileHandles, as VS was trying to locate source code for that (if Just My Code in debugger settings wasn’t enabled).
maybe this could be the issue with visual studio itself? because this only happens while debugging though
i have tried to disable the exception in debugging options but that doesnt work. the app also keeps closing when i hit continue on visual studio after the error. this makes me impossible to debug the app now
I dont think that it will show the line either because i think it errors in the c++ api you are using.