• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Exception in Mapper?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Exception in Mapper?


  • Subject: Exception in Mapper?
  • From: "Schaffernoth, Tom" <email@hidden>
  • Date: Mon, 23 Jun 2003 09:12:10 -0700

Hey Folks,

We have released an application for the Mac OS 9.x and 10.x that implements
networking using Open Transport (OT). Below you can see code that we have
developed for mapping host name to IP. Every once and a while we will get a
report that this code generates an exception on some Mac OS 10.x boxes.
Anyone have any idea why?

We have pounded the code in our QA department, and have not been able to
reproduce the problem that is in the field.

ExportFunc uint32 AGNetGetHostAddr(AGNetCtx */*ctx*/, char *inName)
{
try
{
LInternetMapper* mapper =
UNetworkFactory::CreateInternetMapper();
LStr255 nameStr(inName);
UInt32 addr = mapper->NameToAddress(nameStr);

delete mapper;

return addr;
}

catch (...)
{
::LogAddEntry( "AGNetGetHostAddr:: Exception in getting the
host address" , slWarning, true) ;
return 0;
}
}

Thanks for any/all help.

Tom Schaffernoth

Software Engineer, ePocrates, Inc. 1800 Gateway Drive, San Mateo, CA 94404
ePocrates - The handheld network for physicians. email: email@hidden
http://www.epocrates.com
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: DTS room at WWDC 2003
  • Next by Date: RE: Proxy Server Authentication
  • Previous by thread: Re: DTS room at WWDC 2003
  • Next by thread: Re: Exception in Mapper?
  • Index(es):
    • Date
    • Thread