I've only just really started the basics of my ICC09 Fixture Editor.. did a lot of it a while ago and have tried to re-start work on the project again, but I'm still hitting the same snag.
I was analysing the hex of the fixtures file.. and basically I've worked out that before each match starts, there is a certain symbol which translates to 80 in hex.
So, in my editor, I try and search for that hex symbol, so then I know that the hex code for a match starts after that symbol. However, my code is failing to find that symbol.
This is what I have:
If bytFile(j) = &H80 Then
bytFile basically contains every single byte in the file - I have this code a few lines earlier.
bytFile = BR.ReadBytes(nLen)
Whilst j is used in a simple for loop to the end of the file. So, basically, it reads every byte until the end of the file, and then if it sees the symbol 80 (&H80) it adds 1 to the number of matches in the fixture file.
However, I consistently get this error:
'A first chance exception of type 'System.IndexOutOfRangeException' occurred in ICC Fixture Editor.exe'
and it isn't recognising the symbol 80 like it is supposed to.
Any help?