realbasic-nug
[Top] [All Lists]

Re: Sockets in Carbon

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Sockets in Carbon
From: Lou Forlini <lforlini at sspi-software dot com>
Date: Wed, 30 Jan 2002 23:29:30 -0500
At 8:10 PM -0500 1/30/02, Charles Yeomans wrote:
I just underwent a curious episode in which using sockets caused RB
4 Carbon to crash repeatedly, but not RB 4 Classic.  We were having
a problem with our router which caused it to slow to a crawl,
causing lots of DNS timeouts (and generally mucking things up).  So,
the socket was unable to resolve an address to an IP number.  This
appears to have left something in a terribly unstable state, as the
second time I would run my app in the IDE, it would crash -- not
immediately, but soon after startup.  The common thread, so to
speak, among most crashes looked like
[snip]

I think you're onto something when you mention DNS problems. I've noticed on a lot of my Unexpected Quits of built apps that the console will show:

   DNSAgent: dns_send_query_server - timeout

   right before the log entry for the crash.

I'm definitely going to try James's suggestions to prevent multiple closes on the same socket, I'm sure that I'm doing that on some of my error conditions.

   Regards,

   - Lou Forlini
     Software Engineer
     System Support Products, Inc.


<Prev in Thread] Current Thread [Next in Thread>