Code errors out

DOS specific questions.
Gablea
Posts: 873
Joined: Apr 06, 2010 0:05
Location: Northampton, United Kingdom
Contact:

Code errors out

Postby Gablea » Mar 17, 2012 16:56

hi all

I am using this code to make a simple color test application on a Old PC (to see if it can handle FreeBASIC)

but it keeps saying something about RMCB Error

Code: Select all

   ScreenRes 640,480
   
   ScreenLock
      Cls
      
      Color 15,0
      Print "Hello"
      
      
      Color 0,15
      Print "TEST"
      
      Color 5,15
      Print "TEST COLOR again"
   ScreenUnLock

   Sleep

   End


does this mean it can not support FreeBASIC? (as it will support application written in VBDOS)
fxm
Posts: 7733
Joined: Apr 22, 2009 12:46
Location: Paris suburb, FRANCE

Re: Code errors out

Postby fxm » Mar 17, 2012 17:13

Perhaps it does not support font 8x8 (text 80x60), due to 'ScreenRes 640,480'!

Try with font 8x16 (text 80x30):
Screen 12
or
ScreenRes 640,480
Width 80, 30
Gablea
Posts: 873
Joined: Apr 06, 2010 0:05
Location: Northampton, United Kingdom
Contact:

Re: Code errors out

Postby Gablea » Mar 17, 2012 17:26

@fxm

I have tried that and it still errors out

I have tried


ScreenRes 640,480,16
ScreenRes 640,480,32
Screen 11
Screen 12
ScreenRes 640,480
Width 80, 30

and notyhing works

The VBDOS app run on it at screen 11 fucntion but I can not get any colors to work and it keeps flickering (hence why i want to try in freeBASIC as I can make it work perfectly on my other machines)

the PC is a Alphanumeric EPoS machine 133CPU with 64MB RAM
Gablea
Posts: 873
Joined: Apr 06, 2010 0:05
Location: Northampton, United Kingdom
Contact:

Re: Code errors out

Postby Gablea » Mar 18, 2012 10:17

I have tried the following code and it works

Code: Select all

   
 ScreenLock
  Color 1,1
   Cls
   Color 15,0
   Print "Hello"
      
   Color 0,15
   Print "TEST"
      
   Color 5,8
   Print "TEST COLOR again"
ScreenUnLock

Sleep
End


I am NOT setting any screen sizes etc it works fine but I can not get xfont to work if I use ScreenRes 640,480 it crashes with the RMCB error

anyone have any ideas? I want to convert a app I have that works in DOS (full screen etc with xfont to work on this machine but it does not do anything

COULD it be xfont not liking the machine?
fxm
Posts: 7733
Joined: Apr 22, 2009 12:46
Location: Paris suburb, FRANCE

Re: Code errors out

Postby fxm » Mar 18, 2012 10:37

Have you tried to find the available fullscreen video modes with the instruction 'ScreenList'?
http://www.freebasic.net/wiki/wikka.php ... Screenlist
Gablea
Posts: 873
Joined: Apr 06, 2010 0:05
Location: Northampton, United Kingdom
Contact:

Re: Code errors out

Postby Gablea » Mar 18, 2012 19:32

I have done the ScreenList and it list all screen sizes from 80 x 35 to 1024x 768

so I am now offically confused what would make this error?

Return to “DOS”

Who is online

Users browsing this forum: No registered users and 1 guest