<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Program is hanging intermittently in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/program-is-hanging-intermittently/m-p/2708126#M723544</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Msg and interval are integer variables.&lt;BR /&gt;&lt;BR /&gt;Thanx</description>
    <pubDate>Mon, 22 Apr 2002 17:12:46 GMT</pubDate>
    <dc:creator>Sup</dc:creator>
    <dc:date>2002-04-22T17:12:46Z</dc:date>
    <item>
      <title>Program is hanging intermittently</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/program-is-hanging-intermittently/m-p/2708124#M723542</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Program is hanging intermittently on HP11.&lt;BR /&gt;Gdb output is pasted bekow.&lt;BR /&gt;&lt;BR /&gt;(gdb) where&lt;BR /&gt;#0  0x1f5bb8 in mpy_float64 ()&lt;BR /&gt;#1  0xa6a3c in lxntrn ()&lt;BR /&gt;#2  0x85ed8 in upihmi ()&lt;BR /&gt;#3  0x1f5b98 in mpy_float64 ()&lt;BR /&gt;#4  0x30000 in check_Errors () at /utils/home/auto/Manager.c:1253&lt;BR /&gt;&lt;BR /&gt;The line 1253 is sprintf&lt;BR /&gt;&lt;BR /&gt;sprintf(Error,"%d in %d seconds.",Msg, interval );&lt;BR /&gt;&lt;BR /&gt;Thanx&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Mon, 22 Apr 2002 13:38:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/program-is-hanging-intermittently/m-p/2708124#M723542</guid>
      <dc:creator>Sup</dc:creator>
      <dc:date>2002-04-22T13:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Program is hanging intermittently</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/program-is-hanging-intermittently/m-p/2708125#M723543</link>
      <description>odd that it hangs in a function relating to floating point... Its a long time since I programmed in C, but aren't %d conversion characters for displaying integers rather than floating points? what type of variables are Msg and interval?&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 22 Apr 2002 14:08:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/program-is-hanging-intermittently/m-p/2708125#M723543</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2002-04-22T14:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Program is hanging intermittently</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/program-is-hanging-intermittently/m-p/2708126#M723544</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Msg and interval are integer variables.&lt;BR /&gt;&lt;BR /&gt;Thanx</description>
      <pubDate>Mon, 22 Apr 2002 17:12:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/program-is-hanging-intermittently/m-p/2708126#M723544</guid>
      <dc:creator>Sup</dc:creator>
      <dc:date>2002-04-22T17:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Program is hanging intermittently</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/program-is-hanging-intermittently/m-p/2708127#M723545</link>
      <description>I would check the type and length of the variable 'Error'. Another possible cause, is that error is *char and points to a variable that has gone out of scope or was not allocated with enough space. If you have a memory overwrite problem, the actual cause could be far from this line of code and all you are seeing is an artifact of the actual bad code.&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Apr 2002 19:14:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/program-is-hanging-intermittently/m-p/2708127#M723545</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-04-22T19:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Program is hanging intermittently</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/program-is-hanging-intermittently/m-p/2708128#M723546</link>
      <description>Hi,&lt;BR /&gt;1. Try printing out the value of strlen(Error), make sure it is at least 100 bytes.&lt;BR /&gt;2. Do a memset(Error, '\0' sizeof(Error)) before your sprintf to initialise it.&lt;BR /&gt;3. Does sprintf(Error, "%s", "This is a fixed string") work? If it does, then its probably an issue with the integer variables. In that case, try printing them one at a time to find out which is causing the problem.</description>
      <pubDate>Tue, 23 Apr 2002 05:59:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/program-is-hanging-intermittently/m-p/2708128#M723546</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-04-23T05:59:12Z</dc:date>
    </item>
  </channel>
</rss>

