deno-windowing / dwm

Deno Window Manager: Cross-platform window creation and management
https://deno.land/x/dwm
Apache License 2.0
138 stars 10 forks source link

Program doesn't run when compiled with `--no-terminal` on Windows #33

Open steveRoll-git opened 5 months ago

steveRoll-git commented 5 months ago

I was bothered by the fact that when you compile a program with deno compile on Windows, the resulting executable opens with a cmd window behind dwm's window. After some searching, I found that a flag was added to compile the executable with the "GUI" subsystem that should prevent a cmd window from showing.

However, when running an executable compiled with this option, the program doesn't seem to run at all and exits with code 0.

sensiblearts commented 4 months ago

@steveRoll-git have you heard any answers for this?

I'm new to Deno and this is happening to me, too.

load1n9 commented 3 months ago

Seems to be an issue on Deno's end

PAStheLoD commented 2 months ago

It's very strange, because ... the program starts (as checked by SysInternals ProcessMonitor) ... and exits with status 101.

This is on Deno 1.45.2.

But not even the first line of the program seems to execute. (Not even a Deno.exit(2) works.)

image

load1n9 commented 2 months ago

with plain deno projects right?

PAStheLoD commented 2 months ago

Sorry, what does plain deno project mean?

cspotcode commented 23 hours ago

This is a deno issue, not dwm. You can prove this for yourself with these reproduction steps.

https://github.com/denoland/deno/issues/21091#issuecomment-2401082661