Web Connection
Unknown member OBUSINESS
Gravatar is a globally recognized avatar based on your email address. Unknown member OBUSINESS
  Luca
  All
  Jan 26, 2015 @ 10:20pm
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 = null

FUNCTION 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

Gravatar is a globally recognized avatar based on your email address. Re: Unknown member OBUSINESS
  Rick Strahl
  Luca
  Jan 27, 2015 @ 01:45am

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 = null

FUNCTION 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



Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

© 1996-2024