DOS problems

Status
Not open for further replies.

bharat_r

In the zone
When I execute any program which was made using C or C++ i get this error messgae & it is closed immediatly.

*i6.photobucket.com/albums/y241/bharat_r/doserror.jpg

what is wrong?
the screen above shows a program to give the sum & product of 2 nos.
But it is closed immediatly & displaying athe message. :x
 
OP
bharat_r

bharat_r

In the zone
An extended memory manager is already installed.
XMS driver not installed

Can someone solve this,I can't work on C++ unless this problem is solved.
 

sms_solver

In the zone
it seems that u are running your program from XP. Try to run in pure old DOS. make dos bootable CD, and try to run from there.
 

saROMan

QA Juggler
XMS driver not installed

This error may be caused by a fault in the computer's external cache controller or by bad or mismatched memory chips on the external cache (generally 64, 128, or 256K cache SRAM). If disabling the external cache does not correct this problem, there may be a problem with the motherboard at the current processor speed, A20 handler problems, or bad or mismatched main system RAM chips.

see this How to Troubleshoot Windows Protection Error Messages and This

two of the possible causes of this error is

• If the computer contains a malfunctioning cache or malfunctioning memory.
• If the computer's motherboard is not working properly.

Download Memtest Follow the instructions

let memtest make at least 2 passes. It will not stop itself, you must stop it. If memtest finds any errors, that will confirm your memory is bad.
 

ferrarif50

Journeyman
U need not have pure dos to run C compiler. I run it from Windows XP itself.

Do the following...it may help!

> Right click on 'TC.EXE' and click properties
> Go to the Memory tab
> Go to the Extended (XMS) Memory section
> Set Total to 0 and check 'Uses HMA'. If it is checked try unchecking it.
> If still does not work, play around with the other memory settings.

Hope this solves ur prob.
 
OP
bharat_r

bharat_r

In the zone
@saROMan:Memtest dosen't seem to work too.I get the same error message when I run it.

@ferrarif50:I tried playing around with the memory option.Changed all the avaliable things,but it does not work still.
 
OP
bharat_r

bharat_r

In the zone
Looks like I'll havr to call my service man to check the hardware.

or is there a way I can fix it myself.
 

expertno.1

Technomancer
go for any dos compatibility emulator software such as there is dosbox for older dos games similarly find one !
 

saROMan

QA Juggler
well my suggesion is get a Spare Ram frm ur Frnd ..remove ur existing chips...use the new ram and now run the proggy ..if it works fine means ur Ram is bad ..or the idea of using DOSBox may also work....u can give it a try ..info about Dosbox Here and Download it here
 

amitsaudy

Ambassador of Buzz
Which C compiler do you use?
Must be the dos based borland turbo c ide.
Your code is gettin compiled without any errors n warnings and the problem is that u r unable to run the exe you compiled.Hence there is no need to modify TC.exe.
Suppose you have successfully compiled the hello world program then try going to the compiled exe properties in explorer(ie hello world.exe)and select the compatibility mode option and run the program in the dos/win9x compatibility mode.Also in the msdos mode properities select the option 'Prevent msdos programs from detecting windows'.

Try compiling with the borland cpp commandline utilities.It has all the libraries n more.
Also it is a free download.
Also you can get help from the borland site reading the FAQ s.
Correct me if i am mistaken.
 

saROMan

QA Juggler
BTW i have Heard lot about Bloodshed Software - Dev-C++ ....its free ...and GUI based...so why donn u give it a Shot.....just search ur OLD Digit CD's its given many times or Download Here
 
OP
bharat_r

bharat_r

In the zone
I use Turbo C++ 1.01.
The program gets complied without any error.But when I try to run it by pressing CTRL+F9,it gives the XMS deiver error & exits.

I've found a temporary solution for it.I go to command prompt(by typing cmd in run dialog box) & from there I go to by TC folder & run the compiled prog & it works without exiting eventhough it gives the XMS driver error.
 
Status
Not open for further replies.
Top Bottom