Hi ,

I have a LoadMib function as
bool MibRegistry::LoadMib(String^ sFile)
    {
        Init();

        IntPtr pStr = Marshal::StringToHGlobalAnsi(sFile);
        int iErrors = get_mib_parse_error_count();

        void *ret = read_mib(static_cast<const char *>(pStr.ToPointer()));
        Marshal::FreeHGlobal(pStr);
        return (ret != NULL) && (iErrors == get_mib_parse_error_count());
    }

Sometimes, I get a Stack OverFlow Exception in the read_mib line.

Also I have a Deinit() method defined as

  void MibRegistry::Deinit()
    {
        shutdown_mib();
    }

Kindly suggest

Regards,
Sowmya
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to