Re: Problem with mozilla
Glenn Randers-Pehrson <[email protected]> Thu, 08 Apr 2004 09:17:08 -0400
| Newsgroups | gmane.comp.graphics.mng.general |
|---|---|
| Message-ID | <[email protected]> |
At 06:56 PM 4/7/2004 +0200, you wrote:
>My Problem is following.
>
>I get called from Mozilla OnDataAvailable with a stream and a count of new
>data.
>
>Normally I should read ALL available data but it is (at the moment and I think
>will never change) ok to read parts from stream. But it is not ok to read
>nothing.
>
>I start the mng with mng_readdisplay() so it can also be displayed while
>loading the rest of file.
>
>If OnDataAvailable call me, I call mng_display_resume ... but sometimes it
>returns MNG_NEEDTIMERWAIT and do not read data and the OnDataAvailable breaks
>us, cause we hadn't readed data.
Maybe, in il_mng_timeout_func (in the "glue" code)
at the end
container->mErrorPending = PR_TRUE;
should be
container->mErrorPending = PR_TRUE;
else
container->mErrorPending = PR_FALSE;
Glenn
--
Send the message body "help" to [email protected]