Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Do you know if Xerces, Boost or Zlib are already used in Illustrator CS3?
Copy link to clipboard
Copied
I'm about 99.9% sure they aren't. We use (or have used) all three of those and we have to copy all the DLLs into the Illustrator system folder to get our plugin to run. You should be able to just look at the contents of \Support Files\Contents\Windows to see if any of those three show up as DLLs. Even if plugins use it, that's where they'd stick the DLLs.
Copy link to clipboard
Copied
I have just took a look at Output windows at plugin startup.
A exception has been raised. Memory access violation.
'Illustrator.exe': Loaded 'D:\SVNWorkspace\IllustratorExportPlugin\Output\win\release\MyPlugin.aip', Binary was not built with debug information.
First-chance exception at 0x7c911a39 in Illustrator.exe: 0xC0000005: Access violation writing location 0x00000004.
'Illustrator.exe': Unloaded 'D:\SVNWorkspace\IllustratorExportPlugin\Output\win\release\MyPlugin.aip'
I do not have this message in debug.
So, how could I know what causes this ? what have I done wrong ?
thx.
Thomas
Copy link to clipboard
Copied
Well, at least you know why it's failing now. It doesn't look like a dependency issue at any rate.
Since it only happens in release, the first thing that springs to mind is an uninitialized variable or member somewhere. Studio zeroes out some variables in debug builds but doesn't in release -- I've had that cause us grief in release at least once.
If there's nothing obvious like that, your best bet is sprinkle some output in there, see if you can narrow down where it's happening. The most important one is to check the entry point, to see if you're at least getting that far. Hopefully it does, so you can start figuring out which block of code has the trouble. OutputDebugString() should do the trick, though it'll mean you need to fire up your release build in the debugger (though you obviously won't see any code).
Copy link to clipboard
Copied
I have finally found the problem!
After having unplugged all the code I have written and replugged the all by block of code,
I have found where I was wrong! it has taken me almost a day of work!
the probleme was in the using of #ifndef, define!
just this few lines:
#ifndef _XERCESSTRING_H
#define _XERCESSTRING_H
#include <xercesc/util/XMLString.hpp>
#ifdef XERCES_CPP_NAMESPACE_USE
XERCES_CPP_NAMESPACE_USE
#endif
I have fixed that! now project can be built in release.
Thanks for helping me!
thomas.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now