BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

exception handling gathering the IP address.

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++)
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Sun Jul 09, 2006 4:18 am    Post subject: exception handling gathering the IP address. Reply with quote



I am tyring to the following:

try {
do something that causes an exception
} catch (Exception &e)
{
i_strcpy(errstr, "");
TObject *ExceptObject = new TObject();
ExceptionErrorMessage(ExceptObject, ExceptAddr, errstr, 256);
sprintf(str, "exception from thread(%s):%s, Message=%s",
curr_thread->id_str.str, e.Message.c_str(), errstr);
}

e.Message.c_str() gives me the fact there was an access violation.
errstr gives me the fact there was an exception. But the ip address
reported in this string makes no sense.

I have tried just about every sysutils function I can think of an none
seem to give me a ip address.
How might I get this import address information.

Thanks,
David
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.