Cannot debug Sample Plug-in - Exception thrown: read access violation
Hi,
I'm trying to debug the sample HelloWorld plug-in as explained under the "Create a Windows Plug-in" section the "Getting Started Guide". I successfully built the plug-in using the x86 configuration and copied it over to the Adobe Plug-ins folder. Now, when I run Debug, I get a Read Access Violation error. Below is a step-wise illustration:
- The if statement at line 21 initially gives back false, probably since kSPInterfaceCaller is undefined or empty.
- The end if is reached and gives the above message: "Illustrator.pdb not loaded".
- The if condition executes once more and this time returns true. However, the sAIUnicodeString variable still holds NULL, perhaps because sSPBasic->AcquireSuite() failed.
- Since sAIUnicodeString is NULL, a Read Access Violation is thrown.
Can you please identify the cause of this issue. I haven't changed anything in the code and am using VS 2017 on a Windows 10 VirtualBox.
Thank you,
Samee.
