Hello,
I have a small script that adds a new system variable but is running into a
weird issue. It seems that if the value of the new variable is longer than
5 characters I get an application error (The instructions at "0x1007ea5"
referenced memory at "0x0000001". The memory could not be "read"). When I
debug this script I get a unhandled exception in perl.exe (ADMINMISC.DLL):
Access Violation. Has anyone else seen this problem? I'm running perl
v5.8.4 and AdminMisc 5008 on a W2K server.
I tried the script on another machine and got the same error, but it was
only when the variable value was 2 or more characters. The version of perl
on that box was 5.6.1 and the OS is XP Pro.
I tried creating a variable that was one character (i.e. $v) in length to
the value of the new system variable and placing it in the below lines of
code but that did not help.
Any help or understanding into this problem would be appreciated.
Here are some code snips:
Works on W2K server
Win32::AdminMisc::SetEnvVar("foo","12345");
Does not work on W2K
Win32::AdminMisc::SetEnvVar("foo","123456");
Works on XP Pro
Win32::AdminMisc::SetEnvVar("foo","1");
Does not work on Xp Pro
Win32::AdminMisc::SetEnvVar("foo","12");
Thanks
Dan
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs