
10 Jun
2002
10 Jun
'02
11:17 a.m.
Hi!
Yogeshwara> I am presently using libsmi-0.3.1 on Windows NT. I have Yogeshwara> the following code which is resulting in a Segmentation Yogeshwara> fault.
Yogeshwara> smiSetPath("E:\Test"); // In Test folder only SNMPv2-MIB, Yogeshwara> SNMPv2-CONF and SNMPv2-TC files is present.
Yogeshwara> strModuleResult = smiLoadModule("SNMPv2-MIB"); Yogeshwara> strModuleResult = smiLoadModule("SNMPv2-SMI");
Yogeshwara> Kindly advise me on how I can get over this problem.
You probably did not call smiInit() first (as the man page says). However, I've add a missing implicit initialization of the library in smiSetPath(), so that this should no longer happen. Please grab the fixed code from the anonymous CVS repository.
Thanks,
-frank