suzun30 has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to use the Win32::NetAdmin module(0.12 under site/lib and 0.11 under lib) to get the local admin users via the LocalGroupGetMembersWithDomain() function call. My program dies and kicks out of the cmd. When run under debug mode, it gives this error. This is with Perl64 on a Windows 64 bit machine. The script fails in one particular machine only. Is this a version compatibility issue between the module and the windows system ? Following is a simple test script to check the modules functionality.
System Spec: Windows 64 bit ActiveStatePerl 5.16.3 for X64 Win32::NetAdmin 0.12(C:/Perl64/site/lib/)
Error:use strict; use warnings; use Win32::NetAdmin; my %UserList = (); my $server_name = 'Server'; my $local_group_name = 'Administrators'; Win32::NetAdmin::LocalGroupGetMembersWithDomain($server_name, $local_g +roup_name, \%UserList); my @users = keys(%UserList); foreach my $user (@users) { print "User: $user\n"; }
Signal SEGV at C:/Perl64/lib/perl5db.pl line 7597 , <INFILE> line 23. +DB::diesignal('SEGV')called at GetLocalAdmins.pl
Searching about SEGV showed its difficult to trace. I am at not sure where else to look about this error. Please guide me to any pointers to go digging about.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SEGV signal termination in Win32::NetAdmin ver 0.12 on Win64 w ActiveStatePerl5.16.3 X64
by ww (Archbishop) on Apr 04, 2014 at 00:13 UTC | |
by suzun30 (Acolyte) on Apr 14, 2014 at 22:15 UTC | |
by bulk88 (Priest) on Apr 15, 2014 at 03:44 UTC | |
|
Re: SEGV signal termination in Win32::NetAdmin ver 0.12 on Win64 w ActiveStatePerl5.16.3 X64
by BrowserUk (Patriarch) on Apr 15, 2014 at 00:21 UTC |