<html><head></head><body bgcolor="#FFFFFF" text="#000000" style="background-color: rgb(255, 255, 255); line-height: initial;">                                                                                      <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">From my observation while debugging, local variable inside procedure/functions usually contains garbage value (not initialized).</div>                                                                                                                                     <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><span style="font-family: Calibri, 'Slate Pro', sans-serif; font-size: initial; text-align: initial; line-height: initial;"><br></span></div>                                                                                                                                                                                  <table width="100%" style="background-color:white;border-spacing:0px;"> <tbody><tr><td colspan="2" style="font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);">                           <div style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans', 'Slate Pro'; font-size: 10pt;">  <div><b>From: </b>Jürgen Hestermann</div><div><b>Sent: </b>Monday, 9 March 2015 23:30</div><div><b>To: </b>FPC-Pascal users discussions</div><div><b>Reply To: </b>FPC-Pascal users discussions</div><div><b>Subject: </b>[fpc-pascal] Warning "Local variable seems to be not initialized" on dyn array</div></div></td></tr></tbody></table><div style="border-style: solid none none; border-top-color: rgb(186, 188, 209); border-top-width: 1pt; font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"></div><br><div id="_originalContent" style="background-color: rgb(255, 255, 255);">
  

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  
  
    I get a warning that a local dynamic array variable is not
    initialized.<br>
    Aren't such managed types initialized by default?<br>
    On <a class="moz-txt-link-freetext" href="http://wiki.freepascal.org/Dynamic_array">http://wiki.freepascal.org/Dynamic_array</a> it says:<br>
    <br>
    Actually, dynamic arrays are pointers with automatic dereferencing.
    They are initialized to <b>nil</b> automatically. <br>
    <br>
    So why the warning?<br>
  

<br><!--end of _originalContent --></div></body></html>