piet, before reinstall the OS X, try booting into safe mode.
this is done by holding SHIFT down on the keyboard while turing the computer on or restarting the mac. Once in safe mode, use disk utility to perform a fill scan and repair of the hard drive. Safe mode also cleanly rebuilds your caches, so when you restart, try what you were doing again to see if the kernel panics disappear.