type_code problem on included idl class

2 posts / 0 new
Last post
Offline
Last seen: 8 years 10 months ago
Joined: 08/17/2011
Posts: 7
type_code problem on included idl class

Hello,

I have an problem with type_code on "included idl class"(explained with example below).

type_code.member_count() gives exception Null Pointer when "included idl class" try to subscribe .

 

the included idl class like that

 

include "other.idl"

..

struct mystruct {

otherNameSpace::memberofOther name;

.

.

.

};

 

my aplication reads all published topics when it comes an publication of included idl , statement publicationBuinltinTopicData.type_code.MemberCount() gives null pointer exception

 

do you have an idea what is thats the problem. or any suggestion ?

Best Regards

              Oruc

Organization:
Offline
Last seen: 8 years 9 months ago
Joined: 05/17/2011
Posts: 3

Hi Oruc,

 

may I ask whether you use the -ppDisable option when you generate your code? This disables the preprocessor and the include directive does not get processed in this case.

 

Thanks,

 

Bettina