Streen has asked for the wisdom of the Perl Monks concerning the following question:

I made a Gui with Perl:Tk, in the end I convertet it to a exe file with the perlapp Utility, using the following arguments:
C:\Perl\bin\perlapp.exe --script TrackingGui.pl --exe TrackingGui.exe --freestanding --verbose --add "DBI" --lib "H:\work\Tracking System\lib
but now the signs are lost, as you can see here. The left half shows the Gui after starting normaly, the right one after starting the exe file. Do you know what could be the error?
thanks a lot

Replies are listed 'Best First'.
Re: Lost signs in Perl::TK and perlapp
by zentara (Cardinal) on Nov 15, 2005 at 12:44 UTC
      Thanks a lot by adding the
      use Encode::Unicode;
      the signs are now shown correctly...

      Again, Thanks
Re: Lost signs in Perl::TK and perlapp
by jesuashok (Curate) on Nov 15, 2005 at 09:47 UTC
    Hi,

    This kind of error used to happen when you use graphics utilities available in perl. This is not due to Perl::Tk. This problem is becasue of your OS. The reason is that your screen does not get clear properly after executing the script.
    so The Junk Characters are displayed in that manner. Make sure that you free all the memory used in your exe program.
    I have also faced such Issues when I uses curses module in perl.
    So, make sure that your exe program returns properly.

    "Keep pouring your ideas"
      Thank you, you explained good why this happens, but can you tell me how I can get around this problem? I am not as good in perl as I whish to :-).
      Make sure that you free all the memory used in your exe program.
      I am exiting with the rigth exit(); command, or what did you mean?
      I have also faced such Issues when I uses curses module in perl.
      I use the modules: strict, warnings, Tk, Tk::TextUndo, Tk::NoteBook, Tk::Pane, MListbox and DBI. Or what did you mean with "curses module"?
      Thanks for reply, and sorry for my bad english