Attempting to retrieve a Windows process name causes Access Violation Exception.
The code snippet below is supposed to retrieve the parent that launched my application and display it. It can be explorer or any other Process through which my application is launched. Actually, this code works. Problem is, while Release works, Debug can't get past the searchById line.
This used to work in debug too. I made some additions to my application's code (completely irrelevant as to the code above) and one day, suddenly, I can no longer debug my code. An image of the error is also attached.
Someone, please save my sanity.
This used to work in debug too. I made some additions to my application's code (completely irrelevant as to the code above) and one day, suddenly, I can no longer debug my code. An image of the error is also attached.
Someone, please save my sanity.



