03-24-2005, 11:54 AM
anyone remember that problem with making an indexing subroutine for put images? Well, I was doing some more work on it in trying to find the problem, and the problem seems to be right here:
makeindex tiles(), tilesindex()
right there is where I get the "memory could not be read error". Here is code that i believe should be sufficient... I didn't include the "makeindex" sub b/c the error doesn't occur in the sub, but when it tries to access the sub.
here are some concerns i have about these...
1. could redim sharing do this? I don't think short has anything to do with this.
2. could redimming them with only 1 do this?
3. should i just dim then normally?
anyways, anyone who helps or tries to help, i thank you. [/code]
makeindex tiles(), tilesindex()
right there is where I get the "memory could not be read error". Here is code that i believe should be sufficient... I didn't include the "makeindex" sub b/c the error doesn't occur in the sub, but when it tries to access the sub.
Code:
declare sub makeindex (imagearray(), indexarray())
redim shared tiles(1) as short
redim shared tilesindex(1) as short
loadtiles "tiles/set.put", tiles()
makeindex tiles(), tilesindex()
here are some concerns i have about these...
1. could redim sharing do this? I don't think short has anything to do with this.
2. could redimming them with only 1 do this?
3. should i just dim then normally?
anyways, anyone who helps or tries to help, i thank you. [/code]
Jumping Jahoolipers!