Okay, that is odd, because Banks are just a wrapper around the standard OS calls. You can easily use Allocmem_ instead, just remember to free the memory before you quit the program or it will be lost until you reboot (Banks are freed automatically on End).
It could be a bug in some particular version of the library though - I've tried it with both Blitz 2.1 and AmiBlitz 3 and both work as expected for me. But if it works when it's alone in a file, that might be a clue regarding what's happening. Perhaps some other command is corrupting that Bank object's structure, making it point elsewhere? Or perhaps an address is getting corrupted somewhere by an accidental unwanted access?
|