Monday, March 22, 2010

Out of Memory?

Greetings--



I have created an empty plugin using documentation from the SDK, and I've managed to get it to show up in Photoshop CS2 (both in the help and automation listings).



However, anytime I try to access it, either through the help-%26gt;About Plug-In or File-%26gt;Automate, It gives me a popup with the following error:



''Could not complete the [plugin] command because there is not enough memory (RAM)''



Because I'm not doing anything in the plugin yet, I assume this is a problem with how the memory is getting allocated for the plugin code itself. I can't find anything in the documentation that even mentions this error, so I am stuck.



Any help would be appreciated.
Out of Memory?
Can I see your code?
Out of Memory?
Sure. It's a direct copy of makeselectfill.cpp (from the sdk).



When I said I'm doing nothing, I replace the code in AutoPluginMain with a return noErr. I've left the code in its original state in this cut 'n' paste.



Code Follows

--------------------------------



*removed by request

When loading the plugin code, the OS will try to link all relevant libraries. If this fails, it could also result in the memory error being reported. Try debugging your code. If the error is reported before you even reach your plugin entry point, you most likely have a linking problem.



PS. I believe these forums are publicly accessible, so you're likely violating the SDK license by publishing the code...

In reference to your reply,



This is a big unintended oops. I thought this was a private forum, and it didn't occur to me that this could be a problem.



I can't see any way to remove that particular post. If anyone can, or can tell me how to remove the code snippet, it would be greatly appreciated.

Michael, it's a non-issue.



You can see dozens of plugin source trees (GPL) at
my site.



This is sanctioned by none other than Adobe's
Mark Niemann-Ross. Conditions are awkward enough for plugin development. Anyone who wants to quibble over publishability of plugin source can kiss my shiny metal ***.

No comments:

Post a Comment