I suggest you check that your program correctly uses the proxy server you configure by looking at the output of the command netstat. It is both available on Windows, Linux and OS X.
Just add an option to display the PID of the process that open the connection to check for those open by your program.
If your proxy works you will only see connections opened to its address.