odd error with read_bitmap()
- Posted by "John McAdam" <johnmcadam at clix.pt> May 02, 2004
- 424 views
This is really odd. In my program I call read_bitmap (s=read_bitmap("myfile.bmp") and check the length of the sequence. It is 2. That is correct. I then display the bitmap and it displays ok. The whole program runs fine. But when I return to the editor, I get a type check error that says s=1. (s is declared as a sequence) If I rerun the program I get this windows error: subsystem MS_DOS 16 bits in cmd.exe O cpu ntvdm found the following illegal instruction CS:d402 IP:0000 OP:ff 3f ff 1f ff select Quit or Ignore Then dos aborts back to windows. Odd, yes? Why does it run once but not twice? Taking the offending subroutine to a little test.ex file runs fine every time, so maybe it is some leaky memory thing? If that is the case, is there something I can do about it? Why does my program run but give me a type check error anyways? It doesn't make any difference if I have with or without type_check. John