Getting Stack OverFlow Exception in read_mib

Sowmya P Venkatesh <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <3FBA1A58DACAC3478AEC243DD10BAF510F49D53246@IXCAEXCH07.ixiacom.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.