Re: "TCP/IP Preferences" files fill my FCB pool
Re: "TCP/IP Preferences" files fill my FCB pool
- Subject: Re: "TCP/IP Preferences" files fill my FCB pool
- From: Mike Kluev <email@hidden>
- Date: Wed, 06 Mar 2002 19:11:17 +0300
On 5/3/02 3:38, Quinn <email@hidden> wrote:
>
At 14:56 +0300 1/3/02, Mike Kluev wrote:
>
> When I drop into Macsbug and use "file" command I often see
>
> bunch of "TCP/IP Preferences" FCB entries (resource forks).
>
> Sometimes hundreds. As if some part of the system (OpenTransport?)
>
> opens them (on idle?) and never close. Is it known issue?
>
> Has it to do something that I am on dialup (not connected
>
> most of the time)? These files are opened on behalf of
>
> different applications (sometimes not internet related at all);
>
> if I quit some applications some entries removed. Mac OS 9.2.
>
>
Various folks open and close the "TCP/IP Preferences" file in order
>
...
>
You should be able to isolate this using MacsBug.
I hoped there was a "ready" answer :) OK, here it is:
100 It is called within 68K pascal code resource loaded into
system heap. Futher investigation shows that it is triggered
by a patch on SystemTask.
80 Shortly after it opens "TCP/IP Preferences" file this code
closes it, than it open it for the second time, but this time
it doesn't close it.
60 There is bug in the closing code - it saves the reference
into one variable and when it is time to close file it does
a wrong check on another variable, that is always 0.
40 It does this evil every 480 ticks = 8 seconds. It opens 'ccfg',
'iitf' resources from this file.
20 "wh PC" shows nothing other than this is locked block in the
system heap. The simplest way to find which extension is it was
to write a small program that scans all files in system folder
recursively for certain patterns like the above 'ccfg' and 'iitf'.
0 It turns out to be "Network Assistant Startup". Removig it
fixes the problem.
Nasty,
Yeah.
Kon, oops, Mike
_______________________________________________
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.