From: Johan L. <jp...@bo...> - 2001-04-24 20:36:27
|
Jeremy wrote: >I still cannot get my script to work with the gui windows, when the gui sub >routine gets called and the windows gets created, the program freezes and >script does not continue > >As suggested by some I have gotten rid of the Dialog() call, There is one more place where it should be removed from i think (depends on what you want). Try that. >and have replaced the DoEvents() call with Update(); Not sure about this one. You need the DoEvents() call if you want people to be able to abort. The ProgressBar is presumably updated with the SetPos() call. >this is the only thing that happens, then my program exits mysteriously >without entering the while(1) loop which is the download progress of the file. >I am left with a file-to-be of "0" bytes. Put print statements in your code to tell you exactly how far it goes and where, what values variables have etc. Data::Dumper is very nice if you have data structures to display. Also, coding Perl without "use strict;" and warnings are unnecessarily difficult and error prone. Just a tip. Hope That Helps, /J -- Johan Lindström, Sourcerer, Boss Casinos Ltd, Antigua jp...@bo... |