Reader-enabled plugin unloading when an external library is used
Hello,
I am developing a plugin for Adobe Reader which has to interact with an external web service.
To interact with this web service, I'd like to use the C++ REST SDK, hence I have to include its library in my plugin.
As soon as I add a source file using any C++ REST SDK object in my plugin, it will compile, load in Adobe Reader and unload as soon as it starts.
If I just include the library in the source file, it runs normally. I tested my source file in another project and it works well.
The only clue I get about this unloading is the following lines in the output of Adobe Reader (debugged in Visual Studio):
'AcroRd32.exe' (Win32): Loaded 'C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\plug_ins\MyPlugin.api'. Symbols loaded.
'AcroRd32.exe' (Win32): Unloaded 'C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\plug_ins\MyPlugin.api'
Exception thrown at 0x7795A9F2 in AcroRd32.exe: Microsoft C++ exception: _ASExceptionInfo at memory location 0x005FD664.
My plugin is successfully signed for Adobe Reader (I have a RIKLA key), it's based on the BasicPlugin sample, and I checked that the C++ Rest SDK is correctly included in the MyPlugin.api file.
I also haven't found any information about such an "AsExceptionInfo" anywhere.
Do you have any idea about how I could solve this problem?
Thanks in advance for you answers.
