Skip to content

Question: embedding node in non-console application #1251

Closed
@Let0s

Description

@Let0s
  • Node.js Version: 8.x
  • OS: MS Windows 7
  • Scope (install, code, runtime, meta, other?): embedding

I try to embed node into non-console application. With console application it works fine. But with non-console application node doesn't evaluate script. debugger output writes next: internal/process/stdio.js:4433: Uncaught Unknown stream file type.
I think it is realted with tty_wrap.guessHandleType(fd) call in lib\internal\process\stdio.js file and GuessHandleType function in tty_wrap.cc file where t variable have UV_UNKNOWN_HANDLE value in my case. And it seems, that there is no any supported input/output in non-console application and node stops script execution.
I need an advice - maybe there is any way to change input/output to what i need or block it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions