Friday, March 26, 2010

allocating dynamic memory

Hi,



my second question for today...;-)



Should I always get dynamic memory via Photoshop API or can I use new[] as well? I understand that photoshop uses own memory management, but I'm talking about relatively small amounts of memory, say some kB.

If there a rule?



Greetings Thomas
allocating dynamic memory
For small allocations use new/delete DO NOT use PIUNew to override. This %26lt;br /%26gt;will just give you headaches.%26lt;br /%26gt;%26lt;br /%26gt;For large allocations, image buffers, use the buffer suite.%26lt;br /%26gt;%26lt;br /%26gt;%26lt;ThomasTh@adobeforums.com%26gt; wrote in message %26lt;br /%26gt;news:3bc443a7.-1@webcrossing.la2eafNXanI...%26lt;br /%26gt;%26gt; Hi,%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; my second question for today...;-)%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; Should I always get dynamic memory via Photoshop API or can I use new[] as %26lt;br /%26gt;%26gt; well? I understand that photoshop uses own memory management, but I'm %26lt;br /%26gt;%26gt; talking about relatively small amounts of memory, say some kB.%26lt;br /%26gt;%26gt; If there a rule?%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; Greetings Thomas

No comments:

Post a Comment