-
1. Re: How to free a PDEColorSpaceStruct
lrosenth May 11, 2010 7:35 AM (in response to joeln3)How did you allocate it?
-
2. Re: How to free a PDEColorSpaceStruct
joeln3 May 11, 2010 7:49 AM (in response to lrosenth)Like this :
PDEColorSpaceStruct pdeColorSpaceStruct;
memset(&pdeColorSpaceStruct, 0,
sizeof(PDEColorSpaceStruct));
PDEColorSpaceGetStruct(oCS, &pdeColorSpaceStruct);
And regarding the PDF Ref I have to unallocate the pdecolorspacestruct after using the PDEColorSpaceGetStruct()
-
3. Re: How to free a PDEColorSpaceStruct
joeln3 Sep 8, 2010 1:00 AM (in response to joeln3)I'm back with this question to know if this is a known issue or not?
Actually I also tried using this code
PDEColorSpaceStruct* pdeColorSpaceStruct = (PDEColorSpaceStruct*)malloc(sizeof(PDEColorSpaceStruct));
PDEColorSpaceGetStruct(oCS, pdeColorSpaceStruct);
free(pdeColorSpaceStruct);and using it the memory usage of Acrobat.exe increases (without reason because I free the memory...).
Regards,
Joe
-
4. Re: How to free a PDEColorSpaceStruct
lrosenth Sep 8, 2010 3:53 AM (in response to joeln3)You can't use malloc and free on SDK structures! You need to use ASmalloc and ASfree.
-
5. Re: How to free a PDEColorSpaceStruct
joeln3 Sep 8, 2010 3:58 AM (in response to lrosenth)Thanks for your reply Leonard but I tried using ASMalloc and ASFree and the memory is still increasing... Maybe a
problem with the PDEColorSpaceGetStruct() method?



