Copy link to clipboard
Copied
Hi experts,
One of my photoshop plugin (a file format plugin) depends on Qt, so I add the libQtCore.4.dylib and libQtGui.4.dylib in the same folder of my binary in my bundle ( that is '/Contents/MacOS' ), and reference them as @positive_Wish16B8_path in my plugin.
My plugin is a universal binary. it works all fine with the 64bit photosho , but the problem is in 32bit of photosho, when I click the 'About' to display my about dialog and then click open to open my file, photoshop said 'Out of RAM'. This problem doesn't happen if I click open first and then about.
I tried to put the Qt libraries in the /usr/local/bin, and referece them in my plugin with full path, (that is /usr/local/bin/libQt**), all things are all right, So I'm wordering if there is some problem with the plugin loading with the '@loader_path‘ reference.
Any help will appreciate.
Thanks,
D.J.
Copy link to clipboard
Copied
Hi,
Did you manage to make it work?
Copy link to clipboard
Copied
As far as I can remember, it's because PS unloaded the plugin. I used the dlopen to increase ref count of the the plugin .