December 17th, 2005

Don't put your drivers in the kernel, Mrs. Robinson

How to bring Windows to its knees, part 94...

Draw a polypolyline with about 118000 points in about 7000 sections using the GDI PolyPolyLine call. Admire the way that this brings the PC to its knees so thoroughly that even the soft on-off switch on the front fails to do any good and you have to power cycle via the mains lead.
The behaviour is, of course, display driver dependent but on the 4 PCs tested on it varied from BSOD to a 'the display driver is not responding' message to the hard-hang.