No, it's a real-life commercial audio player application. At the end of playing a song, I need to flush the remaining audio buffers from inside a DLL. I send it a zeroed buffer and it returns the remaining audio in the buffer, and the only way to know it's finished is by testing the returned buffer is all zero.
Generally the buffer will be between 2k and 8k. I'll give your CompareMem idea a go Rob and do some time tests. Many thanks for that. Ross. ----- Original Message ----- From: "John Dammeyer" <[EMAIL PROTECTED]> To: "'Borland's Delphi Discussion List'" <[email protected]> Sent: Friday, November 04, 2005 5:07 AM Subject: RE: Test memory block This smells remarkably like a school assignment. Why would you want to do this sort of thing many times in real life since testing what touches your memory block is probably more efficient? John Dammeyer _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

