Ask Your Question
1

DFAX compilation error: 'Unit not open'

asked 2023-01-30 23:57:54 -0500

QuinnP gravatar image

When creating a dfax using the PSSE API, the following output is written to console and a terminal is opened requesting input.

Processing the Subsystem Description Data File... Out of file data--switch to terminal input mode

The terminal does not go away regardless of input until I type in 'END', after which the process aborts and the following error message is written to the console:

Unit not open. C:\Users\username\Documents\filename.mon (OpnApplFil/OPNSEA)

What could be causing this error message?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2023-01-30 23:59:32 -0500

QuinnP gravatar image

After debugging I identified that the cause was a missing END statement in the last line of the sub file, ending the file as a whole rather than ending a subsystem definition block.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2023-01-30 23:57:54 -0500

Seen: 272 times

Last updated: Jan 30 '23