> That solved the problem.
For anything up to an 32*1 or 16*2 buffer it's perfectly valid since a DWord holds enough storage space to describe the
entire data buffer at 1-BPP, however any larger than that and the API has to read off the end of the variable into
no-man's land. Depending on how the temporary variable memory is structured, this could very well be reading into
memory that's protected by the system or allotted to another process and the call falls over.
Hope this helps,
- Microsoft Visual Basic MVP -