<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>[WD27] 64 bit Service hangs randomly</title>
        <description> Hi,

I have build a 64 bit service at a windows server 2012 r2. 

Most of the time it does nothing. It runs every 10 seconds and check some values.

Unfortunately it hangs after 1 or 2 days. A restart of the service fails, I have to kill the process before.

I tried everythink without luck. And I have no idea how to debug the issue.

Any ideas ?</description>
        <link>https://www.wxforum.info/read.php?27131,797155,797155#msg-797155</link>
        <lastBuildDate>Wed, 20 May 2026 12:24:00 +0200</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,797155,797209#msg-797209</guid>
            <title>Re: [WD27] 64 bit Service hangs randomly</title>
            <link>https://www.wxforum.info/read.php?27131,797155,797209#msg-797209</link>
            <description><![CDATA[ OK, I solved it. In one of my functions I  used Error() , I Looks Like the Service stops then.]]></description>
            <dc:creator>Michael Drechsel</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Wed, 17 May 2023 11:24:56 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,797155,797207#msg-797207</guid>
            <title>Re: [WD27] 64 bit Service hangs randomly</title>
            <link>https://www.wxforum.info/read.php?27131,797155,797207#msg-797207</link>
            <description><![CDATA[ I had something similar and even though I made sure I cleaned up memory it would still hang after a while.  So I put in code to let it shutdown after 12 hours and configured the scheduler to restart it soon after that.<br />
<br />
Since then, for anything that has to be run at 5-minute intervals or more, I use the scheduler.  Your case can be a combination.<br />
<br />
issah]]></description>
            <dc:creator>mixgh</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Tue, 16 May 2023 14:49:05 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,797155,797181#msg-797181</guid>
            <title>Re: [WD27] 64 bit Service hangs randomly</title>
            <link>https://www.wxforum.info/read.php?27131,797155,797181#msg-797181</link>
            <description><![CDATA[ HI Guenther,<br />
<br />
its a virtual machine in a cluster of 3 hosts, with all UPS and so on.]]></description>
            <dc:creator>Michael Drechsel</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Mon, 08 May 2023 14:00:42 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,797155,797179#msg-797179</guid>
            <title>Re: [WD27] 64 bit Service hangs randomly</title>
            <link>https://www.wxforum.info/read.php?27131,797155,797179#msg-797179</link>
            <description><![CDATA[ Hi Michael, random errors out of nowhere, just my ... lots of our customers are bakeries and they have big refrigerators for their goods, air conditioners, deep freezers and so on. Whenever such a machine starts, it sends a short series of spikes into the mains and into their computers. I don&#039;t leave house anymore for those rather frequent complaints, I just recommend buying a UPS (= USV) for connecting the computer.  Regularily, those errors are gone with this cure.]]></description>
            <dc:creator>gpredl</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Mon, 08 May 2023 06:49:59 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,797155,797178#msg-797178</guid>
            <title>Re: [WD27] 64 bit Service hangs randomly</title>
            <link>https://www.wxforum.info/read.php?27131,797155,797178#msg-797178</link>
            <description><![CDATA[ Hi AI,<br />
<br />
hCloseconnection I already used and I put HClose() in the code.<br />
<br />
PLz cross the fingers that it works.<br />
<br />
thx]]></description>
            <dc:creator>Michael Drechsel</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Sun, 07 May 2023 22:47:45 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,797155,797176#msg-797176</guid>
            <title>Re: [WD27] 64 bit Service hangs randomly</title>
            <link>https://www.wxforum.info/read.php?27131,797155,797176#msg-797176</link>
            <description><![CDATA[ Hello Michael,<br />
<br />
Is it time to try crazy options like a periodic HClose(myfile)   and/or  HCloseConnection()  and then re-open the file or connection.<br />
The refresh may work or if they fail, you might get an actual error message.<br />
<br />
Regards<br />
Al]]></description>
            <dc:creator>Al</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Sun, 07 May 2023 17:14:57 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,797155,797175#msg-797175</guid>
            <title>Re: [WD27] 64 bit Service hangs randomly</title>
            <link>https://www.wxforum.info/read.php?27131,797155,797175#msg-797175</link>
            <description><![CDATA[ marcov Wrote:<br />
-------------------------------------------------------<br />
<br />
&gt; works seamlessly with an attached database?<br />
<br />
Yes. <br />
<br />
It´s a funfact. I have another service (also WD27) running at the same machine which works perfect without any issues 24*7.<br />
<br />
I don´t know what the problem is. <br />
<br />
Meanwhile I found out (with my little logfile) that it hangs (when it hangs) always at the same point, after a <br />
<br />
hreadfirst (myfile).<br />
<br />
It runs 2 days and then ***bang**** it crashes. Memory consumption ~1,2 MB. No errors, no execeptions.]]></description>
            <dc:creator>Michael Drechsel</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Sun, 07 May 2023 16:48:51 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,797155,797172#msg-797172</guid>
            <title>Re: [WD27] 64 bit Service hangs randomly</title>
            <link>https://www.wxforum.info/read.php?27131,797155,797172#msg-797172</link>
            <description><![CDATA[ Hi marcov,<br />
<br />
did you inform PC Soft Free Tech Support? If so, what did they say?]]></description>
            <dc:creator>gpredl</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Fri, 05 May 2023 10:56:50 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,797155,797171#msg-797171</guid>
            <title>Re: [WD27] 64 bit Service hangs randomly</title>
            <link>https://www.wxforum.info/read.php?27131,797155,797171#msg-797171</link>
            <description><![CDATA[ hi,<br />
<br />
i&#039;ve been struggling for weeks with a similar problem, WD26/27/28 seems to lose connection to mysql after 1-2 days of service work, i had to add everywhere on error EndService(esFailure)<br />
so the service can be restarted automatically using the windows features.<br />
Does anyone have experience with a service that works seamlessly with an attached database?]]></description>
            <dc:creator>marcov</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Fri, 05 May 2023 10:27:55 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,797155,797160#msg-797160</guid>
            <title>Re: [WD27] 64 bit Service hangs randomly</title>
            <link>https://www.wxforum.info/read.php?27131,797155,797160#msg-797160</link>
            <description><![CDATA[ Hi Guenter,<br />
<br />
its WD27, no memory leak.]]></description>
            <dc:creator>Michael Drechsel</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Tue, 02 May 2023 16:48:42 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,797155,797159#msg-797159</guid>
            <title>Re: [WD27] 64 bit Service hangs randomly</title>
            <link>https://www.wxforum.info/read.php?27131,797155,797159#msg-797159</link>
            <description><![CDATA[ JP Wrote:<br />
-------------------------------------------------------<br />
&gt; If possible could you write a simple log file<br />
&gt; (text file) of the key steps in the service<br />
&gt; program. At each key step, update the log with the<br />
&gt; step name, date, and time. And possibly other info<br />
&gt; like memory etc. This will then show you exactly<br />
&gt; where the service is hanging up, i.e. what the<br />
&gt; last thing it could do was done. I use logs that<br />
&gt; write both the before-action-entry and an<br />
&gt; after-action entry so I can be sure which action<br />
&gt; was started but not completed.<br />
<br />
Yes, that was indeed my next idea. I found a way to activate a logging without change the program:<br />
<br />
I found this in the help:<br />
<br />
Activation without modifying the application, via a specific fileTo do so, create a file named &lt;Executable Name&gt;.WX beside the executable of the application. This file must contain the following lines:<br />
<br />
[LOG]<br />
Active=&lt;0/1&gt;<br />
File=&lt;Name of the log file&gt;<br />
Option=&lt;Value of options&gt;<br />
<br />
<br />
Has anybody experience with that ? I can´t get it to work, no file has created.]]></description>
            <dc:creator>Michael Drechsel</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Tue, 02 May 2023 16:47:56 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,797155,797158#msg-797158</guid>
            <title>Re: [WD27] 64 bit Service hangs randomly</title>
            <link>https://www.wxforum.info/read.php?27131,797155,797158#msg-797158</link>
            <description><![CDATA[ If possible could you write a simple log file (text file) of the key steps in the service program. At each key step, update the log with the step name, date, and time. And possibly other info like memory etc. This will then show you exactly where the service is hanging up, i.e. what the last thing it could do was done. I use logs that write both the before-action-entry and an after-action entry so I can be sure which action was started but not completed.]]></description>
            <dc:creator>JP</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Tue, 02 May 2023 16:14:19 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,797155,797157#msg-797157</guid>
            <title>Re: [WD27] 64 bit Service hangs randomly</title>
            <link>https://www.wxforum.info/read.php?27131,797155,797157#msg-797157</link>
            <description><![CDATA[ Hi Michael,<br />
<br />
is it a memory leak?? Which version of WINDEV?]]></description>
            <dc:creator>gpredl</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Tue, 02 May 2023 16:05:19 +0200</pubDate>
        </item>
        <item>
            <guid>https://www.wxforum.info/read.php?27131,797155,797155#msg-797155</guid>
            <title>[WD27] 64 bit Service hangs randomly</title>
            <link>https://www.wxforum.info/read.php?27131,797155,797155#msg-797155</link>
            <description><![CDATA[ Hi,<br />
<br />
I have build a 64 bit service at a windows server 2012 r2. <br />
<br />
Most of the time it does nothing. It runs every 10 seconds and check some values.<br />
<br />
Unfortunately it hangs after 1 or 2 days. A restart of the service fails, I have to kill the process before.<br />
<br />
I tried everythink without luck. And I have no idea how to debug the issue.<br />
<br />
Any ideas ?]]></description>
            <dc:creator>Michael Drechsel</dc:creator>
            <category>WinDev Forum</category>
            <pubDate>Tue, 02 May 2023 13:29:06 +0200</pubDate>
        </item>
    </channel>
</rss>
