Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Error 514: Device Not Currently Available using NetGetCon on LPT

Keywords:    netgetcon 514 LPT   512 

Question:

I'm having problems with NetGetCon. I'm getting the error message, "Error 514: Device Not Currently Available".
        RESOURCE=NetGetCon(DEVICE)
The DEVICE variable in turn queries LPT1, LPT2 and LPT3 (tried with colons appended, i e LPT1:, but WB didn't like that).

The code works on some machines and not others. All are running Windows 95. Any idea why?

Answer:

That error indicates that the device is not currently connected, but it is a persistent (remembered) connection. If you don't care, you can suppress it with ErrorMode(@OFF) just around the wntgetcon, w95getcon, or netgetcon functions.

If you get the 512, "512: Device not currently connected" error message, the same situation as above probably exists.


Article ID:   W13532
Filename:   Error 514 - 512 with ...GetCon.txt