Currenty i have purchased a new computer with 1 gig of memory and run
under XP professional. I have an application develop in DOS Foxpro
2.6. Everytime i'm in the edit mode to chance the screen or report on
the project my system is hang up. I check the task manager, it's said
the task is still running. I've note that there is a NTVDM.EXE took
over half of my memory (+600,000K). It was working fine under window
2000. It's only give me problem when i chance my OP to the XP.

Can someone help me how to resolve this problem ? Appreciate for all
the advice and hope to hear from you soon.

This is what i have on my config.NT
dos=high, umb
device=%SystemRoot%\system32\himem.sys
files=99

thanks.

Re: PLEASE HELP ----- XP and FOXPRO by Rick

Rick
Wed Oct 05 16:10:41 CDT 2005

Most all FoxPro DOS applications have problems running under XP/2000/2003. Check
out TameDOS (http://www.tamedos.com/) or DOSIdle (free) if you can find it -
these allow many DOS apps to run much better under XP.

Another approach is to run Virtual PC, install DOS and run it in this true
native environment.

There have been reports of problems running FPD on machines faster than ~ 3.00
gHz, but I haven't been able to verify that.

Make sure you include a MEMLIMIT statement in your CONFIG.FP file. Allocating
too much memory can cause the "Insufficient memory" error! (Yes it doesn't make
sense, but when FPD was last updated there were very few machines with more than
a couple MBs of RAM - especially running DOS!) Since FoxPro DOS or Windows can't
use more than 16MB, I use MEMLIMIT = 60, 2048, 16384. Note: Others have disputed
these numbers, but they work for me!

Rick

<Hung.cao@rwcwarranty.com> wrote in message
news:1128517888.491783.155110@g44g2000cwa.googlegroups.com...
> Currenty i have purchased a new computer with 1 gig of memory and run
> under XP professional. I have an application develop in DOS Foxpro
> 2.6. Everytime i'm in the edit mode to chance the screen or report on
> the project my system is hang up. I check the task manager, it's said
> the task is still running. I've note that there is a NTVDM.EXE took
> over half of my memory (+600,000K). It was working fine under window
> 2000. It's only give me problem when i chance my OP to the XP.
>
> Can someone help me how to resolve this problem ? Appreciate for all
> the advice and hope to hear from you soon.
>
> This is what i have on my config.NT
> dos=high, umb
> device=%SystemRoot%\system32\himem.sys
> files=99
>
> thanks.
>


Re: PLEASE HELP ----- XP and FOXPRO by Hung

Hung
Thu Oct 06 08:22:54 CDT 2005

Hello Rick,
Thank you for the reply. What number should i put in for
MEMLIMIT ? Will this correct when i'm on the MODIFY mode to chance the
form or report in the project ? The problem i have it's keep freezing
up and i have to terminate the task. As i have mention on my previous
post that i have noted everytime i'm open Foxpro this file (NTVDM.EXE)
took
over half of my memory (+600,000K). In window 2000, it's taking alot
less and everything were fine until i'm chancing my OP to XP.
Appreciate for your help and hope you can give me a little more detail.

About tamedos.com. What's it and which one should i need ? I'm sorry
i don't know much how the foxpro dos need or any clue what the site all
about.

Please advice.


Re: PLEASE HELP ----- XP and FOXPRO by John

John
Thu Oct 06 09:14:37 CDT 2005

To limit memory used by FP DOS in XP, right-click on your shortcut, go to
Properties. Then on the Memory tab, change Extended (XMS) memory to 16384
(it usually defaults to 0).


<Hung.cao@rwcwarranty.com> wrote in message
news:1128604974.628451.298470@g43g2000cwa.googlegroups.com...
> Hello Rick,
> Thank you for the reply. What number should i put in for
> MEMLIMIT ? Will this correct when i'm on the MODIFY mode to chance the
> form or report in the project ? The problem i have it's keep freezing
> up and i have to terminate the task. As i have mention on my previous
> post that i have noted everytime i'm open Foxpro this file (NTVDM.EXE)
> took
> over half of my memory (+600,000K). In window 2000, it's taking alot
> less and everything were fine until i'm chancing my OP to XP.
> Appreciate for your help and hope you can give me a little more detail.
>
> About tamedos.com. What's it and which one should i need ? I'm sorry
> i don't know much how the foxpro dos need or any clue what the site all
> about.
>
> Please advice.
>



Re: PLEASE HELP ----- XP and FOXPRO by Andrew

Andrew
Thu Oct 06 09:35:36 CDT 2005

<Hung.cao@rwcwarranty.com> wrote in message
news:1128604974.628451.298470@g43g2000cwa.googlegroups.com...
> About tamedos.com. What's it and which one should i need ? I'm sorry
> i don't know much how the foxpro dos need or any clue what the site all
> about.

It's a commercial (not free) product that (probably amongst other things)
releases CPU cycles during certain processes in NTVDM for other tasks rather
than hogging the CPU.

As far as I'm aware, in FPD, using the INKEY(0) function is the worst
offender (which waits indefinately for a keypress.) It will consume 100% CPU
load but with TameDOS, apparently that is fixed. This doesn't seem to be a
problem in FPW.

If you aren't suffering 100% CPU problems with everything slowing to a crawl
it probably won't do anything for you except cost money. Dosidle was a small
TSR patch written by Frank Dietrich to do something similar. From what I've
read, it is not as effective as TameDOS but it's free. I have Dosidle, if
you need it I can email it or put it up on a website etc.

--
HTH
Andrew Howell



Re: PLEASE HELP ----- XP and FOXPRO by Hung

Hung
Thu Oct 06 11:16:36 CDT 2005

Hello John,
Thank you for the reply. I wonder can i still run my
appication after i cahnce from 0 to 16384 and why do i have to do that.
The probelm is the NTVDM.EXE took so much of my machince memory. How
can I reduce the memory for this program to use and should I ?

Again thank you and hope for the advice.


Re: PLEASE HELP ----- XP and FOXPRO by Hung

Hung
Thu Oct 06 11:20:13 CDT 2005

Hello Andrew,
I hated to chance to code of the project but if i have too i
will do it because it's a HUGE dos appilication. Please send me the
link and the advice what/how to do it. Appreciate for the input and
looking forward to hear from you soon.

My email is hung.cao@rwcwarranty.com. THanks,


Re: PLEASE HELP ----- XP and FOXPRO by Hung

Hung
Thu Oct 06 11:28:21 CDT 2005

Hi John,
In addition to my previous question. Here is what i have for the
shortcut on the memory
- Conventional --- Auto
- Expand (EMS) --- 1024
- Extended (XMS) --- use to 4072 ... Now i chance it to 16384 per
your advice
- MSDOS prtected.mode (DPMI) --- Auto

IS these corrected ? Please advice. I wish it didn't hang on me
because it's trying me nut.

THanks,


Re: PLEASE HELP ----- XP and FOXPRO by John

John
Thu Oct 06 11:48:43 CDT 2005

I have several FP DOS apps that are running very well on XP, and the only
thing different from what you have (besides XMS at 16384) is that I have EMS
set to 0. I don't think that could cause your program to hang.

In addition to what Andrew said about INKEY(), make sure you SET CLOCK OFF.
If it's on it will run away with the CPU.

<Hung.cao@rwcwarranty.com> wrote in message
news:1128616101.035110.134400@f14g2000cwb.googlegroups.com...
> Hi John,
> In addition to my previous question. Here is what i have for the
> shortcut on the memory
> - Conventional --- Auto
> - Expand (EMS) --- 1024
> - Extended (XMS) --- use to 4072 ... Now i chance it to 16384 per
> your advice
> - MSDOS prtected.mode (DPMI) --- Auto
>
> IS these corrected ? Please advice. I wish it didn't hang on me
> because it's trying me nut.
>
> THanks,
>



Re: PLEASE HELP ----- XP and FOXPRO by Hung

Hung
Thu Oct 06 12:06:37 CDT 2005

Hello John,
I was on the edit one of the program in the project about 10
min. and It's hang on me again. I did chance the XMS to 16384 as you
said. I'm losing my code because if i don't save it right away it
will hang and the only way out to terminate the task from task manager.

I have no problem to run the application. Just when i modify
the code and it's keep hang on me. That's the problem i have.
Hope you or anyone can help me with this.

Thanks again for trying john.

PS. NTVDM.EXE still take over 500,000K of memory on my machine. It's
used to take less than 10,000K under window 2000.


Re: PLEASE HELP ----- XP and FOXPRO by John

John
Thu Oct 06 12:22:27 CDT 2005

Sorry, I missed that you're talking about when you modify the code. How big
is the prg? I think there's a 64K limit.

<Hung.cao@rwcwarranty.com> wrote in message
news:1128618397.027722.83790@g44g2000cwa.googlegroups.com...
> Hello John,
> I was on the edit one of the program in the project about 10
> min. and It's hang on me again. I did chance the XMS to 16384 as you
> said. I'm losing my code because if i don't save it right away it
> will hang and the only way out to terminate the task from task manager.
>
> I have no problem to run the application. Just when i modify
> the code and it's keep hang on me. That's the problem i have.
> Hope you or anyone can help me with this.
>
> Thanks again for trying john.
>
> PS. NTVDM.EXE still take over 500,000K of memory on my machine. It's
> used to take less than 10,000K under window 2000.
>



Re: PLEASE HELP ----- XP and FOXPRO by Hung

Hung
Thu Oct 06 15:13:34 CDT 2005

Hello John,
The project is big but the program is not that big. Also the
report. When i do some modification on the form or on the report. My
screen just got freez up. The only way i have to cancel the task from
the task manager by hit Ctrl+ATL+Delete and start it over again.

Thanks for your help.


Re: PLEASE HELP ----- XP and FOXPRO by John

John
Thu Oct 06 16:36:21 CDT 2005

I assume you're using Foxprox.exe and not Foxpro.exe?

<Hung.cao@rwcwarranty.com> wrote in message
news:1128629614.492719.4380@g49g2000cwa.googlegroups.com...
> Hello John,
> The project is big but the program is not that big. Also the
> report. When i do some modification on the form or on the report. My
> screen just got freez up. The only way i have to cancel the task from
> the task manager by hit Ctrl+ATL+Delete and start it over again.
>
> Thanks for your help.
>



Re: PLEASE HELP ----- XP and FOXPRO by ezopaci

ezopaci
Thu Oct 06 09:21:11 CDT 2005


Instead TAMEDos you can try my Foxfree (focused specialy for foxpro dos)
on [url]http://fox.wikis.com/wc.dll?Wiki~Fpd26OnWin2000~VFP[/url]

Problem on fast machines I heard only on Foxpro 2.X for Windows. DOS
versin does not have this problem.

Dos version work well on XP (after configuring of ram, files, etc.)

Sometimes there are problems with VGA drivers (hang in fullscreen). You
can try reinstall it by last version.



--
ezopaci
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------




Re: PLEASE HELP ----- XP and FOXPRO by Hung

Hung
Fri Oct 07 07:56:25 CDT 2005

Yes i'm John.


Re: PLEASE HELP ----- XP and FOXPRO by Hung

Hung
Fri Oct 07 07:59:54 CDT 2005

Ezopaci,
Wonder can you give me some advice on the configuring of ram,
files, etc.. ??? About the VGA driver, it's come with the machince and
i do have it in fullscreen mode when i do the modification on the
codes. Looking forward to get some more detail from you. Thanks.


Re: PLEASE HELP ----- XP and FOXPRO by ezopaci

ezopaci
Fri Oct 07 09:25:55 CDT 2005


Hung.cao@rwcwarranty.com wrote:
> *can you give me some advice on the configuring of ram,
> files, etc.. ??? *

You have to set MEMLIMIT (writed here yet).
My CONFIG.FP contains "memlimit=100,1024,6000" and "display=vga25".

I had problem with machine hangs with NVIDIA MX440 with old drivers.
Machine hang immediately every time when I switch into the fullscreen.
But it had not any relation with modification of code.

Tomas



--
ezopaci
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------