I have some questions about using cx_freeze to create a python windows
service. Since there is literally 0 documentation about this, I had to look
at the source for a lot of things, but I still have some questions. I am
running python3 64 bit if it helps.

1: What is the lifecycle of the windows service? Obviously the first things
that get called are Initialize() and Run(), but what happens after that? I
know Run() keeps going, but mainly, what should be the last method to
return? Should Run() exit before Stop()? Its unclear from Win32Service.c
what is supposed to exit first.

2: Is there any way to get the 'generated source' for the exe? I'm having
problems with my program and it seems to only happen when its compiled as
an exe, (getting a WinError: Invalid Handle with a bogus stack trace) so
i'm thinking its something in the C part of the exe, but I can't really
debug it as I don't have the source to have visual studio step through /
set breakpoints. Or should I make a separate message about this problem?

~Mark Grandi
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to