Open the demo6.c file in Wed and then run it - works fine.