Home > Archive > dBASE Web Applications > November 2006 > Problems with a subclass that is confusing.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problems with a subclass that is confusing.
Dan Barbaria

2006-11-02, 7:12 pm

I'm building a new web app. I have a custom class (fileRerunClass.cc) that
I've use without problem in another web app.

As I started building the new web app, I used the same class but realize
that I would be better off creating a new class for the new app built on the
old class. So I simply copied the old class and renamed it making some
minor changes. It doesn't work and I don't understand why. What happens is
I get an error returned from the web server
that says:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.

Reviewing the apache error log it reports a "malformed header from script.
Bad header..."

The original class (fileRerunClass.cc) starts as follows:

class fileRerunClass of CGISession from "..\..\PnPWebclass.cc"

The program that uses it without problems has these lines of code:

set procedure to FileRerunClass.cc additive
oCGI = new fileRerunClass()
oCGI.Connect()

When I copied fileRerunClass.cc, I named it PrintRequest.cc and changed the
first line to this:
class printRequest of CGISession from "..\..\PnPWebclass.cc"

In the program that uses it I changed the code to:

set procedure to PrintRequest.cc additive
oCGI = new printRequest()
oCGI.Connect()

These are the only changes and I sure don't understand why it doesn't work.
Any ideas?

Thanks
Dan Barbaria


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com