[omniORB] CORBA::String_member
Clarke Brunt
clarke.brunt at trafficmaster.co.uk
Thu Oct 25 11:15:30 BST 2007
omniorb-list-bounces at omniorb-support.com wrote:
> I'm using OmniOrb 4.1.0 on Windows. I'm sending structs as messages. I
> have a problem with a client that reports catching an exception,
> CORBA::UNKNOWN after sending about 4 messages. I think it's actually
> the server that's gone wonky, because restarting the client produces
> the error immediately.
>
>> From playing around, it seems to be having structs with
> CORBA::String_member members. In the IDL, I changed all the strings
> to char arrays, like so:
>
> struct JobSubmissionRequest
> {
> // string appID;
> char appID[16];
> TransIDType transID;
> unsigned short jobID;
> FileType file;
> DestType dest;
> };
>
> I was able to send messages repeatedly. Even if I don't set
> the strings
> to any value, it still shows the error.
>
> Any ideas?
Well the inevitable suspicion is that you're not handling
memory-allocation for the string correctly - perhaps it's being freed
twice on server-side (once by you, and once by the ORB), or perhaps
you're not creating it in such a way that the ORB is able to free it
correctly.
I think we could do with seeing your server code which creates struct
and string and returns it, and the IDL for the method of interest.
Clarke Brunt
TRAFFICMASTER PLC
UNIT 22 / ST. JOHN'S INNOVATION CENTRE
COWLEY ROAD / CAMBRIDGE / CB4 0WS
T: 01223 422469
F:
E: clarke.brunt at trafficmaster.co.uk
Please consider the environment before printing this email. --------------------------------------------------------
Trafficmaster PLC is a limited Company registered in England and Wales.
Registered number: 2292714 Registered office: Martell House, University Way, Cranfield, BEDS. MK43 0TR
This message (and any associated files) is intended only for the use of omniorb-list at omniorb-support.com and may contain information that is confidential, subject to copyright or constitutes a trade secret. If you are not omniorb-list at omniorb-support.com you are hereby notified that any dissemination, copying or distribution of this message, or files associated with this message, is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message and deleting it from your computer. Any views or opinions presented are solely those of the author clarke.brunt at trafficmaster.co.uk and do not necessarily represent those of the company.
Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
--------------------------------------------------------
More information about the omniORB-list
mailing list