can not use screenRes on terminal

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

can not use screenRes on terminal

Postby Gablea » Mar 19, 2012 13:08

Hi everyone,

Does anyone know what a RMCB error is?

I am trying to set a screen to 640x480 (via screenres 640,480 and SCREEN 12 ) under MS-DOS 6.22 but the PC crashes with a RMCB Error

if I start to print to the screen WITH OUT setting any screen sizes it works fine

but the PC reports it can handle resolutions up to 1024x768

am i loosing my grip on reality or am I doing something MARJORY WRONG here
fxm
Posts: 8347
Joined: Apr 22, 2009 12:46
Location: Paris (suburb), FRANCE

Re: can not use screenRes on terminal

Postby fxm » Mar 19, 2012 13:49

RMCB = real-mode callback ???

- Have you tested it without ScreenLock/ScreenUnlock instruction ?
- Have you tested it without mouse driver installed ?
Gablea
Posts: 986
Joined: Apr 06, 2010 0:05
Location: Northampton, United Kingdom
Contact:

Re: can not use screenRes on terminal

Postby Gablea » Mar 19, 2012 20:51

tested with out mouse (as this is a keyboard only system)
and yes tried with out screen lock and unlock command and it works

This is pure DOS

if I use the following code

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


it is happy and displays a blue background with the correct colored text but if I add ScreenRes 640,480 that is when the app crashes and displays the RMCB error
1000101
Posts: 2556
Joined: Jun 13, 2005 23:14
Location: SK, Canada

Re: can not use screenRes on terminal

Postby 1000101 » Mar 28, 2012 3:24

Make sure that your terminal meets the system requirements for gfxlib2. If you are having issues with unexpected crashes you could have buggy drivers, stub drivers or non-existent drivers. Ideally you will want VESA 2.0 compliant drivers. Beware that some hardware ROMs come with "stub" VESA implementations. They are enough of an implementation to report on the hardware installed but not enough to actually control and use it. UniVBE can be used on most hardware configurations to provide the best results.

GfxLib Overview

Return to “DOS”

Who is online

Users browsing this forum: No registered users and 3 guests