Lukas;

Well for any classes to do things such as using windows resources such as
sockets I do add code to the class that will return and indication of
success or failure. For example; if a class provides window's networking
functionality then the class will would return the result of the call to
WSAStartup() so the user of the call know if it worked. I am not proficient
in pascal so sorting through all the support classes of TSNMPSend to see
what TSNMPSend does has proven difficult. I guess I could clarify my
question by asking the following.

Upon creating a new TSNMPSend object instance, what will happen if:

Call to WSAStartup() fails
The call to create the socket via Win32 socket() fails.

And what is the best way to handle these types of cases?


Thanks again.

Jeff


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lukas
Gebauer
Sent: Wednesday, February 14, 2007 12:15 PM
To: Ararat Synapse
Subject: Re: [Synalist] TSNMP Object creation

> How can I check to see if the creating of an instance of TSNMPSent object
> was successful?  I need a way during my applications startup and
> initialization to see if the SNMPSend based object that I try to create
> was created successfully.

Did you are testing successful creation of instances of other classes 
too?

There is nothing to fail, except standard exceptions, what can be raised 
by any other classes too.

--
Lukas Gebauer.

E-mail: [EMAIL PROTECTED]
WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP 
Library



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to