开发者

Hoard C++ Crash

开发者 https://www.devze.com 2023-02-14 21:03 出处:网络
We are trying to evaluate Hoard in our multithreaded application which runs both on Windows and Mac OSX ( Leopard, Snow Leopard).

We are trying to evaluate Hoard in our multithreaded application which runs both on Windows and Mac OSX ( Leopard, Snow Leopard).

We are using Boost, Curl, libJpeg and lo开发者_StackOverflow中文版g4cplusplus as 3rd party libraries. Now, we are linking all our modules with libhoard.dylib but leaving the 3rd party libraries to use system malloc.

Would that cause any conflicts ?

I tried using for the whole application by setting in info.plist DYLD_INSERT_LIBRARIES=libhoard.dylib ( presuming to be equivalent of LD_PRELOAD) but in malloc trace I dont see hoard being picked up.

Is there any other way to link it and use such that even 3rd party libs can use ? Please advice.

Thanks, Raja.


That could well cause problem in certain cases. If you allocating something on one heap and freeing it in another you're obviously in for some trouble. Without knowing more detailed information on the structure of your application it's hard to say much more than that.

0

精彩评论

暂无评论...
验证码 换一张
取 消