Re: odd error with read_bitmap()
- Posted by Mario Steele <eumario at tuscanchat.com> May 04, 2004
- 385 views
John McAdam wrote: > > >>posted by: CoJaBo <cojabo at suscom.net> >> >>Sounds like you are reading/writing outside the allocated memory, >> I did that once and got completly random results. >>Try using the trace feature in Eu, >>the last line in the file should be the one that caused the crash. >> >> >I am just showing a bitmap on the screen. I think maybe the interpreter >is writing into the variable memory space. >It is quite consistant. My program runs fine, then gives me a type check >error when I return to the interpreter. >If I run my program again, windows aborts it. I have the public domain >version, so I can't trace. I test the >value of my sequence in the program and it is ok. After the program >runs, the interpreter says my sequence has the >value of 1, but I don't give it that value anywhere, so how does it get >that value, if not a bug in the interpreter? >My bitmap is a full screen picture in mode 261, 256 colors, so it is >quite big. It is my opening screen. Then I switch >to text mode and don't use it again. > > Well, in reply to your first email. without type_check will only turn off User declared type's. EG:
type a(object c) if a = 1 then return 1 else return 0 end if end type
without type_check will cause that type never to execute. Internal Euphoria Type Checks will continue to be processed like usual. As to the specific problem, try changing the sequence variable to a object variable, to prevent it from crashing with a type_check error. As to why this is happening, I have no clue, have to see some code first, before I can make any assesments. (Like Matt Lewis said) -- Enchanted Blade (Mario) Brain: Come Pinky, let's return to the cage, to plan for tommorrow night. Pinky: Why Brain, what are we gonna do tommorrow night? Brain: Same thing we do every night Pinky, try to take over the world!