Hello Monkz !

Now I have (to me at least) a very strange problem ...

Let's say i do this :

use strict ; use warnings ; use Win32 ; $SIG{ __DIE__ } = sub { Win32::MsgBox ("Error : @_" , 0, $0 ) } ; die "ARRG" ;
When i run this from the command line i get a single warning pop up .

Now if use PAR with :

pp -gui tt.pl -o tt.exe

Then the exe will yield the pop up windows but i will have to click 4 times "OK" to get rid of it !

I'm under XP SP2 ActiveState 5.8. Why, oh, why ??

Update : I thought i should elaborate on why i do this : running an exe with the -gui option is much nicer to the user since it will not launch a "useless" background cmd window. but on the other end it will hide all the error message into nowheresville, unless of course i redirect stderr to a file, but still : it seems better if the error is shown immediatly, hence the MsgBox . Along with this I present the result by calling notepad on a temporary file. This allows me to have a simple "only graphical" interface without using Tk .


In reply to Strange Win32::MsgBox behavior with PAR by ZlR

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.