Re: ORBit strings - a cry for help



Jose Ventura wrote:

> ok, people are probably gonna flame me for this, but I'm desperate,
> so here goes:
>
> I have a function in an IDL file that must return a string. The
> IDL file looks like this:
>
> interface bbs {
>         ...
>
>         string readMessage();
>
>         ...
> };
>
> When I run the server, everything runs fine. Functions wich
> return other values (short, etc) work fine. When the clien calls
> that function, though, it receives the message, but the server
> dies right away with an error:
>
> (in file allocators.c) (ORBit_free) assertion
> (block->magic == 0xdeadbeef)

How do you allocate the string? Try to CORBA_string_dup() the value
before you return it, maybe that helps. But it is difficult to say
what's wrong without any code fragment.

- Dietmar





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]