Cannot open more than one xBase program
Posted: Tue Sep 26, 2017 12:23 pm
Short history:
Converted Summer 87 Clipper to xBase++ 2.0. We are running these programs all over the company.
Problem:
On a very few computers, we are unable to run more than one xBase program at any one time. The issue revolves around a procedure common to ALL our programs called "setup.prg". Within setup.prg, we set the common settings, such as screen color, variables, and the print environment. It is the print environment that is hanging us. There is a command, at line 39 in setup.prg that states "set print to lpt1". We have this so that, throughout the programs we can "set device to print" and "set device to screen".
Out problem computers will launch one xBase program, but when attempting to launch a second xBase program (simultaneously), we get an operating system error on line 39 of the setup.prg. This is the same error we receive if we attempt to launch any xBase program in a computer with no parallel port, so we know the symptom, just not the solution.
It appears to me that the xBase program is obtaining an "exclusive lock" on LPT1, so that any subsequent program attempting to access LPT1 gets rejected.
Now for the climax.... We recently ordered two new computers from Dell - OptiPlex 5050 - Windows 7 64bit - with parallel ports. These are identical computers, ordered at the same time on the same order. The parallel cards are reported to be the same manufacturer, running the same drivers.
One computer can run multiple xBase programs, and the other cannot. We are at a total loss on what is causing this and how to fix it.
By the way, the other computers having this problem are Windows 7 64-bit, and Windows XP 32-bit.
Any solutions would be greatly appreciated.
Converted Summer 87 Clipper to xBase++ 2.0. We are running these programs all over the company.
Problem:
On a very few computers, we are unable to run more than one xBase program at any one time. The issue revolves around a procedure common to ALL our programs called "setup.prg". Within setup.prg, we set the common settings, such as screen color, variables, and the print environment. It is the print environment that is hanging us. There is a command, at line 39 in setup.prg that states "set print to lpt1". We have this so that, throughout the programs we can "set device to print" and "set device to screen".
Out problem computers will launch one xBase program, but when attempting to launch a second xBase program (simultaneously), we get an operating system error on line 39 of the setup.prg. This is the same error we receive if we attempt to launch any xBase program in a computer with no parallel port, so we know the symptom, just not the solution.
It appears to me that the xBase program is obtaining an "exclusive lock" on LPT1, so that any subsequent program attempting to access LPT1 gets rejected.
Now for the climax.... We recently ordered two new computers from Dell - OptiPlex 5050 - Windows 7 64bit - with parallel ports. These are identical computers, ordered at the same time on the same order. The parallel cards are reported to be the same manufacturer, running the same drivers.
One computer can run multiple xBase programs, and the other cannot. We are at a total loss on what is causing this and how to fix it.
By the way, the other computers having this problem are Windows 7 64-bit, and Windows XP 32-bit.
Any solutions would be greatly appreciated.