I was experimenting with with a using a COM class to open a port from my dotnetcore application instead of using the command line to execute the advfirewall commands.
I forgot to marshall the COM class and after executing the code in my Visual Studio debugger I can no longer run my application in Visual Studio.
I removed all of the COM code and all of the COM references, but when the application is attempting to get up and running, I get the following class of errors:
Exception thrown at 0x00007FFB92325469 (coreclr.dll) in MyWorkApp.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x000000BFA8D43FE8).
The Common Language Runtime cannot stop at this exception. Common causes include: incorrect COM interop marshalling and memory corruption. To investigate further use native-only debugging.
Exception thrown at 0x00007FFBCE805ACB (coreclr.dll) in MyWorkApp.exe: 0xC0000005: Access violation writing location 0x000000BA7FDC0FF4.
The Common Language Runtime cannot stop at this exception. Common causes include: incorrect COM interop marshalling and memory corruption. To investigate further use native-only debugging.
Unhandled exception at 0x00007FFBCE805ACB (coreclr.dll) in MyWorkApp.exe: 0xC0000005: Access violation writing location 0x000000BA7FDC0FF4.
The Common Language Runtime cannot stop at this exception. Common causes include: incorrect COM interop marshalling and memory corruption. To investigate further use native-only debugging.
It happens every time, and I am entirely blocked from using my debugger to run my application locally for debugging, and I am afraid to use it to make a build.
I am at the limit of what ChatGPT can help with, so I am hoping one of you will know how to help me.
I feel like I need to somehow reallocate the memory for use for my application, either that or somehow otherwise free that COM corrupted memory.
The issue persists after multiple reboots. Thank you for your assistance.
1