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)
I still get the same length discrepancy on ActivePerl - ie Inline's 20 vs Win32::API's 21.
I have a vague recollection that somewhere in Win32::API, they have code to extend the length of various strings/buffers passed in and/or out by one to 'allow room for terminating nulls'.
Maybe I'm too tired or mis-remembering, because I cannot find it now? :(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Win32::API Memory Exception with GetCommandLine() (which returns a static string)
by syphilis (Archbishop) on Jul 06, 2007 at 07:31 UTC | |
by BrowserUk (Patriarch) on Jul 06, 2007 at 11:29 UTC | |
by Wyrdweaver (Beadle) on Jul 07, 2007 at 18:15 UTC |