[mapserver-users] My gis program
Joe Bussell
joe at otsys.com
Thu Nov 7 05:58:43 PST 2002
The cleanup errors are due to a poorly written interface to SWIG. The
code that connects PERL to the underliing C functionality creates ties
using perl hashes. Some interconnects are not proper hashes. I have no
idea why at this point, but I do know a hack that will eliminate the
cleanup warnings. In your mapscript.pm file everywhere you find a
DESTROY method you should return directly if the input is not a hash. I
offer the following example:
sub DESTROY {
return unless $_[0]->isa('HASH');
my $self = tied(%{$_[0]});
delete $ITERATORS{$self};
if (exists $OWNER{$self}) {
mapscriptc::delete_rectObj($self);
delete $OWNER{$self};
}
}
On Wed, Nov 06, 2002 at 07:21:17PM -0600, Puneet Kishor wrote:
> Well, the verdict is far from concrete.
>
> I tried running mapserver with mod_perl and received a bunch of errors.
> But it worked. There was a discussion about this, and it was concluded
> that the errors were a result of mod_perl. Eventually I got rid of
> mod_perl and ran mapserver... I still get a bunch of errors... but it
> works. The errors are mainly of the kind...
>
> [Wed Nov 6 17:44:07 2002] index.pl: (in cleanup) Not a HASH
> reference at /Library/Perl/darwin/mapscript.pm line 1144 during global
> destruction.
> [Wed Nov 6 17:44:07 2002] index.pl: (in cleanup) Not a HASH
> reference at /Library/Perl/darwin/mapscript.pm line 2415 during global
> destruction.
> [Wed Nov 6 17:44:07 2002] index.pl: Use of uninitialized value in
> exists at /Library/Perl/darwin/mapscript.pm line 2417 during global
> destruction.
>
> but, as I said, it still works.
>
> I would really like for mapserver to work with mod_perl. Primarily, I
> would like to use HTML::Mason (or embperl). I have been developing a
> generic application using HTML::Template, but Mason prefers mod_perl.
>
> Steve Lime would be able to comment definitely when that would be
> possible.
>
> Thanks,
>
> Puneet.
>
> On Wednesday, November 6, 2002, at 06:59 AM, woodbri at swoodbridge.com
> wrote:
>
> >Ruben,
> >
> >No, It currently MUST be built and run as a cgi program. There are
> >thread safety issues that are still being worked on. But this list
> >has representatives of some very large applications that get very
> >high number of hits and performance is not a problem.
> >
> >-Steve W.
> >
> >On 6 Nov 2002 at 13:52, Ruben Tsui wrote:
> >
> >>
> >>Hello all,
> >>
> >>I have this burning question which I've been afraid to ask.
> >>
> >>Is there a way to runMapServer in-process with Apache (a la
> >>mod_perl)
> >>to take advantage of any possible performance gain?
> >>
> >>I tried looking into the docs but counldn't find anything (yet) :(
> >>
> >>Thanks,
> >>Ruben Tsui
> >>
> >
>
>
--
Cordially,
Joe Bussell
On Time Systems
www.TrafficDodger.com
More information about the MapServer-users
mailing list