ActiveState Community

Windows XP Pro

Komodo and php_xdebug.dll for PHP 5.1

I followed the steps and the Komodo debug setup wizard in the latest shipping versions of Komodo 3.5 for Windows XP to setup php 5.1

However when I try to single step in debug, I get a CLI error encountered.

I have set it up to use php-cgi.exe

The php_xdebug.dll is in the ext folder. Its about 184K. The php.ini file looks correct.

On another computer I have it working correctly but that one has an php_xdebug.dll of 141K.

I tried replacing the dll with the 141K, but I still get the same error. I tried the wizard again, but it keeps replacing the 141K dll with the 181K dll.

What is going on ? Why doesn't Komodo work out of the box for debugging? I remember another installation I had to fiddle around with the xdebug dll and then it just worked. I dont remember what I did though.

Komodo

It seems as though Komodo has a memory leak. After a period of working with mulitple files, Komodo will stop refreshing the code screens and requires me to exit the program and restart it. If I switch between tabs code will not change. Ive found that resizing the Komodo window will work temporarily while I make sure to save my code before I exit the program. With four other developers we have all had this happen to us on both the Pro and Personal. Is this a known issue and is there an expected resolution?

debug issue: Use of uninitialized value...

Not sure what I did to trigger this but ever since I tried block code I'm getting this warning and I tried several scripts that were once clean but now I get this message...

Use of uninitialized value in numeric eq (==) at (eval 10)[C:/Program Files/ActiveState Komodo 3.5/lib/support/dbgp/perllib/perl5db.pl:193] line 1.

I had to terminate Komodo after writting this code then this message appears during each debug session. I doubt that the code did anything to cause this but that is when I started to notice the issue.

If I type the following, komodo 3.5.3 locks up:

$buffer = <

nmake of packages resulting in Undefined UpdateHTML_blib error

I'm trying to build and install a couple packages, including Test-Class-0.19 and when I run Windows nmake I get the following error:

Undefined subroutine &main::UpdateHTML_blib called at -e line 1.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0xff'
Stop.

Any ideas why this is failing?

BTW, I'm running ActivePerl-5.8.8.819

Thx!

using ppm thru a proxy

I'm unable to install a package thru ppm because I have to go thru proxy.
How do I list my proxy server in environment variables?

Yvetteb

PPM eats much traffic and is very slow

I'm using activeperl 5.8.8.189,

after starting PPM waits for very long time and tries to download enourmously long list of packages, that make impossible to use it with dialup line.
And even with permanent internet connection I don't want to reload megebytes of lists every time.
Both GUI and command-line versions work this way.
Seems that the best way is to downgrade to one of previous versions of AP (with not hungry PPM) and never upgrade.
Is it right?

Same problem is with webpage of packages,
by default it lists all the packages for all platforms;
seems that suggesting user a form with selecting of platform and pattern for package name would be much more convenient.

OLE Error when Returning an empty Safearray to Perl Client

Hi all,

I am having some trouble returning a 1D Safearray to a Perl client, everything is OK when the array has some elements, but if the array is empty I get the following error:

Win32::OLE(0.1704) error 0x8002000b: "Invalid index"

The function in question is declared as:

HRESULT GetBoardInspectionResults([out, retval] VARIANT* boardInspectionResults);

While the Perl Code that uses it looks like:

my $arr = $fis->GetBoardInspectionResults();
print "Array size: @$arr\n";

The error happens on the first line (only when the array is empty)

I have been unable to find a fix, the OLE function works OK for an empty array in VB & VB script etc. I wonder if am I am missing something, is it possible to return an empty array to Perl? It's strange, when the array has some elements then everything is just fine!

How to write a call to the Test function in the PDK Regular Expression smaple file

Another newcomer question:

In the PDK->Samples->PerlCtrl->Regular Expression file, there are some functions ("Group," "Groups," "Test") -- how would one write a Perl expression to call those functions? I've tried coding the calls a number of ways, but nothing seems to click ...

Please help me pass an array from VBA to Perl and populate it. Newbie at wits' end!

Well, I went and looked at the PDK Samples I got with the distribution, and found nothing that would help me.

Here's what I want - surely this is child's play to experienced Perlers:

I want to pass an empty container for a set of strings from VBA into Perl, do some stuff in Perl, and populate the Collection with a set of strings. In general, the VBA side is easy, but I do have these VBA questions: should the container be typed in VBA as a Collection? Variant? Object? Something else? And why? Where is that documented?

I'm at a complete loss as to what to do on the Perl side:

Maximum of ~100 sockets, fileno keeps returning 160

Hello everyone,

I am running a fairly socket intensive application written in Perl. I am using the latest version of Activeperl on a WinXP Pro SP2 machine.

The application has, by default, 40 open sockets. If not additional sockets are opened everything is fine and the application keeps humming along nicely. However, when I start to open additional connections it somehow maxes out at around 100 open connections. At this point IO::Select refuses to give accurate results for can_read() for those sockets, and using fileno() on the sockets will always return 160.

I am confident that I am closing any socket properly and that I do not have any lingering open connections. There must be more than enough ports left to create sockets on.