Where is the memory issue in my map?
<p>I was loading data from database and inserting it into a map. When I tried to print the map size and data, it still shows size 1 and only the last row prints. All previous data is overwritten and contains last value. Any pointer in this
issue. I have changed variable names because of a company issue.</p>

<p>I have done some check Point also. All key values are unique.</p>

<pre><code>typdef long_char char[38];

for(int j = 0; j &lt; 31; j++)
{
    sample_enum param_sub_type = result_set[j];
    long_char param_name;

    strncpy(param_name,result_set[j], sizeof(param_name));
    input_status_cd.insert(std::pair&lt;long_char,sample_enum&gt;(param_name, param_sub_type));      

    /*Insert Into Map */    &lt;I suspect this may be issue but not sure&gt;
}

/*Printing Size of map */
input_status_sd::size_type input_status_cd_size;
etlog_msg(intput_status_cd_size :] [%d]",intput_status_cd.size());
</code></pre>
