• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Out of Memory?

New Here ,
Jan 18, 2007 Jan 18, 2007

Copy link to clipboard

Copied

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->About Plug-In or File->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.
TOPICS
SDK

Views

460

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Participant ,
Jan 19, 2007 Jan 19, 2007

Copy link to clipboard

Copied

Can I see your code?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 22, 2007 Jan 22, 2007

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 22, 2007 Jan 22, 2007

Copy link to clipboard

Copied

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...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 22, 2007 Jan 22, 2007

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 24, 2007 Jan 24, 2007

Copy link to clipboard

Copied

LATEST
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 ass.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines