OEngine loaded more than once (OpenInsight 32-Bit)
At 26 MAY 2003 08:21:28AM David E Schranz wrote:
I wish to ensure that a user does not accidently load oengine more than once. I am aware this is possible in the 32bit version of oi.
Is there a command to check whether oengine is loaded more than once and also to check how many users are logged on at any given point in time?
tia
David Schranz
At 26 MAY 2003 05:20PM Pat McNerthney wrote:
David,
Your question is pretty cryptic with regards to the environment you want to prevent oengine from loaded more than once, so I don't know if the follow applies or not.
When you perform the RevCreateEngine call, you can specify a flag of REV_CREATE_ENGINE_OPEN_ALWAYS (0x0002), which will attach to an existing engine if it exists, or will create a new engine and attach to that if it does not already exist.
Pat
At 30 MAY 2003 12:08PM David E Schranz wrote:
Pat
The issue is that if a user clicks onto Oinsight.exe it loads our programs , if while in the program the same user re-hits oinsight.exe, our programs is loaded yet again thu loading oinsight twice.
I wish to prevent this, so that once a user loads oinsight.exe from the same pc more than once, I can check for this instance and prevent the user from logging into oinsight more than once.
tka
david schranz
At 30 MAY 2003 12:58PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
Check SYSLOGINS in a logon routine and if you're there already abort…
World Leaders in all things RevSoft
At 02 JUN 2003 03:32AM Oystein Reigem wrote:
David,
Check SYSLOGINS in a logon routine and if you're there already abort…
I'm not sure what Sprezzatura think of when they write "logon routine". It could mean some programming in your app's main or startup window.
It could also mean a so-called "startup procedure" - code that is run very early when starting an application, at boot or change application time. For information about startup procedures see e.g .
I don't think this startup procedure stuff is docced in OINSIGHT.chm or ProgRef.chm. (I'll email Ira and ask if it can be included.)
- Oystein -
At 02 JUN 2003 07:54AM Ira Krakow wrote:
Oystein,
Of course I'll include it (after I test it, of course
). It's very useful.
Ira