Suddenly my code started to throws an exception First-chance exception at 0x7731c41f in VideoPlayer.exe: Microsoft C++ exception: GenICam::RuntimeException at memory location 0x0018f5dc..
I could not find where exactly it throws from, so I commented all in main
function and everything outside the main
. I started to uncomment blocks of code one by one whilst the code in main
remains commented. While doing it I noticed that there is function A
that when it is commented there is no exception, but when it's uncommented it throws the exception above.
I don't understand how it can cause exeception if it's not called ( I placed breakpoint in it and code in main is commented)?