Friday, March 26, 2010

memory management

I am having trouble about memory management:

I defined some class, for example calssA, when I use ''new'' to allccate or free some memory, for example,

classA* pclassA = new classA

or delete pclassA

the vlaue of sSPBasic will change occasionally, but I don't konw why!



I would greatly appreciate any comments/ideas/suggestions.

Thanks in advance
memory management
Having sSPBasic change during the same run of Photoshop is very odd. Sounds %26lt;br /%26gt;like you might have some memory coruption. Are you seeing this in a sample %26lt;br /%26gt;project from the SDK?%26lt;br /%26gt;%26lt;br /%26gt;See other threads about the use of PIUNew.%26lt;br /%26gt;%26lt;br /%26gt;%26lt;yijiang_zhang@adobeforums.com%26gt; wrote in message %26lt;br /%26gt;news:3bc4138c.-1@webcrossing.la2eafNXanI...%26lt;br /%26gt;%26gt;I am having trouble about memory management:%26lt;br /%26gt;%26gt; I defined some class, for example calssA, when I use ''new'' to allccate or %26lt;br /%26gt;%26gt; free some memory, for example,%26lt;br /%26gt;%26gt; classA* pclassA = new classA%26lt;br /%26gt;%26gt; or delete pclassA%26lt;br /%26gt;%26gt; the vlaue of sSPBasic will change occasionally, but I don't konw why!%26lt;br /%26gt;%26gt;%26lt;br /%26gt;%26gt; I would greatly appreciate any comments/ideas/suggestions.%26lt;br /%26gt;%26gt; Thanks in advance

No comments:

Post a Comment