Thread View: comp.windows.misc
3 messages
3 total messages
Started by Bob Weissman
Thu, 17 Aug 1989 18:12
WIN device busy creating iconic SunView window
Author: Bob Weissman
Date: Thu, 17 Aug 1989 18:12
Date: Thu, 17 Aug 1989 18:12
29 lines
1493 bytes
1493 bytes
(I've already asked this in comp.sys.sun, but that group suffers such
delay that I can't wait any longer for my posting to appear...)
I'm writing a program which creates a window in SunView1 (on a 4/110
running SunOS 4.0.3, if that matters). Everything works fine, except that
if I start the window iconic with -Wi, I always get
WIN ioctl number 20006703: Device busy
and then the icon appears perfectly and everything is fine.
I've read all the documentation (over and over and over...) and can not
for the life of me figure out how to get rid of this message.
Appendix B of the SunView1 System Programmer's Guide hints that this
message is related to the WININSERT ioctl, since the last two digits of
the number in the error are 03. But I don't understand what this is
trying to tell me.
I've tried moving the command line argument parsing (using
FRAME_ARGC_PTR_ARGV) around to different places in the program, and
nothing works.
Please help! Thanks!
--
Bob Weissman
Domainish: bob@omni.com
UUCPish: ...!{amdahl,apple,pyramid,sgi,tekbspa,uunet}!koosh!bob
Re: WIN device busy creating iconic SunView window
Author: Bob Weissman
Date: Thu, 24 Aug 1989 23:30
Date: Thu, 24 Aug 1989 23:30
33 lines
1871 bytes
1871 bytes
In article <807@koosh.omni.com>, I wrote:
> I'm writing a program which creates a window in SunView1 (on a 4/110
> running SunOS 4.0.3, if that matters). Everything works fine, except that
> if I start the window iconic with -Wi, I always get
> WIN ioctl number 20006703: Device busy
> and then the icon appears perfectly and everything is fine.
>
> I've read all the documentation (over and over and over...) and can not
> for the life of me figure out how to get rid of this message.
I finally solved this problem by looking at other sources and applying
some trial and error.
It turns out that you must specify the FRAME_ARGC_PTR_ARGV parameter in
the initial call to window_create(). If you specify it in a subsequent
call to window_set(), you get the "device busy" message.
That's all there is to it. Just make sure that FRAME_ARGC_PTR_ARGV comes
after any defaults you set (e.g., WIN_WIDTH, WIN_HEIGHT) which the user
may want to override, and before any defaults which you do not want to let
the user override. This is one case where the ordering "set FRAME_*
attributes, then WIN_* attributes" does not apply.
This bug has been reported to Sun software support under the
service order number 352219.
--
Bob Weissman <bob@omni.com>
UUCP: ...!{amdahl,apple,pyramid,sgi,tekbspa,uunet}!koosh!bob
Hofstadter's Law: It always takes longer than you expect,
even when you take into account Hofstadter's Law.
Re: WIN device busy creating iconic SunView window
Author: Bob Weissman
Date: Fri, 25 Aug 1989 19:56
Date: Fri, 25 Aug 1989 19:56
25 lines
1703 bytes
1703 bytes
In article <839@borabora.omni.com>, I wrote:
<In article <807@koosh.omni.com>, I wrote:
<
<> I'm writing a program which creates a window in SunView1 (on a 4/110
<> running SunOS 4.0.3, if that matters). Everything works fine, except that
<> if I start the window iconic with -Wi, I always get
<> WIN ioctl number 20006703: Device busy
<> and then the icon appears perfectly and everything is fine.
<>
<> I've read all the documentation (over and over and over...) and can not
<> for the life of me figure out how to get rid of this message.
> It turns out that you must specify the FRAME_ARGC_PTR_ARGV parameter in
> the initial call to window_create(). If you specify it in a subsequent
> call to window_set(), you get the "device busy" message.
Sigh. This is documented on page 382 of the SunView1 Programmer's Guide.
If only window_set() was smart enough to complain about invalid arguments,
I would have fixed this in ten seconds...
--
Bob Weissman <bob@omni.com>
UUCP: ...!{amdahl,apple,pyramid,sgi,tekbspa,uunet}!koosh!bob
Hofstadter's Law: It always takes longer than you expect,
even when you take into account Hofstadter's Law.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads