For Programmers: Free Programming Magazines  


Home > Archive > Clarion > August 2006 > Running Clarion 2110 app on Win XP SP2









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 Running Clarion 2110 app on Win XP SP2
BFoelsch

2006-07-30, 3:55 am

Trying to migrate this app from Win98 to WinXP SP2.

No matter what I try I get "Not enough memory to Chain" or something to that
effect. Fooled with the memory settings in the shortcut and played with the
config.nt files to no effect.

Any clues, or is this combination hopeless?

Thanks in advance


Arie Rens

2006-08-01, 3:55 am

> No matter what I try I get "Not enough memory to Chain" or something to that
> effect. Fooled with the memory settings in the shortcut and played with the
> config.nt files to no effect.
>
> Any clues, or is this combination hopeless?


The 'not enough memory' refers to the environment space.
See message below.

HTH

Arie

----------------------------------------------------------------
Message retrieved by ForKeeps Message Archiver
----------------------------------------------------------------
From: Arie Rens (RADventure B.V.) <reader8@radventure.nl>
Newsgroups: comp.lang.clarion
Date: 3-Jun-2004 00:00:00
Subject: CHAIN.COM and XP
Message-ID: <VA.0000013a.07e2387d@radventure.nl>
References: <MPG.1b28e155817896679899d3@tsnews.softvelocity.com>
----------------------------------------------------------------
Hi Ben.

> Have a client with an older CPD app that uses CHAIN.COM written by a
> programmer who has long since deceased without turning over source code.
> Has anyone ever gotten CHAIN to work under XP?


Yes

I assume your client encounters a 'not enough memory to chain' errormessage
from CHAIN.COM?

The memory it refers to is called the stack by CHAIN.COM (you will see the
'remaining stack' when you type CHAIN without parameters), but you may know
it better as the DOS environment space

Unfortunately, it seems that the environment space is trimmed when a DOS
command session is opened, at least I have not been able to increase this
space before the session is opened

So the trick is to increase the available environment space inside the DOS
session until it is 'enough' for CHAIN.COM. How much is enough? As a rule
of thumb the 'remaining stack' when you type CHAIN without parameters must
1200 or more.

So how do you increase the available environment space?
The only method I found is to reduce the length (and sometimes the number)
of the environment variables. When a command session is opened it makes a
local copy of those variables, so you can trim and/or remove all the
variables you don't for the program you are running.
A good place to start is usually the PATH command. I assume you use a
batchfile to call CHAIN.COM (if you don't, create one). Inside this
batchfile, before the line where you call CHAIN.COM, set the PATH to the
minimum directories you need for your program.

If trimming and/or removing the existing environment variables is not
enough (remaining stack stays below 1200), the next step is to create some
dummy environment variables in your window environment (e/g DUMMY1, DUMMY2
etc), and to set them to 250 characters each in the windows environment.
When you open a DOS session the local copies of those variables will be
available for you to remove.

HTH

--
Arie Rens (RADventure B.V.)
Maarssen, the Netherlands
http://www.radventure.nl
SoftVelocity Distributor for the Benelux





----------------------------------------------------------------
End Of Quote
----------------------------------------------------------------



Sponsored Links







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

Copyright 2009 codecomments.com