Thursday, April 1, 2010

Help! ''Memory could not be...

I have developed a plugin for Photoshop using visual c++6.0. When I test the plugin on my laptop, it works perfectly well. However, when I test it on my desktop, it usually causes an error called

''...instruction at...referenced memory... The memory could not be read/written''.



The codes are exactly the same. I have noted that one difference between my laptop and desktop is that my laptop is using FAT32 system and desktop is using NTFS. I don't know whether it is due to file system.



In the code itself, I have used AfxBeginThread to start two worker threads. I have tried to put the method call that causes the error to the main thread and it works fine. But when I put the method calls in the worker thread, the error always comes out. Seems like the worker thread does not have enough privilege to access??? I am not sure.

Could anyone help me??
Help! ''Memory could not be...
I would expect that this cannot work: you must surely call all

Photoshop APIs from the master thread.



Aandi Inston
  • mask making
  • No comments:

    Post a Comment