Am Mittwoch, den 26.04.2006, 15:42 +0100 schrieb Robert Shearman: > + if (*new_buff == 0xfeff) > + new_buff++; > .. new_buff, (WCHAR *)((char*)new_buff +size), error_line ); This points behind the End of the File-Mapping, when you skip the BOM. The Pointer to the End of the Data is still: (WCHAR *)((char*)buffer+size -- By By ... ... Detlef