develooper Front page | perl.par | Postings from October 2008

problems building large wrapped app

Thread Next
Scott Stanton
October 14, 2008 19:00
problems building large wrapped app
Message ID:
I'm running into crashes on Windows trying to build a large wrapped app
(>200MB, it's an installer).  The problem happens on the second call to
Win32::Exe->new->update in (around line 1257).  I'm not sure
why we need to set the icon and info for the exe both before and after
the append_parl/generate_output calls.  It seems to work for me if I
remove the second update call and just patch the copy of parl.exe before
appending the par file.  


I've also run into problems trying to use some .ico files (that work
fine with other apps).  The resulting binary seems to be corrupted.  Has
anyone else seen similar problems? 


I traced into the update call to see what was causing the failure.  I
think perl is running out of memory inside Parse::Binary->load_struct
trying to make a copy of the whole program in memory.  This seems like
an expensive way to update an icon.  I'm also suspicious that whatever
is causing the problem with different .ico files could be corrupting the
heap.  I wonder if the Win32::Exe module is not correctly handling some



Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About