How to ignore "Callback called exit"

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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?
    2. 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...
    3. #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: ...
    4. 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...
    5. 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...
  3. #2

    Default Re: How to ignore "Callback called exit"

    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 Seelow Guest

  4. #3

    Default Re: How to ignore "Callback called exit"

    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.

    TIA . . .

    Dan




    Dan Rawson Guest

  5. #4

    Default Re: How to ignore "Callback called exit"

    Dan Rawson 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.
    >
    > TIA . . .
    >
    > Dan
    >
    OK, I got it to work like this: from inside the tk callback sub-routine from the cancel button on the dialog:

    if ($appRunning)
    {
    $dialogBox->destroy;
    $mw->deiconify;
    }
    else
    {
    local $SIG{'__DIE__'};
    exit 1;
    }

    Dan

    Dan Rawson Guest

  6. #5

    Default Re: How to ignore "Callback called exit"

    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 ...


    >
    > TIA . . .
    >
    > Dan
    >
    >
    >
    >
    Steve Lidie Guest

  7. #6

    Default Re: How to ignore "Callback called exit"

    Steve Lidie wrote:
    > 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 ...
    >
    >
    >
    Steve -

    It's 800.024 . . . .

    Dan

    Dan Rawson Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139