[flext] evoke "... couldn't create" Pd-error

Patrick Gampp Patrick.Gampp at gmx.de
Tue Aug 7 12:58:34 CEST 2012


Thank you Thomas!
Patrick

Am 07.08.2012 11:36, schrieb Thomas Grill:
> Hi Patrick,
> have a look at the flext tutorial example adv1:
> https://svn.grrrr.org/ext/trunk/flext/tutorial/adv1/main.cpp
>
> Therein InitProblem() is called to signal a problem - a different way is to simply throw a C++ exception from within the constructor.
>
> gr~~~
>
>
> Am 07.08.2012 um 11:01 schrieb Patrick Gampp:
>
>> Hi all,
>> I wrote an flext external which needs creation arguments.
>>
>> In the class constructor, for wrong creation arguments, I want the external not to be created and deliver the pd-console message:
>>
>> "myFlextExternal
>> ... couldn't create"
>>
>> I already tried
>> error("myFlextExternal \
>>        ... couldn't create");
>> But the external is anyway loaded into Pd.
>>
>> Does anyone know, how to evoke this pd message and abort the loading of myFlextExternal?
>>
>> Best,
>> Patrick
>>
>>
>> _______________________________________________
>> http://grrrr.org/ext/flext
>>
>> flext mailing list
>> flext at grrrr.org
>> http://grrrr.org/cgi-bin/mailman/listinfo/flext
>
> --
> Thomas Grill
> http://grrrr.org
>
>
>



More information about the flext mailing list