ActiveState.com
Subject: Win32::Process Help Needed - Main Process Exits While Children Run
I have a piece of code that has been running for a number of years, until now.
My vendor changed the way they created a program,
and that new program exits before its children's processes are fin
uot;.")|| die print Win32::FormatMessage( Win32::GetLastError() );
while (!($done)) {
$done = 1 if ($ProcessObj->Wait(100));
$main->update; # TK update
}
As noted above, the "Wait(100)" would work fine if the parent program does
not exit prema
- Original Message -
From: <[EMAIL PROTECTED]>
.
.
C:\Perl\lib\CORE\perl.h(587) : fatal error C1083: Cannot open include
file: 'sys/types.h': No such file or directory
.
-
That's the (current) problem - the C headers aren't being found.
With the v
__
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Tobias Hoellrich
Sent: Friday, June 06, 2008 11:31 PM
To: perl-win32-users@listserv.activestate.com
Subject: RE: urgent help : Error while installing Crypt::DES at Windows
XP
Make sure that the location of
Subject: urgent help : Error while installing Crypt::DES at
Windows XP
Hi All,
Getting error while installing Crypt::DES, I thought it is due
to Microsoft VC++, and I installed it successfully but still I am
getting
Hi All,
Getting error while installing Crypt::DES, I thought it is due to
Microsoft VC++, and I installed it successfully but still I am getting
the below same error.
C:\Documents and Settings\mukaa\Mustafa\ssh_files\Crypt-DES-2.05>nmake
Microsoft (R) Program Maintenance Util
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gary
Yang
Sent: January-28-08 10:28 AM
To: perl-win32-users@listserv.ActiveState.com
Subject: How to make the passwd invisible while I'm typing the passwd
atMS-DOS prompt on Windows?
Hi,
The script bellow prompt user to enter login password. But, when I enter the
passwd at prompt, it shows me the passwd I typed. How to make the passwd
invisible while I'm typing the passwd?
print "\nPlease Enter login passwd: ";
chomp($passwd = );
I gre
ladimir Zelinski
> Sent: Tuesday, March 13, 2007 7:48 PM
> To: perl-win32-users@listserv.ActiveState.com
> Subject: Re: Hitting a line limit while reading a file
>
> A while ago I had a weird problem on Perl for Windows.
> My program exited from while() loop because of a characte
al Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Vladimir Zelinski
Sent: Tuesday, March 13, 2007 7:48 PM
To: perl-win32-users@listserv.ActiveState.com
Subject: Re: Hitting a line limit while reading a file
A while ago I had a weird problem on Perl for Windows.
My progr
> What kind of memory issue could I have hit?
> This is a Windows 2000 box with 512 Meg of RAM.
>
> Code that was executing:
>
> open(INPUT,"$infilename") or die "couldn't open $infilename for read, stopped
> at: $!";
> my $line_num;
> whil
A while ago I had a weird problem on Perl for Windows.
My program exited from while() loop because of
a character in the data file which was treated as EOF.
After removing the character from the data file loop
continued up to the very end. I didn't have time to
investigate the problem and I
- Original Message -
From: "Howard Maher" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, March 14, 2007 5:34 AM
Subject: Hitting a line limit while reading a file
>I was simply counting the number of lines in a 2 gig file, printing to
>STDERR every 10,000 lines to in
- Original Message -
From: "Foo Ji-Haw"
> It complains of 'error C2275: 'ULONG' : illegal use of this type as an
> expression'
>
> Is that a MSVC issue, or more to do with inline.pm?
It's an MSVC issue - that "illegal use", whi
ort some old sample codes into Perl (the C++ Guy left).
Thanks. Will keep you updated.
Sisyphus wrote:
- Original Message -
From: "Foo Ji-Haw" <[EMAIL PROTECTED]>
To: "Sisyphus" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, February 21, 2006 5:42 PM
Sub
Hello,
I think this is the compiler. If I use
void StartupTapi (HINSTANCE hInstance) {
//apiVersion = 0x2;
ULONG ret;
}
than it compiles without an error.
The same problem I had sometimes ago wit an modul of me. I have to
define first all variables befor I use them.
I use the "Micro
- Original Message -
From: "Foo Ji-Haw" <[EMAIL PROTECTED]>
To: "Sisyphus" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, February 21, 2006 5:42 PM
Subject: Re: Tough qn: understanding this (C) error while using inline
> Hello guys,
>
> Loading the lib
Hello guys,
Loading the library helped. I think I've hit the problem you foresaw.
ULONG returns an error during compilation:
error C2275: 'ULONG' : illegal use of this type as an expression
Is it to do with typemaps? I tried to find some good documentation, but
the only example I got was:
ht
M
Subject: Tough qn: understanding this (C) error while using inline
Hi all,
I'm trying my first hand at writing some C code to extend TAPI onto
Perl
using inline.pm. I didn't get very far though. Appreciate if anyone can
help explain the error (source code is attached).
Make
- Original Message -
From: "Reinhard Pagitsch"
> >
> Could it be because I use Perl v5.6.1? It worked the way I replayed.
>
If it works on 5.6.1, it probably also works on 5.8.x it just seems an
odd way of going about it (to me). The '-L' switch is normally used to
designate a dire
Sisyphus wrote:
- Original Message -
From: "Foo Ji-Haw" <[EMAIL PROTECTED]>
To:
Sent: Friday, February 17, 2006 7:54 PM
Subject: Tough qn: understanding this (C) error while using inline
Hi all,
I'm trying my first hand at writing some C code to extend
- Original Message -
From: "Foo Ji-Haw" <[EMAIL PROTECTED]>
To:
Sent: Friday, February 17, 2006 7:54 PM
Subject: Tough qn: understanding this (C) error while using inline
> Hi all,
>
> I'm trying my first hand at writing some C code to extend TAPI onto Pe
--- Foo Ji-Haw <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm trying my first hand at writing some C code to
> extend TAPI onto Perl
> using inline.pm. I didn't get very far though.
> Appreciate if anyone can
> help explain the error (source code is attached).
>
> It seems to complain that _li
b\inline_pl_d3ab.lib
and object
blib\arch\auto\inline_pl_d3ab\inline_pl_d3ab.exp
inline_pl_d3ab.obj : error LNK2001: unresolved external symbol
_lineInitializeEx
[EMAIL PROTECTED]
blib\arch\auto\inline_pl_d3ab\inline_pl_d3ab.dll : fatal error
LNK1120: 1 unreso
lved externals
NMAKE : fatal e
TED]
blib\arch\auto\inline_pl_d3ab\inline_pl_d3ab.dll : fatal error LNK1120:
1 unreso
lved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
A problem was encountered while attempting to compile and install your
Inline
C code. The command that failed w
On Wed, 23 Feb 2005, Andrew McFarlane wrote:
> I think that I'm seeing a but in the Win32::OLE::Lite::in method.
[...]
> How do I alert the powers that be about this potential defect?
Can you send me a complete program that I can use to reproduce the
problem?
Cheers,
-Jan
blah
}
I do not get an exception.
How do I alert the powers that be about this potential defect?
Andrew McFarlane
From: "Steven Manross" <[EMAIL PROTECTED]>
To: "Kevin Carothers" <[EMAIL PROTECTED]>,"Andrew McFarlane"
<[EMAIL PROTECTED]>
CC
: Andrew McFarlane
Cc: perl-win32-users@listserv.ActiveState.com
Subject: Re: Win32::OLE : Bizarre Push while Examining IE Events
Hi Andrew,
I really don't know what's going on, but I have tried running MSAccess
as an OLE automation server; you too are obviously running IE as an
OLE
Hi Andrew,
I really don't know what's going on, but I have tried running MSAccess
as an OLE automation server; you too are obviously running IE as an
OLE automation server.
I hate it when people tell me something can't be done, but I really
doubt that you can call events from a COM object via a
I need help in figuring out how to prevent an exception from occurring when
I try to examine Internet Explorer browser events using Win32::OLE. Thanks
in advance for your help.
I have a library that allows one to drive Internet Explorer. My code runs
well until I try to examine the window eve
Thanks, using "i512" instead of "s512" in pack() solved this issue,
however I'm not really sure this should be the case as s512 should
have allocated 512 * 2 bytes and I expect the function to just write 2
bytes to this buffer.
If you have any idea why this is the case, please let me know.
/Mikae
Mikael Olenfalk wrote:
> Hi!
>
> I''m trying to wrap a DLL using Win32::API and have succeeded for
> simpler calls like:
>
> int Connect(int port);
>
> But this DLL has a function defined as follow:
>
> int MDIO_Read (int device, int address, int *result_vector);
>
> Where result_vector is ex
Hi!
I''m trying to wrap a DLL using Win32::API and have succeeded for
simpler calls like:
int Connect(int port);
But this DLL has a function defined as follow:
int MDIO_Read (int device, int address, int *result_vector);
Where result_vector is expected to a int result_vector[512] array in
C. I
ooking for.
My second choice assumes all the web pages can fit in
memory. Web pages are not especially large so this shouldn't
be a problem.
my %page;
while ( my ( $year, $data ) = $sth->fetchrow_array ) {
$page{ $year } .= "$year - $data";
}
foreach my $year ( k
No this does not seem right.. I've tried using the below
but this still is not right?
my %seen;
while (($Year, $Data) = $sth->fetchrow_array) {
my $key = $Year;
print LIST "$top_template" unless $seen{$key}++;
print LIST "$Year - $Data";
print LIST "$b
ot;read: ",$buffer;
($message, $buffer, $done) = Sirsi::Utilities::DeChunk($buffer);
#warn sprintf ("\n%s|%s|%s",$message, $buffer, $done);
until ( $done ) {
while ( length ($buffer) ) {
($rebuild, $buffer, $done) =
Sirsi::Utilities::DeChunk($buffer);
- Original Message -
From: "Mitch Raful" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 3:03 PM
Subject: Why does while and sleep work this way
Can someone explain why the following code works:
#!C:\Perl\bin\Perl.exe
require
Mitch Raful wrote:
> Can someone explain why the following code works:
>
> #!C:\Perl\bin\Perl.exe
> require disk_perflib;
>
> while(1) {
>sleep(5);
>print "\n";
>printf "%.0d\%", disk_perflib::GetDisk();
> }
> But if I
Can someone explain why the following code
works:
#!C:\Perl\bin\Perl.exerequire
disk_perflib;
while(1) {
sleep(5); print "\n"; printf "%.0d\%",
disk_perflib::GetDisk();}
But if I remove the print "\n"; it won't
work. However, I can substitute b
TECTED]
> Sent: Thursday, March 20, 2003 4:00 PM
> To: [EMAIL PROTECTED]
> Subject: Hiding STDIN (keyboard) while typing
>
>
> Good Day All,
> I was wondering if anyone has previously run a Perl
> script that hides the STDIN from being printed to the STDOUT
> (cons
Gregory, Carlton wrote:
> Good Day All,
> I was wondering if anyone has previously run a Perl script that
> hides the STDIN from being printed to the STDOUT (console window)
> while typing?
>
> As in when getting prompted for a password.
>
> Is there a Console mod
Good Day All,
I was wondering if anyone has previously run a Perl script that
hides the STDIN from being printed to the STDOUT (console window) while
typing?
As in when getting prompted for a password.
Is there a Console module maybe Win32::Console?
Thanks in advance for your time and
Title: Another Net::Telnet question while we are on the subject!
Hi all,
I was just wondering about this:
I use Net::Telnet to send a command that takes anywhere from 3 to 10 minutes to complete.
Is there some way to create some activity indication while the command is out doing its
On Wed, 30 Oct 2002, Cristian Carvajal wrote:
> I have a question regarding to an aplication I am working on with an ulimited
>while cicle
>
> While (1) {
> #code
>
> }
>
> This cicle keeps asking until one of the exit functions appears to finish the cicle.
>
> I have a question regarding to an aplication I am working on
> with an ulimited while cicle
>
> While (1) {
> #code
>
> }
>
> This cicle keeps asking until one of the exit functions
> appears to finish the cicle.
>
> My problem is that the cicle cons
-
From: Carl Jolley [mailto:cjolley@;iac.net]
Sent: Thursday, 31 October 2002 2:00 AM
To: Rajendra Babu, Praveen
Cc: '[EMAIL PROTECTED]'
Subject: Re: Errors while using "perlcc"
On Wed, 30 Oct 2002, Rajendra Babu, Praveen wrote:
> Hello All,
> I am on Windows
I have a question regarding to an aplication I am working on
with an ulimited while cicle
While (1) {#code
}
This cicle keeps asking until one of the exit functions
appears to finish the cicle.
My problem is that the cicle consumues 100% of the CPU's
resources, making t
Hi
I have a Perl script that runs as CGI and uses Net::Telnet to connect to a
UNIX machine and execute a set of tasks. The system works except that the
user has to wait for the some time for the browser to show up something (it
waits till the control is returned from the Telnet process) . Part of
t's the best to poll
the socket. Something like that:
# the handler
use IO::Select;
use vars qw/*LISTENING_SOCKET/;
sub acceptor {
my $sel=IO::Select->new( *LISTENING_SOCKET );
while( $sel->can_read(0) ) {
# accept connection and handle request
}
}
$widget->repeat( $poll
John V. Pataki wrote:
> I am trying to write an perl/Tk application that will allow user
> interaction while at the same time monitoring a socket for other apps
> that want to talk to it.
>
> I seem to be able to do either or...
>
>
>
> I can write a simple ser
of course, when one of the
two modules is actively working on
something, the other one will be freezed.
so while you're trasferring data over
the IRC channel, the GUI will hang up,
and while you're doing something on
your window, the IRC communication will
be paused. this is subopti
I am trying to write
an perl/Tk application that will allow user interaction while at the same time
monitoring a socket for other apps that want to talk to it.
I seem to be able to
do either or...
I can write a simple
server to listen to the socket as in the example below
(examples
Craig S Monroe wrote:
>
> Hello All,
>
> I am a newbie to the list and have a question. I have searched for an answer
> through the
> docs, but cannot seem to locate a resolution.
>
> I have written a script that opens a socket to a particular device,
> and issues it commands. I would then lik
inventory for $item is $old{$item}\n";
}
print "\n\n";
foreach $item (sort keys(%new)){
print "new inventory for $item is $new{$item}\n";
}
___
Michael Prozinski
Interautomation, Inc.
email=> [EMAIL PROTECTED]
Dearborn =>
nd observations appreciated.
jpf
while () {
# read in old file line at a time
chomp;
for ($a1 = substr($_,1,12)) {s/^\s+//;s/\s+$//}
while () {
# find line in new file
$found=0;
for ($b1 = substr($_,0,12)) {s/^\s+//;s/\s+$//}
if ($a1 eq $b1) {
$found=1;
ked.
HTH
Andy
- Original Message -
From: "James E Keenan" <[EMAIL PROTECTED]>
To: "Perl-Win32-Users" <[EMAIL PROTECTED]>
Sent: Sunday, April 08, 2001 8:46 PM
Subject: Orphan Process While Using Textpad
> This question is for anyone who uses Textpad as his/her text
This question is for anyone who uses Textpad as his/her text editor when
writing and testing Perl. Generally speaking, I like Textpad a lot,
particularly its ability to do a "Tools/Run ..." and run Perl from within
the program (including the -c and -d flags). But I find it can't handle
standard
From: "Jonathan D Johnston" <[EMAIL PROTECTED]>
Subject: Re: Getting "More" while in the debugger
>
> Hi Scott,
>
> When I couldn't page with "more", I would redirect the output to a
> file. For example to dump %ENV to a file:
>
>
>
> Scott D Friedemann wrote:
> >
> > Some hashes, e.g., %ENV, have more entries than fit on one screen. How
can
> > I view the output of a command like:
> >
> > DB<1> X ENV
> >
> > one screen at a time?
> >
> > The man page says
> >
> > |dbcmd
> > Run the debugger command, piping DB::OU
Scott D Friedemann wrote:
>
> Some hashes, e.g., %ENV, have more entries than fit on one screen. How can
> I view the output of a command like:
>
> DB<1> X ENV
>
> one screen at a time?
>
> The man page says
>
> |dbcmd
> Run the debugger command, piping DB::OUT into your current pager.
Have you run the code without doing anything with DBI in the while or
foreach?
That is, why blame the DBI?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Dan Jablonsky
Sent: Friday, November 24, 2000 11:48 AM
To: [EMAIL PROTECTED]
Subject: while loop
Dan,
can you provide some source code please, as there are loads of
possible problems.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 24 November 2000 16:48
> To: [EMAIL PROTECTED]
> Subject: FW: while loop and DBI
>
>
Hi,
I recently downloaded perl from ActiveState and got Win32::API by PPM.
I am trying to call a function in my own DLL I created.
Every time I try to pass arguments perl56 crashes even if it is only a
single
integer. It seems to call system DLLs like kernel32 just fine with arguments
but not my
63 matches
Mail list logo