I hope you guys can help me out on this issue. I've designed a program in c++ that uses the canny edge detector to detects edges on different images etc. The problem is when i compile the program the terminal windows pops-up (as expected) but the program returns an error, BUT if i run the newly updated .exe file in the debug folder everything works perfectly. I'm using VS 12.