You don't create a buffer for data and pass uninitialized pointer to readBlock() and writeBlock().
Forum Rules
Bookmarks