Re: libmng data-push mechanism(s)
"Gerard Juyn" <gjuyn-qWit8jRvyhVmR6Xm/[email protected]> Thu, 15 Apr 2004 17:52:45 +0200
| Newsgroups | gmane.comp.graphics.mng.general |
|---|---|
| Organization | Triple-T |
| Message-ID | <407ECBED.10448.9F31CCA@localhost> |
> INIT MNG > Have called InitMNG > Have called alloc > Have called alloc > Have called alloc > Have called gettickcount > Have called alloc > Have called read > Have called gettickcount > Push 235 Data to MNG > Have called alloc > Have called alloc > Push error 0 > > So it returns no error but also do not start with the Header analysing > ... do I've done something wrong? Maybe you can send me the code of your > test application. Are you still calling mng_readdisplay() ? pushdata() doesn't do anything. It just stores data. The normal processing should remain. The only difference with your old code is that you always return "0 bytes read" in the readdata() callback, and during "breaks" (eg. libmng has return MNG_NEEDTIMERWAIT or MNG_NEEDMOREDATA) you call mng_read_pushdata() to push the just received data into libmng. Are you also sure that the call to your gluecode that data has arrived is appearing in the same thread as the one that's called readdisplay() ? Gerard (ps. I can send you my test-code but that's all in Delphi pascal) -- Send the message body "help" to [email protected]