njka
New Member
Posts: 1
|
Post by njka on Nov 3, 2006 6:39:00 GMT -5
Hi, I've found a bug in the ResourceReader.GetNextResource Method. It's possible for a resource to have a DataSize of 0, and because of this GetNextResource can cause "Subscript out of range" error when it tries to ReDim the "Data" array. The fix is easy enough, just needs an "If Header.DataSize > 0 Then" around the code.
Fantastic code though. Regards Neal
|
|
|
Post by Kelly Ethridge on Nov 8, 2006 15:33:30 GMT -5
I never even considered a zero length resource. I guess it was more of a bug in the programmer heh.
Thanks, Kelly
|
|