Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#24 Error instancing UInteger32

closed-fixed
milans
None
5
2010-09-08
2010-09-08
Daniel Kling
No

When setting the value using the constructor for a new instance of UInteger32, the internal type variable is not set. This means the value can not be decoded correctly.

As it is now:

public UInteger32()
{
_asnType = SnmpConstants.SMI_UNSIGNED32;
}

public UInteger32(UInt32 val)
{
_value = val;
}

As it should be:
public UInteger32(UInt32 val) : this()
{
_value = val;
}

Discussion

  • Daniel Kling
    Daniel Kling
    2010-09-08

    Actually, this fix didn't solve the problem completely. I had to change all my datatypes from UInteger32 to Counter32 instead. The application now runs without crashing.

     
  • milans
    milans
    2010-09-08

    • assigned_to: nobody --> msinadinovic
    • status: open --> closed-fixed
     
  • milans
    milans
    2010-09-08

    Fixed in version 0.7.9.

    Thanks for the report.