I´ve had the same problems in past. Do you have the error only with specific file extensions, like tga? In this case, you could try to use
bmap_load(BMAP*,char* name,var mode)
for these extensions.


no science involved