You are right, this works perfectly thanks !

One interesting thing is that when the program was built in debug mode the 
program would hang, but in release mode if just crashed. Not sure that hanging 
is an expected behaviour ?

Reply via email to