Re: win32lib v0.57.4 released

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi,

I've found a bug in putStream, it was causing my app to crash or
output random bytes when streaming in RTF. It's probably what is
causing the problem Jordah's having as well...

In putStreamCallback you check if lRemaining is less than 1, if it is
then you return 0 (indicating success). The problem is that you don't
fill in pcb so windows sees whatever random value was in it before and
this causes problems. The fix is just to put a line which reads:

     poke4( pcb, 0 )

Just under the line which reads:

     if lRemaining < 1 then

Before the return statement.

Thomas Parslow (PatRat)
E-Mail/Jabber: tom at almostobsolete.net
ICQ: 26359483

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu