[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re:[MacPerl] CGI crash



Although I haven't seen exactly the problem you describe, I have seen
generally strange behaviour with MacHTTP PCGI's when I try to edit one that
is running. If I tweak a CGI and re-run it, I get multiple copies of it in
the Applications menu, and after the next reboot several "Rescued items" in
the trash which are PCGI's.

I've found that if I quit the PCGI each time before editing it, I have no
problems. It would be more convenient if I didn't have to do that, but I
can ive with it.

I also found that with the new version of MacPerl I can edit a CGI with
BBEdit by selecting the "Edit with BBedit..." menu, but if I try to save it
in BBEdit the file gets corrupted. That's because BBEdit can't read or
write in the PCGI format. BBEdit can open the CGI only through the MacPerl
menu, which causes MacPerl to read the file and send the data to the BBEdit
window.

This mans that if you want to use BBEdit to edit PCGI scripts, you have to
get the BBEdit file you want to save back to a MacPerl window, before you
can save it as a PCGI. This can be done easily through AppleScript.

Basically you open the file in MacPerl with the "Edit with BBedit..." menu,
then when you are finished editing it in BBEdit you select a menu item in
BBEdit that moves the contents of the window back to MacPerl. Not the most
elegant, but I can't think of any better way given the current
architecture.

-Dave

At 8:45 PM 8/13/96, you wrote:
> I -- and others, I think -- have been getting this MacHTTP error:
>
> Error -1712: Sending CGI sdoc Event (AppleEvent timed out)
> Error -1718: Getting CGIreply string (Reply hasn't arrived for this
>AppleEvent)
> 08/13/96        20:35:18        OK      pudge.pcix.com.
> :cgi-bin:audiocd.cgi    226
> Error -1700: GetAttrPtr retID (Reply Data could not be coerced to requested
> type (char))
> Error handling HighLevelEvent -1700
>
>
> ... or something to that effect.  I have found that this appears when I
> have edited the script with BBEdit while the MPCGI process is still open.
> MacPerl returns an error as well when I try to save or close the open
> BBEdit window.  Once the MPCGI process closes, or if I save the script from
> MacPerl first, I can then edit it again from BBEdit.
>
> Also, I have not been able to kill the crashed MPCGI process, even with a
> kill utility.  I can force quit it, but only after I have forcce quit every
> other process, so that ain't no good.
>
>
>
> #================================================================
> perl -e 'srand();if(rand>.5){$i=0;foreach(@ARGV){@$i=split(//);$z
> [$i]=0;foreach$l(@$i){$s[$i][$z[$i]]=$l;$z[$i]++;}$i++;}foreach$m
> (@s){foreach$g(@{$m}){print$g}print" ";$m++}}else{print(join(" ",
> @ARGV))}print"\n"' McClellan Clan Motto: Think On
>
> Chris Nandor                                       pudge@pcix.com
> PGP Key 0xB76E72AD                    http://pudge.petersons.com/