For Programmers: Free Programming Magazines  


Home > Archive > Clipper > March 2005 > dosemu difficulties









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author dosemu difficulties
Alan Secker

2005-02-24, 8:55 pm

I'm just starting to try to get things to work in dosemu over linux.
My program, compiled with Clipper 5.2e and linked with Blinker 3.2,
crashes giving a BLX286 : 1304 error complaining that it cannot use
XMS host with current memory configuration. It goes on to say:

.... needs 512k of This is a DOS extended program which requires a
minimum of a 286 processor and at least 512Kb of available DPMI, VCPI or
XMS memory to run.

I've tried editing dosemu.conf to allocate 512k of XMS but it didn't
change anything.

Has anyone on this NG any experience of dosemu and could help?

Alan Secker
Peter B. Steiger

2005-02-25, 3:55 am

On Thu, 24 Feb 2005 22:30:18 +0000, Alan Secker sez:
> I'm just starting to try to get things to work in dosemu over linux. My
> program, compiled with Clipper 5.2e and linked with Blinker 3.2, crashes
> giving a BLX286 : 1304 error complaining that it cannot use XMS host with
> current memory configuration. It goes on to say:
>
> ... needs 512k of This is a DOS extended program which requires a minimum
> of a 286 processor and at least 512Kb of available DPMI, VCPI or XMS
> memory to run.
>
> I've tried editing dosemu.conf to allocate 512k of XMS but it didn't
> change anything.
>
> Has anyone on this NG any experience of dosemu and could help?


Alan, we have a humongous app (EXE is about 4.5 meg) that I have run
successfully through DOSEMU for 3+ years. The very first version I tried
worked perfectly out of the box, and now I regret the kazillion upgrades I
have built and installed over the years because I can no longer get past a
problem with dbrlock() freezing up early in the program if I use my
built-in Win98 DOS. I switched to freedos and it works fine... go figure.

Can't imagine why Blinker is complaining if you set dosemu.conf
correctly. Are you sure dosemu is pointing to that configuration file?

Also, what version of dosemu are you using and what kernel?

--
Peter B. Steiger
Cheyenne, WY
If you must reply by email, you can reach me by placing zeroes
where you see stars: wypbs_**3 at bornagain.com.

ben@nccn.net

2005-02-25, 3:55 pm

Alan Secker wrote:
> I'm just starting to try to get things to work in dosemu over linux.
> My program, compiled with Clipper 5.2e and linked with Blinker 3.2,
> crashes giving a BLX286 : 1304 error complaining that it cannot use
> XMS host with current memory configuration. It goes on to say:
>
> ... needs 512k of This is a DOS extended program which requires a
> minimum of a 286 processor and at least 512Kb of available DPMI, VCPI

or
> XMS memory to run.
>
> I've tried editing dosemu.conf to allocate 512k of XMS but it didn't
> change anything.
>
> Has anyone on this NG any experience of dosemu and could help?
>
> Alan Secker


Alan,

In dosemu.conf there is a line that reads:

$_dpmi = (0x?????) # where ????? is some value

