conflict: name_attach() vs PtAppAddInput

Hi,

Will this be the right forum for reporting bugs? If so, I’ve got
one for you: trying to use both name_attach() and PtAppAddInput()
in our program causes trouble. Try the attached code, or see
my quics home directory (bugs/addapp/addapp.cpp)

How do we go about getting a fix for this?

Mike Royer
Tilcon Software Ltd.



begin 666 addapp.cpp
M+RH@9F%S=“YC(” @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @
M(" @(" @(" @(" @(" J+PHOB @(" @(" @(" @(" @(" @(" @(" @(" @
M(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(“HO"B\J
M(%1H:7,@9&5M;VYS=’)A=&5S(‘1H870@4’1!<’!!9&1);G!U=”@I(&1O97,@
M;F]T(’=O<FL@869T97(@8V%L;&EN9R!N86UE7V%T=&%C:"@I("HO"B\J
B*
M+RH@5&AI<R!W87,@8V]M<&EL960@=6YD97(@86QP:&$@=F5R<VEO;B!((“HO
M"B\J(”!C8R M=S,@+6]A9&0@+6QP:"!A9&0N8W!P(" )“0D@(” @B*+RH@
M(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @(" @
M(" @(" @(" @(" @(" @(" @(" J+PH
(VEN8VQU9&4@/&UE;2YH/@HC:6YC
M;‘5D92 \4’0N:#X*(VEN8VQU9&4@/’-Y<R]N975T<FEN;RYH/@HC:6YC;‘5D
M92 <WES+V1I<W!A=&-H+F@^"@II;G0@4D5#14E615]02"AV;VED("ID871A
M+’!I9%]T(’!I9"QV;VED(“IM<V<L=6YS:6=N960@:6YT(’-I>F4I"GL*“7)E
M='5R;B P.PI]”@IM86EN*”!I;G0@87)G8RP@8VAA<B J87)G=EM=(“D*>PH@
M(” @4&A!<F5A7W0@(" @(’=I;F1O=V%R96$@/2![(#4P+#@P+#(P,“P@,S P
M('T[“B @(”!0=$%R9U]T(” @("!A<F=;,3!=.PH@(" @4’17:61G971?=" @
MF)U='1O;BP@G=I;F1O=SL(" @(%!H07)E85]T(" @(&%R96$@/2![(#4P
M+" R-3 L(#@P+" T,"!].PH@(" @“B @(”!0=%-E=$%R9R@@)F%R9ULP72P@
M4’1?05)'7U=)3D1/5U]4251,12P@(D1R87<@0V]N=&5X="!386UP;&4B+" P
M(“D[“B @(”!0=%-E=$%R9R@@)F%R9ULQ72P@4’1?05)‘7T%214$L(“9W:6YD
M;W=A<F5A+” P(“D[“B @(”!0=%-E=$%R9R@@)F%R9ULR72P@4’1?05)'7T9)
M3$Q?0T],3U(L(%!G7T=205DL(# @3L(” @(’=I;F1O=R ](%!T07!P26YI
M=”@@3E5,3"P@)F%R9V,L(&%R9W8L(#,L(&%R9R I.PH
(" @(%!T4F5A;&EZ
M95=I9&=E="@@=VEN9&]W(“D[”@IN86UE7V%T=&%C:%]T(“IA='1A8V@[“B\J
MBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJ
M
BHJBHJBHJBHJBHJBH=6YC;VUM96YT('1H92!F:7)S=”!0=$%P<$%D
M9$EN<‘5T*"D@86YD(&ET(’=O<FMS(&)U=”!N86UE7V%T=&%C:"@I(&1O97,@
M;F]T"BHJBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJ
M
BHJBHJBHJBHJBHJBHJBHJB*+R]P<FEN=&8H(E!T07!P061D26YP
M=70@)61<;B(L"5!T07!P061D26YP=70H3E5,3"PP+%)%0T5)5D5?4$@L3E5,
M3"DI.PH):68@
“AA='1A8V@@/2!N86UE7V%T=&%C:“A.54Q,+” B;7EN86UE
M(BP@,“DI(#T]($Y53$PI"B @(” @(” @<F5T=7)N("TQ.PHOBHJBHJBHJ
M
BHJBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJ
MBHJBHJBHJ"G5N8V]M;65N="!T:&4@<V5C;VYD(%!T07!P061D26YP=70H
M
2!A;F0@:70@<F5T=7)N<R!.54Q,“BHJBHJBHJBHJBHJBHJBHJBHJ
M
BHJBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJBHJB*+R]P
M<FEN=&8H(E!T07!P061D26YP=70@)61<;B(L"5!T07!P061D26YP=70H3E5,
L3"PP+%)%0T5)5D5?4$@L3E5,3"DI.PH
(” @(%!T36%I;DQO;W H3L?0H
end

I should have added that this is important to us. We’ll need
this fixed - hopefully within a week or so - in order to do
some important demos. If that means e-mailing us a
module to alpha-test and use during those demos… great!

Mike Royer wrote in message <8s7p47$i7r$1@inn.qnx.com>…

Hi,

Will this be the right forum for reporting bugs? If so, I’ve got
one for you: trying to use both name_attach() and PtAppAddInput()
in our program causes trouble. Try the attached code, or see
my quics home directory (bugs/addapp/addapp.cpp)

How do we go about getting a fix for this?

Mike Royer
Tilcon Software Ltd.
\

Mike Royer <support@tilcon.com> wrote:

Will this be the right forum for reporting bugs? If so, I’ve got
one for you: trying to use both name_attach() and PtAppAddInput()
in our program causes trouble. Try the attached code, or see
my quics home directory (bugs/addapp/addapp.cpp)

The problem is that both name_attach() and PtAppAddInput() want to
create a channel with the _NTO_CHF_COID_DISCONNECT and
_NTO_CHF_DISCONNECT flags, and the second one to try it gets an EBUSY.

I can think of two possible workarounds: you can either let Photon use
the channel that name_attach() has created, or make your own channel
without the _NTO_CHF_COID_DISCONNECT and _NTO_CHF_DISCONNECT flags and
give that channel to Photon. Either way, you will need to call

PhChannelAttach( chid, -1, NULL )

before calling PtAppAddInput().


\

Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.

Thanks for the help… any chance you could give us a concrete
example, e.g. get the sample we posted to work ?

Wojtek Lerch wrote in message <8sfeia$d4t$1@nntp.qnx.com>…

Mike Royer <> support@tilcon.com> > wrote:

[snip]

I can think of two possible workarounds: you can either let Photon use
the channel that name_attach() has created, or make your own channel
without the _NTO_CHF_COID_DISCONNECT and _NTO_CHF_DISCONNECT flags and
give that channel to Photon. Either way, you will need to call

PhChannelAttach( chid, -1, NULL )

before calling PtAppAddInput().


\

Wojtek Lerch (> wojtek@qnx.com> ) QNX Software Systems Ltd.

Mike Royer <support@tilcon.com> wrote:

Thanks for the help… any chance you could give us a concrete
example, e.g. get the sample we posted to work ?

Just insert

PhChannelAttach( attach->chid, -1, NULL );

after the call to name_attach() but before the first call to
PtAppAddInput().

Wojtek Lerch wrote in message <8sfeia$d4t$> 1@nntp.qnx.com> >…
Mike Royer <> support@tilcon.com> > wrote:



[snip]

I can think of two possible workarounds: you can either let Photon use
the channel that name_attach() has created, or make your own channel
without the _NTO_CHF_COID_DISCONNECT and _NTO_CHF_DISCONNECT flags and
give that channel to Photon. Either way, you will need to call

PhChannelAttach( chid, -1, NULL )

before calling PtAppAddInput().


\

Wojtek Lerch (> wojtek@qnx.com> ) QNX Software Systems Ltd.


Wojtek Lerch (wojtek@qnx.com) QNX Software Systems Ltd.