lextudio / sharpsnmplib

Sharp SNMP Library- Open Source SNMP for .NET
https://sharpsnmp.com
MIT License
356 stars 152 forks source link

SNMPEngine call to MessageBox.Show #234

Closed lextudio-support closed 3 hours ago

lextudio-support commented 3 hours ago

I'm hosting the SnmpEngine class within a Windows service to allow the service to be an SNMP Agent.

Within the SnmpEngine class there is an event handler for Listener Exceptions which makes a call to a private method that uses the MessageBox class; when this is invoked it causes a Windows service to crash.

Would it be possible to replace the call to MessageBox with a call to an ILogger implementation?

Original Reported Date: 2010-10-21T02:26:08.93-07:00 Planned For Release: HoneyCell (6.0) Original CodePlex ID: 7211

lextudio-support commented 3 hours ago

Copied from CodePlex without authors:

It is now fixed in http://sharpsnmplib.codeplex.com/SourceControl/changeset/changes/df45d1881019.

SnmpEngine now has an ExceptionRaised event.

Original Posted Date: 2010-10-21T05:53:51.983-07:00

lextudio-support commented 3 hours ago

Copied from CodePlex without authors:

This fix is first included in 6.0 release.

Original Posted Date: 2010-11-05T18:42:53.113-07:00

lextudio-support commented 3 hours ago

Original Closed Date: 2010-11-05T18:44:09.037-07:00