最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - opensplice dds idl problem with struct definition and namespace - Stack Overflow

programmeradmin0浏览0评论

I've encountered several problems while implementing OpenSplice DDS in my JAVA APP.

Explainations : The idl file i'm using between my apps is joined to this post IDL

While implementing the message Man in my DDS Publisher App, just after the FooDataWriterImpl call for the static native method jniWrite ()

public native static int jniWrite (         long uWriter,         long copyCache,         Object instance_data,         long handle,         DDS.Time_t source_timestamp);

My application just crash and throw into the console : free(): invalid pointer and sometimes with intelliJ debugger enabled : malloc() :corrupted top size.

I suspect that my modules FirstPayload and SecondPayload have the same named struct inside and this is why my problem appears.

To resolve that, i've just put only one module with both struct inside but named differently.

It works. But i would like to know why, using the same struct name in different modules can cause this problem. And if it's really the problem i'm facing.

发布评论

评论列表(0)

  1. 暂无评论