On my system (I'm using 1.0.2.0) I will get your error if ????? is
00000. I use 20000 and it works.

Ben Prescott

Alan Secker

2005-02-25, 8:55 pm

ben@nccn.net wrote:
> Alan Secker wrote:
>
>
> or
>
>
>
> Alan,
>
> In dosemu.conf there is a line that reads:
>
> $_dpmi = (0x?????) # where ????? is some value
>
> On my system (I'm using 1.0.2.0) I will get your error if ????? is
> 00000. I use 20000 and it works.
>
> Ben Prescott
>


Hi Ben

I had $_dpmi set to (0x5000).

I changed it to (0x20000) as suggested but it it had no effect.
What about other settings?

Peter asked about versions:

kernel: kernel-2.6.8.1-12mdkWin4lin
(the mandrake version patched for Win4lin)

dosemu: version 1.2.2.0.
It pops up:
dosemu EMS 4.0
Freecom ver 0.82 pl 3 XMS_Swap

Freedos: kernel version 1.1.35

Regards

Alan

Alan Secker

2005-02-26, 8:55 pm

Alan Secker wrote:
> ben@nccn.net wrote:
>
>
> Hi Ben
>
> I had $_dpmi set to (0x5000).
>
> I changed it to (0x20000) as suggested but it it had no effect.
> What about other settings?
>
> Peter asked about versions:
>
> kernel: kernel-2.6.8.1-12mdkWin4lin
> (the mandrake version patched for Win4lin)
>
> dosemu: version 1.2.2.0.
> It pops up:
> dosemu EMS 4.0
> Freecom ver 0.82 pl 3 XMS_Swap
>
> Freedos: kernel version 1.1.35
>
> Regards
>
> Alan
>


I thought it might help if I displayed the output from mem.


Memory Type Total Used Free
---------------- -------- -------- --------
Conventional 640K 10K 630K
Upper 128K 13K 115K
Reserved 256K 256K 0K
Extended (XMS) 16,384K 8,292K 8,092K
---------------- -------- -------- --------
Total memory 17,408K 8,571K 8,837K

Total under 1 MB 768K 23K 745K

Total Expanded (EMS) 2,048K (2,097,152 bytes)
Free Expanded (EMS) 2,048K (2,097,152 bytes)

Largest executable program size 630K (644,624 bytes)
Largest free upper memory block 113K (115,440 bytes)
FreeDOS is resident in the high memory area.


AUGE_OHR

2005-02-27, 3:55 am

hi

show us your blinker *.lnk
3st party Libs ?
[color=darkred]

i do not know linux. is this compatible to himem.sys ?

try : BLINKER HOST MESSAGE ON

you can disable by : BLINKER HOST DPMI ON/OFF
for DPMI VCPI XMS

greetings by OHR
Jimmy



Alan Secker

2005-02-27, 8:55 pm

AUGE_OHR wrote:
> hi
>
> show us your blinker *.lnk
> 3st party Libs ?
>
>
>
>
> i do not know linux. is this compatible to himem.sys ?
>
> try : BLINKER HOST MESSAGE ON
>
> you can disable by : BLINKER HOST DPMI ON/OFF
> for DPMI VCPI XMS
>
> greetings by OHR
> Jimmy
>
>
>


Hello Jimmy

Thanks for responding.
First the .lnk file:

# TIMAC.LNK Script File.
# Mod 29.6.95 AS
#
BLINKER PROCEDURE DEPTH 50
#
BLINKER MESSAGE WINK
BLINKER EXECUTABLE CLIPPER F71
BLINKER EXECUTABLE EXTENDED
NOBELL
OUTPUT TIMAC.EXE
#

SEARCH CPMI
LIB NANFOR
LIB CTP
SEARCH BLXRATEX
SEARCH AAMOUSE
SEARCH BLXCLP52
LIB AAREADRS
LIB CLIPPER
LIB EXTEND
lib dbfcdx
lib SOS_LRGE
LIB PsCript

#BEGINAREA

file timac
file tmc20aap
Stephen Quinn

2005-02-28, 3:55 am

Alan

The 1st .obj in your link script should be a CLIPPER one and NOT the LIBs you
have listed.
ie LIBs should be listed after the FILES

> SEARCH BLXRATEX
> SEARCH BLXCLP52

These should come before ALL LIBs in the list - read the Blinker docs

> file video1 # uses CPMI Library

Not sure if video access routines are the same in DOS as in DOSEMUs, so that a
be where your problem getting the app to run is.

> file cld.lib # Debug library file

Suggest you don't leave this in your disributed app.

--
HTH
Steve


alan(remove this bit)

2005-02-28, 8:55 am

Stephen Quinn wrote:
> Alan
>
> The 1st .obj in your link script should be a CLIPPER one and NOT the LIBs you
> have listed.
> ie LIBs should be listed after the FILES
>
>
>
> These should come before ALL LIBs in the list - read the Blinker docs


Funny, this never caused a problem while compiling, linking or operating
in any version of Windows but thanks for the tip.

>
>
>
> Not sure if video access routines are the same in DOS as in DOSEMUs, so that a
> be where your problem getting the app to run is.


Good point but I suspect that may become a secondary problem.
>
>
>
> Suggest you don't leave this in your disributed app.


No. I have parallel folder with separate instructions.
>
> --
> HTH
> Steve
>
>


Regards

Alan
AUGE_OHR

2005-03-03, 3:55 am

hi

show us your blinker *.lnk
3st party Libs ?
[color=darkred]

i do not know linux. is this compatible to himem.sys ?

try : BLINKER HOST MESSAGE ON

you can disable by : BLINKER HOST DPMI ON/OFF
for DPMI VCPI XMS

greetings by OHR
Jimmy



Alan Secker

2005-03-03, 3:55 am

AUGE_OHR wrote:
> hi
>
> show us your blinker *.lnk
> 3st party Libs ?
>
>
>
>
> i do not know linux. is this compatible to himem.sys ?
>
> try : BLINKER HOST MESSAGE ON
>
> you can disable by : BLINKER HOST DPMI ON/OFF
> for DPMI VCPI XMS
>
> greetings by OHR
> Jimmy
>
>
>


Hello Jimmy

Thanks for responding.
First the .lnk file:

# TIMAC.LNK Script File.
# Mod 29.6.95 AS
#
BLINKER PROCEDURE DEPTH 50
#
BLINKER MESSAGE WINK
BLINKER EXECUTABLE CLIPPER F71
BLINKER EXECUTABLE EXTENDED
NOBELL
OUTPUT TIMAC.EXE
#

SEARCH CPMI
LIB NANFOR
LIB CTP
SEARCH BLXRATEX
SEARCH AAMOUSE
SEARCH BLXCLP52
LIB AAREADRS
LIB CLIPPER
LIB EXTEND
lib dbfcdx
lib SOS_LRGE
LIB PsCript

#BEGINAREA

file timac
file tmc20aap
Stephen Quinn

2005-03-03, 8:55 am

Alan

The 1st .obj in your link script should be a CLIPPER one and NOT the LIBs you
have listed.
ie LIBs should be listed after the FILES

> SEARCH BLXRATEX
> SEARCH BLXCLP52

These should come before ALL LIBs in the list - read the Blinker docs

> file video1 # uses CPMI Library

Not sure if video access routines are the same in DOS as in DOSEMUs, so that a
be where your problem getting the app to run is.

> file cld.lib # Debug library file

Suggest you don't leave this in your disributed app.

--
HTH
Steve


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com