|
Posted by steve on 10/22/05 05:02
no line numbers? no specific error messages? that helps.
have you tried commenting code and uncommenting until you hit the error. i'm
not a big fan of "write the test before the code" but you should certainly
have some kind of testing framework in place so you can see exactly when and
where the introduction of code either alters or breaks desired behavior.
those are the first things i'd do to fix the problem...everything else is as
random as shooting for mark...in the dark. perhaps you'll hit it eventually
should you choose some alternate course of action.
hth,
me
"Lόpher Cypher" <lupher.cypher@verizon.net> wrote in message
news:ise6f.39$0V6.26@trndny06...
| Hi,
|
| I have a few classes, and I keep objects of those in session. I now got
| an error saying that I am trying to access a method of an incomplete
| object. Just can't figure it out now - anyone has ideas? The inclusion
| hierarchy is as follows:
|
| index.php -> class Page, starts session, in constructor inits database
| access as object of class DB
| class Page -> includes class Form_Register, inherited from class Form
| class Form_Register tries to access database via object of DB, at which
| point I get an error that it is incomplete (DB is stored in session as
well)
|
| Any ideas? I tried to close the browser (destrot session) and reopen it,
| but it's still the same..
|
| Thank you,
| Lόph
[Back to original message]
|