Frank Fock
Frank.Fock____t-online.de
Mon Jul 16 18:53:05 CEST 2001
Hello Alex,
You have to allocate the array before you call get_vblist() and
delete the array if you do not need the vbs any more:
Vbx* vbs = new Vbx[count];
row.get_vblist(vbs, count);
// do something with vbs
delete[] vbs;
Hope this helps.
Best regards,
Frank
Alex Finogenov wrote:
> Hello again! :)
>
> Who owns the memory of Vbx elements placed inside the Vbx array in
> MibTableRow::get_vblist()? The array is owned by the client of the call, but
> what about the array elements? I assume that it's the caller's
> responsibility to dispose the elements, but what is the actual semantics of
> the call?
>
> Is there a general policy in agent++ and snmp++ regarding interfaces like
> this?
> Methods' comments unfortunately don't cover this important issue. I am
> trying to follow the source code, but it takes too much time to do it this
> way.
>
> Thanks,
> Alex
More information about the AGENTPP
mailing list