One heck of a problem!

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
AiRMaN
Coder
Posts: 14
Joined: Sat Aug 19, 2006 11:28 pm
Location: Jordan

One heck of a problem!

Post by AiRMaN » Sat Sep 02, 2006 10:00 am

I'm using Windows XP, and every single time I run QB, My windows programs slow dow significantly, I mean 'Notepad' would take 10 seconds to run!, I checked the task manger, and there I found a process called 'Ntvdm' that takes a bout 97 - 99 percent of the cpu usage!, I tried adjusting memory settings in the properties but nothing worked out!, any suggestion
~AiRMaN~

User avatar
Stoves
Veteran
Posts: 101
Joined: Fri Feb 10, 2006 12:24 am
Location: Nashville, TN

Solution: Lower priority

Post by Stoves » Sat Sep 02, 2006 10:46 am

In the windows task manager, right click on that 'Ntvdm' process, choose "Set Priority", and set to "BelowNormal". All your other windows apps should run much more smoothly.

AiRMaN
Coder
Posts: 14
Joined: Sat Aug 19, 2006 11:28 pm
Location: Jordan

Post by AiRMaN » Mon Sep 04, 2006 10:45 am

Thanx Stoves, it's all back to smooth now!, but still the process 'Ntvdm' is taking a whooping 99% of the cpu, is there a way to make it less!
~AiRMaN~

User avatar
The Walrus
Veteran
Posts: 85
Joined: Fri Apr 01, 2005 7:19 am
Location: Denmark
Contact:

Post by The Walrus » Mon Sep 04, 2006 11:17 am

It will only take 99% of the CPU when the other programs you have running aren't using CPU. When another program wants to do something, NTVDMs CPU usage drops automatically. It's no problem, unless you're using a laptop on battery (heavy CPU usage drains the battery faster).
If swimming is so good for your figure, how do you explain walruses?

User avatar
Stoves
Veteran
Posts: 101
Joined: Fri Feb 10, 2006 12:24 am
Location: Nashville, TN

Fraid so

Post by Stoves » Mon Sep 04, 2006 12:52 pm

AiRMaN wrote:Thanx Stoves, it's all back to smooth now!, but still the process 'Ntvdm' is taking a whooping 99% of the cpu, is there a way to make it less!
Yeah, like The Walrus said, unfortunately there's no way (that I'm aware of) to make the Ntvdm process be less of a processor hog.

Cuz of that, I try to do as much code writing outside of the Qbasic interpreter as possible and then only do debugging in Qbasic.

Post Reply