Possible Bug
Martin Gee
geeman@dimensional.com
Fri, 06 Mar 1998 10:25:56 -0600
Please read through and my problem will be described.
*** Here is the idl.
module node
{
struct Assoc
{
long number;
string description;
};
interface hello
{
Assoc getStruct(long number);
};
};
*** Here is the implementation
node::Assoc* hello_i::getStruct(CORBA::Long number CORBA_ENV_ARG)
{
cerr << "got the number:" << number << endl;
node::Assoc* an_assoc = new node::Assoc();
an_assoc->value = number;
an_assoc->desc = CORBA::string_dup("Hello World");
return an_assoc;
}
*** Here is the important client part
node::Assoc_var an_assoc = 0;
an_assoc = h->getStruct(15); <- core dumps on this call
****
The number 15 gets to the implementation and then the client core
dumps. Here is the dbx message...
t@1 (l@1) signal SEGV (no mapping at the fault address) in operator <<=
at line 155 in file "bufferedStream.h"
155 UMARSHAL(s,_CORBA_Long,omni::ALIGN_4,a);
Any ideas?? I'm doing something wrong?.
Thanks in advance for your help.
Martin Gee
1-913-339-9609.
mgee@sprintcorp.com