Re: media adds on

"Salvatore Benedetto" <[email protected]> Thu, 26 Jul 2007 18:17:36 +0200
Newsgroups gmane.os.openbeos.mediakit
Message-ID <[email protected]>
------=_Part_163482_3434438.1185466656859
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On 7/26/07, Axel D=F6rfler <[email protected]> wrote:
>
>
> Your add-ons are started within the add-on server, and therefore they
> share the same standard input/output channels.


Yes,  and I tried to kill and restart the media_addon_server, as I did with
the
media_server, but that makes it crash, and it won't start again.

IIRC PRINT will just dump to stdout - which might not help you, also
> you need to compile your add-ons with DEBUG=3D1 to see any output.


I don't know how to do that with jamfiles.

There
> are two things you could do to make your system more vocal, though:
> 1) use SERIAL_PRINT() for debug output instead (or _sPrintf() directly,
> as defined in os/support/Debug.h)
>
2) replace /dev/null with /dev/dprintf for redirecting output in the

> Bootscript


Good to know.

Anyway, I eventually decided to drop everything into a file, which seems to
work.

Anyway, I think, in the future, it would be a good idea to have a
media_server.log and
a media_addon_server.log placed under /var/log.

Thanks for your help
Salvo

------=_Part_163482_3434438.1185466656859
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<br><br><div><span class=3D"gmail_quote">On 7/26/07, <b class=3D"gmail_send=
ername">Axel D=F6rfler</b> &lt;<a href=3D"mailto:[email protected]">ax=
[email protected]</a>&gt; wrote:</span><blockquote class=3D"gmail_quote"=
 style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.=
8ex; padding-left: 1ex;">
<br>Your add-ons are started within the add-on server, and therefore they<b=
r>share the same standard input/output channels.</blockquote><div><br>Yes,&=
nbsp; and I tried to kill and restart the media_addon_server, as I did with=
 the
<br>media_server, but that makes it crash, and it won&#39;t start again.<br=
></div><br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px soli=
d rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">IIRC P=
RINT will just dump to stdout - which might not help you, also
<br>you need to compile your add-ons with DEBUG=3D1 to see any output.</blo=
ckquote><div><br>I don&#39;t know how to do that with jamfiles.<br></div><b=
r><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204=
, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
 There<br>are two things you could do to make your system more vocal, thoug=
h:<br>1) use SERIAL_PRINT() for debug output instead (or _sPrintf() directl=
y,<br>as defined in os/support/Debug.h)<br></blockquote>2) replace /dev/nul=
l with /dev/dprintf for redirecting output in the
<br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(2=
04, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Bootscript</b=
lockquote><div><br>Good to know.<br><br>Anyway, I eventually decided to dro=
p everything into a file, which seems to work.
<br><br>Anyway, I think, in the future, it would be a good idea to have a m=
edia_server.log and <br>a media_addon_server.log placed under /var/log.<br>=
</div><br><div>Thanks for your help<br>Salvo<br></div></div>

------=_Part_163482_3434438.1185466656859--