I've spent quite a few dozen hours trying to track down a problem with
Photoshop plugins built for Windows. It was a problem that manifested
itself with a CodeWarrior 7 build and in fact this was the reason I
began using mingw, to see if the same issue arose.
I have source to plugins which build and run perfectly under MacOS, and
build for Windows with CW7 and mingw. On invoking the plugin in
Photoshop for Windows (this has been tested on 2 different PCs), the
plugin is entered and exited several times as expected, after which an
invalid page fault invariably occurs in Photoshop. I have created a
simple test case for this problem and fruitlessly combed its code for
bugs which might cause this. My conclusion is that build settings are
probably at fault (or Photoshop 5.0 has a bug).
The main entry point is documented to need stdcall conventions and this
has been set in the source along with a corresponding EXPORTS
Can anyone provide a working example of a Photoshop plugin built with
mingw (or any Win32 development system)? Or should I post the complete
test project for someone to check build settings and possibly try
running in a different version of Photoshop for Windows?