on a high traffic volume website I get sometimes the following error:
Unknown member OBUSINESS
The line is in the Ok_click() function:
IF .oBusiness.oValidationErrors.Count > 0
I create oBusiness object in the OnLoad() start:
*****************************************************************
DEFINE CLASS Insert_Page as WWC_WEBPAGE OF WWC_WEBPAGE_FILE
*****************************************************************
oBusiness = nullFUNCTION OnLoad()
WITH this
.oBusiness = CREATEOBJECT("MyBusiness")
...
It does not come ever from the same page and I suspect it happens when there are too much simultaneous operations on server. There are 4 server instances file-based mode.
What it could be?
Thank you very much
Something is unloading the instance.
It doesn't matter how many instances are running since they are separate EXEs - they don't interfere with each other.
I suspect you have code that goes through the OnLoad() that either doesn't initialize the bus object, or on the other hand clears the reference before the page is done processing.
+++ Rick ---
Dear Rick,
on a high traffic volume website I get sometimes the following error:
Unknown member OBUSINESS
The line is in the Ok_click() function:
IF .oBusiness.oValidationErrors.Count > 0
I create oBusiness object in the OnLoad() start:
*****************************************************************
DEFINE CLASS Insert_Page as WWC_WEBPAGE OF WWC_WEBPAGE_FILE
*****************************************************************
oBusiness = nullFUNCTION OnLoad()
WITH this
.oBusiness = CREATEOBJECT("MyBusiness")
...
It does not come ever from the same page and I suspect it happens when there are too much simultaneous operations on server. There are 4 server instances file-based mode.
What it could be?
Thank you very much
West Wind Technologies
Making waves on the Web
from Maui