Copy link to clipboard
Copied
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:
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.
Just read the thread you linked (missed it initially) and it concurs with me You're using CS6, but you're probably using the latest SDK (CC 2017). You should find a Version.txt or Readme.txt in the root of the SDK folder, and it should indicate for which version the SDK you're using is for.
Assuming it's the CC SDK, you need to go get the CS6 SDK from here:
Copy link to clipboard
Copied
If the value is zero, it's claiming it worked, but we both know that's probably not what you'll find. The value may point to the reason, as the code can be very illuminating, if we're lucky.
Copy link to clipboard
Copied
The error number returned is 1394689636 for these 2 calls:
error = sSPBasic->AcquireSuite(kAIUserSuite, kAIUserSuiteVersion, (const void**)
&sAIUser);
error = sSPBasic->AcquireSuite(kAIUnicodeStringSuite, kAIUnicodeStringSuiteVersion, (const
void**)&sAIUnicodeString);
and 0 for this call:
error = sSPBasic->AcquireSuite(kSPBlocksSuite, kSPBlocksSuiteVersion, (const void**)
&sSPBlocks);
which make sense since both sAIUser and sAIUnicodeString hold null after the call, whereas sSPBlocks holds a non-null value. So regarding the above error, I found this thread:
AICSXSExtensionSuite error 1394689636
I'm using Adobe Illustrator version 16.0.0 (both 32 and 64 bit). Could this version be the cause, if so is there a workaround?
Thanks.
Copy link to clipboard
Copied
Okay, so 1394689636 is 0xâ€53214664‬ which is 0x53 0x21 0x46 0x64, which on an ASCII table is 'S!Fd'.
From that I'd conclude with a fair bit of certainty that you're using the wrong SDK for that version of Illustrator. Illustrator ships suites of functions, and my guess is kUnicodeStringSuiteVersion & kSPBlocksSuiteVersion are both either too high (more likely) or too low than the one shipped with the Illustrator you're running against.
I have to go home for the weekend now, but if you can't figure it out over the weekend, I'll look in on Monday and see if we can figure out which it is.
Copy link to clipboard
Copied
Just read the thread you linked (missed it initially) and it concurs with me You're using CS6, but you're probably using the latest SDK (CC 2017). You should find a Version.txt or Readme.txt in the root of the SDK folder, and it should indicate for which version the SDK you're using is for.
Assuming it's the CC SDK, you need to go get the CS6 SDK from here:
Copy link to clipboard
Copied
Yes. I downloaded and installed Adobe Illustrator 2017 32 bit and it's working now. Thank you very much.