C7.1, NT5.PR5, WinEvent 3.65, SelfService 3.29, Win7 32bit.
When running my app as a service, code stops executing somewhere in the WebServer Init template generated code. This does not happen if I run the app from the desktop. I added lots of debug messages and the last entry I get is db.message('WebServer Init Priority 5000') just before the WebServer Init code. There are no embeds in that code so I can not narrow it down any more. Also notice that Clarion is up to Priority 8027 and then Nettalk adds Priority 5000. Below is just a snippet of the template init code.
! [Priority 8027]
! Generated by NetTalk Extension (Start)
! Start of "NetTalk Object Before Init Section"
! [Priority 5000]
db.message('WebServer Init Priority 5000')
! End of "NetTalk Object Before Init Section"
do CheckOmittedWeb
s_web &= ThisWebServer
ThisWebServer.SuppressErrorMsg = 1 ! No Object Generated Error Messages ! Generated by NetTalk Extension
ThisWebServer.init()
ThisWebServer.Port = INIMgr.TryFetch('WEB', 'Port')
ThisWebServer.Open()
Get(ThisWebServer._SitesQueue,1)
!---------------------------------
s_web._SitesQueue.Defaults.WebHandlerProcName = 'WebHandler'
s_web._SitesQueue.Defaults.DefaultPage = 'index.html'
s_web._SitesQueue.Defaults.SessionExpiryAfterHS = 90001
s_web._SitesQueue.Defaults.LoginPage = 'login.html'
s_web._SitesQueue.Defaults.LoginPageIsControl = 0
s_web._SitesQueue.Defaults.WebFolderPath = 'web'
If instring('\',s_web._SitesQueue.Defaults.WebFolderPath,1,1) = 0
s_web._SitesQueue.Defaults.WebFolderPath = clip(s_web._SitesQueue.defaults.appPath) & s_web._SitesQueue.Defaults.WebFolderPath
End
s_web._SitesQueue.Defaults.UploadsPath = clip(s_web._SitesQueue.Defaults.WebFolderPath) & '\uploads'
s_web._SitesQueue.Defaults.HtmlCharset = 'ISO-8859-1'
s_web._SitesQueue.Defaults.LocatePromptText = s_web.Translate('Locate')
s_web.MakeFolders()
s_web._SitesQueue.defaults.AllowAjax = 1
s_web._SitesQueue.defaults._CheckForParseHeader = 1 ! Check for Parse Header String