Hello,

I am new with the LibEV Module and it is what I need for my requirements.

One of these are, a event loop for File Changes on Windows.

I try to install EV on my Windows 10 Environment with Strawberry 5.32.1.1 and 5.28.2.1. Addional I tried via cygwin.
All with the same error on execution:

Simple Example Code I use to detect the File Changes:

-------
use EV;

# STAT CHANGES
my $w = EV::stat "passwd.txt", 1, sub {
   my ($w, $revents) = @_;
   warn $w->path, " has changed somehow.\n";
};

# MAINLOOP
EV::run;

-------

The get the following result with the second change on the file.

$ perl ev1.pl
passwd.txt has changed somehow.
 has changed somehow.
Attempt to free unreferenced scalar: SV 0xd8a8f0, Perl interpreter: 0xd86fe8 at ev1.pl line 12.


On a different windows I do:

$ echo "ttt" >> passwd.txt

$ echo "ttt" >> passwd.txt


What it wrong? What can I do?

Thanks for any hint.
best regards
Carsten




_______________________________________________
libev mailing list
libev@lists.schmorp.de
http://lists.schmorp.de/mailman/listinfo/libev

Reply via email to