Kinect fullscreen problem

could some kind person please have a look at my patch.

i am using kinect (v1, MS drivers) to obtain a silhouette, which i then use for effects, video cutout etc. very basic.

my problem comes when i attempt to put the output fullscreen on my second monitor/projector. i get no output and both screens flicker wildly. what have i missed?

thanks

Sony Vaio laptop
Win7 Home Premium 64bit (6.1, Build 7601, service pack 1)
Intel i5-2430M @ 2.4ghz, 4gb memory

kinectTest1.zip (22.1 kB)