[comp.windows.ms.programmer] Reading large data amounts in Actor.

reilly@bnlux0.bnl.gov (kevin reilly) (02/02/91)

This is directed to Actor users.

Thank you in advance.

I have been having problems reading large binary data files (~250K).
I have been putting the data into an array whose memory was allocated
using GlobalAlloc(...).
The problem occurs when I start to read the file in amounts of 9192
bytes. the reason for 9192 bytes is that the Actor method bRead(..)
crashes every time I use it and read(..) seems to have some limitation
attached to the size it can read.
After approximately 9 or 10 reads from the file the system crashes.
I use checkError after every read and it comes up empty.
Apparently it has something to do with getting the data intto the global
memory location. It is locked and the data space is allocated (Can even
see this in ShowRoom).

Please Help!
reilly@bnlux0