[interfacekit] BMessage & RosterShell

I fixed a couple of bugs and refactored a few things and running list 
with RosterShell is now working. =)  The first couple of BApplication 
tests even run now.

e

>On 2003-08-26 at 18:38:04 [+0200], Erik Jaesler wrote:
>> Yeah, that sounds like exactly the thing.  I monkeyed about some last
>> night with my messaging test to have the second looper reply to the
>> first and it just sat there.  Clearly I have some debugging to do. ;)
>
>I tried a bit more to get the RosterShell running again and fixed a few 

>warnings (I think, I'll enable warnings in the build by default), one 
or two 
>revealing actual bugs -- I hope you don't mind. The RosterShell still 
isn't 
>working, but I rather stopped here, before getting in your way.
>
>The problem I ran into is that in BMessage::Unflatten() the dataLen 
read from 
>the flattened message seems to be invalid, which causes the memory 
allocation 
>to fail and a B_NO_MEMORY to be thrown (it probably shouldn't be thrown 
but 
>just returned (the same in two other places in Unflatten()) -- I left 
it that 
>way, since it is excellent for debugging :-).
>
>If you want to reproduce it, you can run the RosterShell (in 
>test/servers/registrar; after the registrar) and type `l[ist]'. It will 
choke 
>on Unflatten()ing the reply message from the registrar, when a 
>BRoster::GetRunningAppInfo() is invoked (size is > 255).
>
>Have fun debugging. :-P
>
>CU, Ingo


Necessity is the plea for every infringement of human freedom. It is the 
argument of tyrants; it is the creed of slaves.
        -William Pitt, British prime-minister (1759-1806)


Other related posts: