in reply to Re^3: Win32::API Memory Exception with GetCommandLine() (which returns a static string)
in thread Win32::API Memory Exception with GetCommandLine() (which returns a static string)
Thanks for the comments and investigation.
The ".bat" wrapper is used because XP/NT (and possibly still Vista) don't always redirect STDIO/STDOUT correctly for scripts executed through file associations (see http://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/faq/Windows/ActivePerl-Winfaq5.html#STDIN_and_STDOUT_and_Piping_don and http://support.microsoft.com/kb/321788).
I used the "pack" because the example in Win32::API did so and I thought it might be there to fix the memory violations.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Win32::API Memory Exception with GetCommandLine() (which returns a static string)
by BrowserUk (Patriarch) on Jul 07, 2007 at 18:38 UTC |