Anonymous
|
well, you have to be a bit careful. The code you use, reads from item and write the data to iType. As it is Integer variable you won't be able to store there much -- 2 bytes or 1 DWORD. If you write more data, you'd overwrite something else in memory, hence the crash/hanging. If you need more data, you can for example create an integer array with size large enough to accommodate all the data you will read. Then you could print out this data to a file without ever having to allocate/release memory that you do by using the MemoryManager class.
|