Copy link to clipboard
Copied
if you write these code in you program:
#include <boost/serialization/access.hpp>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/archive/binary_oarchive.hpp>
std::ifstream ifs("d:\\haha");
boost::archive::binary_iarchive ia(ifs);
plug-in can't be load;
is it a bug?
Hi,
I looked at your code and tried to debug your problem.
The problem is happenning because boost's serialization creates a static singleton instance. The static members are initialized at the time of dll attach, so before calling any function of the plugin, boost tries to allocate memory for the static instance.
You have included ASMemory.cpp which overrides the new operator, therefore this new operator is called at the time of static member construction.
However new fails to allocate memory since
...
Copy link to clipboard
Copied
Thank you very much!
I tried the first method, but when the illustrator is closed, the program crashes and error prompts appear.
I think the second method is not suitable for me, because I do not want to use the other dll
So, I think I do not use the boost serialization library
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more