- 论坛徽章:
- 0
|
求救!!关于动态库调用问题高手请进~~
我看UNXI下man dlclose()最后一行说:
Once an object has been closed by dlclose( ), referencing symbols contained in that object can cause undefined behavior.
看AIX的资料也说:
Nevertheless, subsequent uses of Data are invalid, and further uses of symbols that were exported by the module being unloaded result in undefined behavior.
是不是dlclose()本身在使用时就会带来不确定的后果
有谁用过吗,请教啦
谢谢无双版主,我在UNIX下使用都正常移植到AIX就会有这个问题.传入参数应该没错是我用dlopen()打开的handle, 我也检查了动态库不存在内存泄漏的问题。
是这样的我在服务程序里调用一个交易调度的动态库,在交易调度的动态库里再根据交易码调相应的动态库,在这一级动态库调用时使用dlclose()服务程序被当掉了。
HELP ME~~  |
|