Very confused, need help. Source Included

So i am currently making a Zelda game Map Editor. You click the tile set you want (currently only wall works) and shuffle through them. You can also click on show display and click the tile you want. The problem arises when loading the frames of my tileset into memory. Some frames will randomly not work, but if i close the program and open it again they will, but then other frames wont work, sometimes almost all work, sometimes not very many. Most of the classes code was written using a game programming book, and the code to be looked at is in the sprite class, under LoadFrames.

If Not Wall.LoadFrames(App.Path & "\Walls.bmp", 0, 0, 32, 32, (Walls.Height / 16) * (Walls.Width / 16), False, True) Then
MsgBox "Sprite Error"
Shutdown
End If

Forgot to change something in this if statement in the source code. Change the second 0 to Row, its in a for loop.

This is the code in the editor which calls LoadFrames.

It would be greatly appreciated for someone to look at this. I may even consider payment if necessary, just pm me about it if you think you know the solution.

http://rapidshare.com/files/73816996/NewZelda.rar.html

Its big because it contains the images and whatnot for it to work.
[1286 byte] By [Syruz] at [2007-12-5 11:59:21]