1.

Solve : Heap space limit?

Answer»

Hello All,
Need urgent help. While executing one of my graphical software in DOS ( command.com) in windows XP. after supplying file name to display it is SHOWING run time error: HEAP Space limit exceeded.
How to over come this Problem. If any one is aware of that then kindly tell me.
The problem diappear if I remove some of system environment variables but this is not a right solution. can anybody explain why it is happneing ?Though I do use WindowsXP and 2K lots, I'm running Windows98se on this system. I think the "HEAP" space is your environment variable space. Removing some environment variables needed by that program will certainly cause problems. You need to get the update from the producer of the program that will run in WindowsXP. Or, they might have a work around which is always an imitation fix!

Chris CThanks Chris !
As I said program is running fine when I remove certain env. variables and there is no side effect of removing env. variable to other application. The software is not commercial and source code is also not with me. Is there anyway to extend Heap space limit ?

GautamIncrease the environment space by using a shell= command in config.sys. You can also add a files= and buffers= . If you are running it from WITHIN windows, make sure the memory settings are set to auto (properties/memory tab).One little omission - under XP try running it with command.com - not cmd.Sample CONFIG.SYS:

DEVICE=C:\WINDOWS\HIMEM.SYS
dos=high,umb
DEVICE=C:\WINDOWS\EMM386.EXE noems
country=061,437,c:\windows\command\country.sys
files=81
buffers=80
stacks=16,256
fcbs=10,6
lastdrive=z
devicehigh=c:\windows\setver.exe

shell=c:\command.com c:\ /e:512 /p


This sample includes RAM access (EMS and XMS), a SETTING to make DOS do dd/mm/yy date, files/buffers/stacks/fcbs, some RAM savings, and the enlargement of the environment from 320 bytes to 512 bytes.Thanks for Responses !
I tried and changed the config.sys as per statements given by you. but problem still persist. HOWEVER I even changed the environment sapce from 320 to 512 ( as you said) and tried upto 1024000 in incremnetal steps. for 1024000 it is giving some error after executing dos prompt.
I realise to tell you that before supplying file names to work on it,i need to run egavdi. which install AGOS/GOSY ver 7.1 ega display adpater. is problem is with it ?
is their any other parameter in which I can change in the statments given by youSet the environment space to 1024 (not 1024000).
Add the line mode CO80Sorry Freind,
Problem still persist.



Discussion

No Comment Found