Ask a Question related to PERL Miscellaneous, Design and Development.
-
Dan Rawson #1
How to ignore "Callback called exit"
I'd like to be able to ignore the "Callback called exit" warning (since I'm doing it on purpose <g>); how can I do it??
On a more general note, is there a mechanism (other than reading the source code) to determine what warnings categories
are actually available??
TIA . . . .
Dan
Dan Rawson Guest
-
PDImageSelectAlternate"is obsolete and never called in Acrobat 8". Howswitch to alternate images?
PDImageSelectAlternate "is obsolete and never called in Acrobat 8". Then how can I switch to alternate images to display in Acrobat 8 and 9? -
How to make "Adobe PDF" printer quiet (nobanner) when called from MSAccess?
I have an Access Database which creates reports set up to print to the "Adobe PDF" printer (Acrobat Standard 7.0.7). Everything works great except... -
#39216 [NEW]: call_user_func and friends don't accept array($this, "func") callback anymore
From: hannes dot magnusson at gmail dot com Operating system: FreeBSD PHP version: 6CVS-2006-10-20 (CVS) PHP Bug Type: ... -
How can I callError ocurring when Event Listener methodein "for statement" is called
Hy guys, I would be gratefull if somebody could answer me how can I call a method from flex in "for statement", that is actually in my remote... -
Cannot write files with script called by "system()"
Hello, I am currently working on a perlscript, that's called out of a PHP-script by the "system()" function call. The script works ok, when... -
Dominik Seelow #2
Re: How to ignore "Callback called exit"
Hello Dan,
That's presumeably not a warning but a fatal error?! They can be> I'd like to be able to ignore the "Callback called exit" warning (since I'm doing it on purpose <g>); how can I do it??
trapped, but as the reason lies probably somewhere within your code, you
should rather try to fix the error.You can set warnings and die messages at run-time. So you won't be able>
> On a more general note, is there a mechanism (other than reading the source code) to determine what warnings categories
> are actually available??
to find out the message's text in advance:
for my $n (0..20){
warn ("I don't like this number $n\n") if rand($n)>10;
}
Or do you mean this:
form 'perldiag':
These messages are classified as follows (listed in increasing order of
desperation):
(W) A warning (optional).
(D) A deprecation (optional).
(S) A severe warning (default).
(F) A fatal error (trappable).
(P) An internal error you should never see (trappable).
(X) A very fatal error (nontrappable).
(A) An alien error message (not generated by Perl).
The majority of messages from the first three classifications above (W,
D & S) can be controlled using the warnings pragma.
HTH,
Dominik
Dominik Seelow Guest
-
Dan Rawson #3
Re: How to ignore "Callback called exit"
Dominik Seelow wrote:
Dominik -> Hello Dan,
>
>
>>>>I'd like to be able to ignore the "Callback called exit" warning (since I'm doing it on purpose <g>); how can I do it??
> That's presumeably not a warning but a fatal error?! They can be
> trapped, but as the reason lies probably somewhere within your code, you
> should rather try to fix the error.
>>>>On a more general note, is there a mechanism (other than reading the source code) to determine what warnings categories
>>are actually available??
>
> You can set warnings and die messages at run-time. So you won't be able
> to find out the message's text in advance:
>
> for my $n (0..20){
> warn ("I don't like this number $n\n") if rand($n)>10;
> }
>
> Or do you mean this:
>
> form 'perldiag':
>
> These messages are classified as follows (listed in increasing order of
> desperation):
>
> (W) A warning (optional).
> (D) A deprecation (optional).
> (S) A severe warning (default).
> (F) A fatal error (trappable).
> (P) An internal error you should never see (trappable).
> (X) A very fatal error (nontrappable).
> (A) An alien error message (not generated by Perl).
>
> The majority of messages from the first three classifications above (W,
> D & S) can be controlled using the warnings pragma.
>
> HTH,
> Dominik
>
Thanks; the error is listed as fatal in perldiag.
This is absolutely intentional in this case; I have a perl/Tk application which puts a directory selection dialog up at
startup. If they cancel on the initial dialog, the callback for the cancel button simply calls exit. On the other
hand, if they bring up the directory selection dialog after the app has started, then do a "Cancel", I simply return
them to the app without changing the directory selection.
With that said, I'm unclear about how I might trap this error . . . . I looked at perldiag, perlwarn, eval, die, etc
without much luck.
TIA . . .
Dan
Dan Rawson Guest
-
Dan Rawson #4
Re: How to ignore "Callback called exit"
Dan Rawson wrote:
OK, I got it to work like this: from inside the tk callback sub-routine from the cancel button on the dialog:> Dominik Seelow wrote:
>> Dominik ->> Hello Dan,
>>
>>
>>>>>>> I'd like to be able to ignore the "Callback called exit" warning
>>> (since I'm doing it on purpose <g>); how can I do it??
>>
>> That's presumeably not a warning but a fatal error?! They can be
>> trapped, but as the reason lies probably somewhere within your code, you
>> should rather try to fix the error.
>>>>>>> On a more general note, is there a mechanism (other than reading the
>>> source code) to determine what warnings categories are actually
>>> available??
>>
>>
>> You can set warnings and die messages at run-time. So you won't be able
>> to find out the message's text in advance:
>>
>> for my $n (0..20){
>> warn ("I don't like this number $n\n") if rand($n)>10;
>> }
>>
>> Or do you mean this:
>>
>> form 'perldiag':
>>
>> These messages are classified as follows (listed in increasing order of
>> desperation):
>>
>> (W) A warning (optional).
>> (D) A deprecation (optional).
>> (S) A severe warning (default).
>> (F) A fatal error (trappable).
>> (P) An internal error you should never see (trappable).
>> (X) A very fatal error (nontrappable).
>> (A) An alien error message (not generated by Perl).
>>
>> The majority of messages from the first three classifications above (W,
>> D & S) can be controlled using the warnings pragma.
>>
>> HTH,
>> Dominik
>>
>
> Thanks; the error is listed as fatal in perldiag.
>
> This is absolutely intentional in this case; I have a perl/Tk
> application which puts a directory selection dialog up at startup. If
> they cancel on the initial dialog, the callback for the cancel button
> simply calls exit. On the other hand, if they bring up the directory
> selection dialog after the app has started, then do a "Cancel", I simply
> return them to the app without changing the directory selection.
>
> With that said, I'm unclear about how I might trap this error . . . . I
> looked at perldiag, perlwarn, eval, die, etc without much luck.
>
> TIA . . .
>
> Dan
>
if ($appRunning)
{
$dialogBox->destroy;
$mw->deiconify;
}
else
{
local $SIG{'__DIE__'};
exit 1;
}
Dan
Dan Rawson Guest
-
Steve Lidie #5
Re: How to ignore "Callback called exit"
Dan Rawson <daniel.rawson.take!this!out!@asml.nl> wrote:
ask in the proper group, that will help! (;> Dominik Seelow wrote:> Dominik ->> Hello Dan,
>>
>>
>>>>>>>I'd like to be able to ignore the "Callback called exit" warning (since I'm doing it on purpose <g>); how can I do it??
>> That's presumeably not a warning but a fatal error?! They can be
>> trapped, but as the reason lies probably somewhere within your code, you
>> should rather try to fix the error.
>>>>>>>On a more general note, is there a mechanism (other than reading the source code) to determine what warnings categories
>>>are actually available??
>>
>> You can set warnings and die messages at run-time. So you won't be able
>> to find out the message's text in advance:
>>
>> for my $n (0..20){
>> warn ("I don't like this number $n\n") if rand($n)>10;
>> }
>>
>> Or do you mean this:
>>
>> form 'perldiag':
>>
>> These messages are classified as follows (listed in increasing order of
>> desperation):
>>
>> (W) A warning (optional).
>> (D) A deprecation (optional).
>> (S) A severe warning (default).
>> (F) A fatal error (trappable).
>> (P) An internal error you should never see (trappable).
>> (X) A very fatal error (nontrappable).
>> (A) An alien error message (not generated by Perl).
>>
>> The majority of messages from the first three classifications above (W,
>> D & S) can be controlled using the warnings pragma.
>>
>> HTH,
>> Dominik
>>
>
> Thanks; the error is listed as fatal in perldiag.
>
> This is absolutely intentional in this case; I have a perl/Tk application which puts a directory selection dialog up at
> startup. If they cancel on the initial dialog, the callback for the cancel button simply calls exit. On the other
> hand, if they bring up the directory selection dialog after the app has started, then do a "Cancel", I simply return
> them to the app without changing the directory selection.
>
> With that said, I'm unclear about how I might trap this error . . . . I looked at perldiag, perlwarn, eval, die, etc
> without much luck.
comp.lang.perl.tk
i haven't seen that error in years, perhaps your perl/tk is very old ...
>
> TIA . . .
>
> Dan
>
>
>
>Steve Lidie Guest
-
Dan Rawson #6
Re: How to ignore "Callback called exit"
Steve Lidie wrote:
Steve -> Dan Rawson <daniel.rawson.take!this!out!@asml.nl> wrote:
>>>>Dominik Seelow wrote:
>>>>>>>Hello Dan,
>>>
>>>
>>>
>>>
>>>>I'd like to be able to ignore the "Callback called exit" warning (since I'm doing it on purpose <g>); how can I do it??
>>>
>>>That's presumeably not a warning but a fatal error?! They can be
>>>trapped, but as the reason lies probably somewhere within your code, you
>>>should rather try to fix the error.
>>>
>>>
>>>>On a more general note, is there a mechanism (other than reading the source code) to determine what warnings categories
>>>>are actually available??
>>>
>>>
>>>You can set warnings and die messages at run-time. So you won't be able
>>>to find out the message's text in advance:
>>>
>>>for my $n (0..20){
>>> warn ("I don't like this number $n\n") if rand($n)>10;
>>>}
>>>
>>>Or do you mean this:
>>>
>>>form 'perldiag':
>>>
>>>These messages are classified as follows (listed in increasing order of
>>>desperation):
>>>
>>> (W) A warning (optional).
>>> (D) A deprecation (optional).
>>> (S) A severe warning (default).
>>> (F) A fatal error (trappable).
>>> (P) An internal error you should never see (trappable).
>>> (X) A very fatal error (nontrappable).
>>> (A) An alien error message (not generated by Perl).
>>>
>>>The majority of messages from the first three classifications above (W,
>>>D & S) can be controlled using the warnings pragma.
>>>
>>>HTH,
>>>Dominik
>>>
>>Dominik -
>>
>>Thanks; the error is listed as fatal in perldiag.
>>
>>This is absolutely intentional in this case; I have a perl/Tk application which puts a directory selection dialog up at
>>startup. If they cancel on the initial dialog, the callback for the cancel button simply calls exit. On the other
>>hand, if they bring up the directory selection dialog after the app has started, then do a "Cancel", I simply return
>>them to the app without changing the directory selection.
>>
>>With that said, I'm unclear about how I might trap this error . . . . I looked at perldiag, perlwarn, eval, die, etc
>>without much luck.
>
> ask in the proper group, that will help! (;
>
> comp.lang.perl.tk
>
> i haven't seen that error in years, perhaps your perl/tk is very old ...
>
>
>
It's 800.024 . . . .
Dan
Dan Rawson Guest



Reply With Quote

