OECGI2 (OpenInsight 32-Bit)
At 24 JUL 2006 01:31:13PM David Phillips wrote:
Running OI721 on server along with OECGI2 (OengineServer service). Created webpage calling a custom inet function on Submit. Able to capture data from webpage and write to OI table. Made a change in the inet function and re-submitting the webpage does not pick up change. Deleted rows in OI table, commented out write statement in inet function, submit from webpage again and data still writes. Rebooted server and change still does not pick up. Are inet functions cached? Is there a way to reload object code? Very confused:~
At 25 JUL 2006 04:58AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
David,
All depends on how your engines are managed - are they dynamic (i.e created and destroyed for each request) or persistant?
If the latter you may have some problems as each engine has it's own program stack (i.e object code cache). So if you execute a proc on engine A, and then re-compile it on engine B, engine A won't get the changed version until something happens to clear it from the program stack (like a garbagecollect call or a re-compile on *that* engine).
When developing INET apps we usually tell OECGI to use same engine instance as the one used to edit the programs - that way the changes are always up-to date.
If this is not possible another solution would be to put in a garbagecollect statement at the end of your proc (or even in INET_FINALIZE perhaps?) - that should clear the program stack with every request and you could then remove it for your production system.
World leaders in all things RevSoft
At 25 JUL 2006 06:06AM Warren Auyong wrote:
What about making the INET routines EXPENDABLE?
At 25 JUL 2006 07:04AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
Warren,
The Expendable keyword is supported by the compiler (for backwards compatibility - I believe Rev put it back in the early days of OI16 after complaints) but actually does nothing in OI :( I've no idea why it wasn't implemented properly.
World leaders in all things RevSoft
At 25 JUL 2006 08:35AM Sean FitzSimons wrote:
David,
Have you shut down and restarted the OEngineServer service on the web server?
Sean
At 25 JUL 2006 09:57AM Warren Auyong wrote:
Like the old Pick RQM statement, eh? Made sense in a single user/thread environment like DOS to do nothing. I suppose the current Yield is functually similar to RQM under Windows.
At 25 JUL 2006 02:48PM David Phillips wrote:
OECGI2 did not have a registry setting for dynamic/persistent, but since OI is not running, I am assuming dynamic, although it works if OI is running too. I had to shut down the OEngineServer service on the server for the changes to take affect. GarbageCollect had no affect.
At 25 JUL 2006 03:14PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
David,
…GarbageCollect had no affect.
Did you test the GarbageCollect after you had restarted the OEServer? I just did a quick test here it works fine.
1) Added GarbageCollect to INET_FINALIZE
2) Started a persistant OE
3) Called the Inet Proc from the browser
4) Changed the Inet Proc in a *different* copy of OI
5) Called the Inet Proc from the browser - change has taken. No need to down the OE Server any more while developing…
World leaders in all things RevSoft