Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

track down source of interference? package method works in one, not in another?

track down source of interference? package method works in one, not in another?

track down source of interference? package method works in one, not in another?


Unfortunately, in a situation where I cannot post the full code. So, I have to stick to sanitized examples and philosophy.

Windows 32bit perl running on Windows 2008 R2 (64bit). Nearly everything works, except....


use strict;
use Win32::Lanman;
use Data::Dumper;

my $arrayRef = [];
unless (Win32::Lanman::NetLocalGroupEnum('',$arrayRef);

print "GROUPS: " . Dumper($arrayRef) . "\n"; 

I our main application code, the 7th line does not populate $arrayRef and an error code is set. If I pull that 'logic' out of the main application code and run it as a little snippet, it works fine.

I'm a Linux/UNIX guy, mostly. This Windows stuff is voodoo. What would make that call to NetLocalGroupEnum behave differently in the main app and in my snippet?

Ways to track this down?
'Seems something is getting over ridden, but, what? How to tell?
I know there are some oddities with how Windows handles 32bit vs 64bit perspectives on the registry. Is there anything like that going on with the Lan Manager?


'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close