<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=990320919-01102001>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>I have a simple test
program that should run forever but</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>it stops functioning
correctly after about 20 iterations.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>What is the best way
to debug resource leaks? Do</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>the following gdb
commands still work correctly to display</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>available Workspace
and Heap memory?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=990320919-01102001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001> print
*(Heap_Block *)_Workspace_Area->first</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001> print
*((Region_Control
*)_Region_Information->local_table[1])->Memory->first</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=990320919-01102001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>The program is just
trying to bring up and down a ppp link</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>over a direct serial
cable. It works about 20 times and then</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>it can not
successfully bring up the IP layer. What things can</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>I look at to help
determine if the network stack has run out </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>of
memory?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=990320919-01102001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>I am using the
current snapshot. Any debugging hints/tips</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>would be greatly
appreciated.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=990320919-01102001></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=990320919-01102001>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=990320919-01102001>Mike
Siers</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=990320919-01102001></SPAN></FONT> </DIV></BODY></HTML>