Greetings brethren. It's been too long since I've been enveloped in the warmth of perl on a daily basis, as I've been doing too much Project Management, and not enough coding.
But I now find myself facing an unsavory problem. We have an application which may have multiple unrelated instances running on a machine. On Windows, these applications sometimes (.001% of the time) will die with:
Can't load 'c:/xgsPerl/5.8.5/lib/auto/File/Glob/Glob.dll' for module F
+ile::Glob: load_file:%1 is not a valid Win32 application at c:/xgsPer
+l/5.8.5/lib/XSLoader.pm line 68.
(this is perl 5.8.5)
This problem never happens with only one instance of the tool running, leading us to suspect concurrency issues (duh)
Assume for a minute we are in a frozen development environment, and updating the version of perl or File::Glob is not an option.
A couple of questions
- Does anyone have a good explanation for what we are seeing?
- Any suggestions for working around it? (my current idea is to eval{} the glob() calls)
- Does anyone have a pure perl glob() implementation we could drop in and try?
Thanks,
~Jeff
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.