Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GS/OS disk insert notifications

45 views
Skip to first unread message

Sheppy

unread,
Apr 19, 2013, 11:30:24 PM4/19/13
to
Anyone know why in some apps, my code doesn't get GS/OS "disk inserted"
notification proc calls until after a desk accessory accesses the disk?

I tried adding a NullGS call, thinking that might flush the queues or
something, but no go.

--

Eric Shepherd (Sheppy)
http://www.sheppyware.net

Ewen

unread,
Apr 20, 2013, 3:30:34 AM4/20/13
to
Sheppy,

> Anyone know why in some apps, my code doesn't get GS/OS "disk inserted"
> notification proc calls until after a desk accessory accesses the disk?
>
> I tried adding a NullGS call, thinking that might flush the queues or
> something, but no go.

My immediate guess is that a rogue DA is swallowing the calls before
they get to you. Try a process of elimination, or trace with Richard's
IPC Spy?

Cheers - Ewen

Sheppy

unread,
Apr 20, 2013, 4:35:49 PM4/20/13
to
On 2013-04-20 07:30:34 +0000, Ewen said:

> My immediate guess is that a rogue DA is swallowing the calls before
> they get to you. Try a process of elimination, or trace with Richard's
> IPC Spy?

That's a thought. It's odd though that it only happens in a few apps;
AWGS and DreamGrafix for example. Other apps, the disk insertion events
come through as expected: 3DLogo, Finder, others.

Sheppy

unread,
Apr 21, 2013, 1:57:12 PM4/21/13
to
On 2013-04-20 07:30:34 +0000, Ewen said:

> My immediate guess is that a rogue DA is swallowing the calls before
> they get to you. Try a process of elimination, or trace with Richard's
> IPC Spy?

So... adding a call to my code to periodically do a HandleDiskInsert
call seems to clear it up. Looks like the disk insertion GS/OS
notification proc is only called when that's done or so. Anyway, my
particular problem seems to be resolved.

Ewen

unread,
Apr 22, 2013, 2:43:36 AM4/22/13
to
Sheppy,

> So... adding a call to my code to periodically do a HandleDiskInsert
> call seems to clear it up. Looks like the disk insertion GS/OS
> notification proc is only called when that's done or so. Anyway, my
> particular problem seems to be resolved.

I usally make the call within the main Taskmaster loop, and handle
accordingly. That seems to be fairly relaible.

Cheers - Ewen

Sheppy

unread,
Apr 22, 2013, 2:35:30 PM4/22/13
to
On 2013-04-22 06:43:36 +0000, Ewen said:

> I usally make the call within the main Taskmaster loop, and handle
> accordingly. That seems to be fairly relaible.

Yeah, except my code isn't an app. It's... something different. :)
0 new messages