groendahl
groendahl•16mo ago

Simple Deno program on Windows quits after 20 seconds

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?
3 Replies
groendahl
groendahlOP•16mo ago
Is this maybe a Windows issue for this specific machine? Does Deno have option to log anything just before it "crashes" or quits?
pyrote
pyrote•16mo ago
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.
groendahl
groendahlOP•15mo ago
thanks i will try this 🙂