http://www.blender.org/forum/viewtopic.php?t=7646 and loading of old corrupt blendfiles. Makes sure bhead.len is not < 0 (hacked blendfile) also sets buffer to 0 when fails to read correctly (wasn't set so was causing problems) The second thing was provided by pidhash. Kent