D
Deno

help

Simple Deno program on Windows quits after 20 seconds

Jjonasgroendahl8/30/2023
Hi I have created a simple deno program and now compiled to an exe file for window using the command deno compile --allow-all --target x86_64-pc-windows-msvc ./index.ts. I've also compiled to mac and it runs just perfect. The program is like a setInterval that logs some info. However on Windows, the program boots up, it logs to the console just fine every second but quits without any notice after like 20 seconds. Any idea what this might be? Is this maybe a Windows issue for this specific machine? Does Deno have option to log anything just before it "crashes" or quits?
Ppyrote8/30/2023
I would check the Windows Event Viewer to see if anything was logged about your program. Then you could use Process Monitor https://learn.microsoft.com/en-us/sysinternals/downloads/procmon To watch your program and see if anything its doing is failing for some reason.
Process Monitor - Sysinternals
Monitor file system, Registry, process, thread and DLL activity in real-time.
Jjonasgroendahl8/30/2023
thanks i will try this 🙂

Looking for more? Join the community!