PISetWatchSuspension bug?

Here everybody can post his problems with PhotoLine
colormancer
Mitglied
Beiträge: 5
Registriert: Mo 06 Okt 2008 07:22

PISetWatchSuspension bug?

Beitrag von colormancer »

Hi,
I am trying to get my free and commercial plugins (noise reduction, color correction) to work with the Mac version of Photoline.

I call the following line of code:
PISetWatchSuspension(999);

This seems to cause Photoline to crash.

Any thoughts?
colormancer
Mitglied
Beiträge: 5
Registriert: Mo 06 Okt 2008 07:22

Re: PISetWatchSuspension bug?

Beitrag von colormancer »

Figured it out.

The following code will work:
PropertyProcs *propSuite = ((ExportRecordPtr)gFilterRecord)->propertyProcs;
if (propSuite != NULL) //Photoline won't get propSuite and therefore crash
{
err = PISetWatchSuspension(999); //We just need to send a non-zero number.
assert(err == noErr);
}



Will re-release my freeware Photoshop plugins when I get some sleep!