Best guesses,

1> "texture" may be a reserved word.

2> posx/posy are going higher than actual bmap size.

3> You may be accessing an 8-bit(256 color) bitmap file. From the manual.
Quote:
Only normal 16, 24, or 32 bit bmaps can be read from.
Compressed DDS bmaps, or bmaps used as render target can not be accessed.



"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial