CreateDictionary failing
Hello all,
While porting my plugin from CS4 to CS6 I ran into a strange problem: I can't seem to create a dictionary reference using the following code (AIDictionarySuite imported at this point).
AIDictionaryRef dref = nil;
AIErr err = sAIDictionary->CreateDictionary(&dref);
After the call, err is equal to 1146045247 and dref is NULL. I shouldn't have to malloc a dictionary ref, right?
My plugin reads and writes to the document's dictionary, and reading seems to be just fine.
Has anyone seen this error code? I can't seem to find reference to it anywhere in the SDK.
For reference:
MacOS X 10.8 / Xcode 4.5.2
Compiling with the 10.6 SDK and Apple LLVM Compiler 4.1
Targeting CS6, 64bit
Thanks in advance!
--josh