Info: Creating spoolfiles under WIN2K hangs Natural

Hello all!

First of all my configuration:
Microsoft Windows 2000 [Version 5.00.2195]
Software AG Natural Studio, Version 6.1.1 Pl 14

Description:

  1. Redirect printer LPT1 to a file named “LPT1.txt”. This can be done via “Device/Report Assignments” in Natural Configuration Utility.
  2. Start Natural
  3. write a simple program which prints “Hello” on LPT1 and run it.
    Result: Natural hangs.

Explanation:
File- oder foldernames with the name LPT1., LPT2. etc are invalid under windows. For a quick test, simply try to create a folder by entering “mkdir lpt1”.

By the way: Natural hangs with workfiles, too…

define work file 12 'C:\lpt1.txt'
write work file 12 'test'
close work file 12
end

That’s been dealt with in SR 504436 in SL24:

NATURAL will hang until the operation times out (after 5 minutes ?) when trying to write to a “file” whose name contains one of the following reserved words:

CON, AUX, COM1, COM2, COM3, COM4, LPT1, LPT2, LPT3, PRN, NUL