Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QBASIC plotting program locks PC

Status
Not open for further replies.

paterldl

Programmer
Mar 7, 2001
2
US
I have an old QBASIC program (which I did not write) which was compiled under Windows NT 3.51 and I am running it under Windows NT 4. The program draws a plot using 'SCREEN 2' and 'LINE' commands. The program displays the plot, waits for a keypress, and returns control to the program.

However, the programming is locking up the PC; keypresses are ignored, interrupts are ignored (ctrl-c, ctrl-alt-delete, etc.), and I have to power the PC off and restart.

Can anybody provide advice on what may cause this problem, and how to correct it? The actual code that does the plotting hasn't changed since 1994. The only change I can identify is the new version of Windows NT which we are now using.

Are there any external settings in Windows NT 4 which we might use to eliminate this problem?

Any suggestions are appreciated.
 
Problem is the OS under QBasic is NOT DOS. And windows may behave differently than the original did. I would try tracing it, either by placing STOP at places to see if you get there, or I thinkg theres a QBasic debugger... But there is NOT a compile. To compile, you need QuickBasic (up to 4.5) or Microsoft Basic (up to 7.0?)

G'Luck
7ony
 
Well at work I have NT 4 and have not had a problem using QB 4.5 (nor the compiled EXEs).

The only suggestion I can think of right away is place a ON TIMER() function to point to a sub that simply says [red]END[/red] before the "return" statement.

I'll have a look-see when I get in tomorrow and see if there are any other options available--like creating a PIF/LNK and changing the "Sensitivity" property to LOW or something.

But in the meantime you may want to try out the above suggestion.

--MiggyD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top