My program (myApp.exe) delay loads a dll (TestDLL.dll). I am doing a negative test, where I deliberately deleted TestDLL from its location. So when the program runs, delay load of dll fails, however when destructor of my class gets called, I get this runtime exception.
It looks like program is trying to call some function inside the delay loaded dll. I am not explicitly doing that in my code. This is done as part of cleanup. Any idea as to why and what is the compiler doing here?