, ,

Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

How best to setup oecgi for development (OpenInsight 32-Bit)

At 19 JUL 2004 03:06:23PM Paxton Scott wrote:

I seem to be going around in circles. I am on w2k with Apache all on a dev. machine. If I set CreateFlags to 1 and ShutDownSession to 1, then oecgi is called, but nothing else seems to happen. If I cancel out and repeat, then I get Oengine return code 38, can't create engine (one already exists)

If I set CreateFlags to 2 and ShutDownSession to 1 then the process runs ok, but the engine is not closed, so if I modify and recompile a proceedure and rerun, it runs the previous copy. Thus, I have to reboot to close the oengine. I find myself rebooting all the time.

I must be missing something on how to setup for development.

I'd like to be about to use the debugger, change and retry without rebooting. Is there doc somewhere on a good way to configure for development?

arcs@arcscustomsoftware.com

[url=http://www.arcscustomsoftware.com]ARCS, Inc.


At 19 JUL 2004 04:04PM Pat McNerthney wrote:

I'd use an external engine already running on your desktop.

To start the external engine, invoke OpenInsight with a /SN= command line switch. To connect to this external engine, specify \\.\ for the ServerName OECGI registry setting. Using a tcp/ip port number instead of a named pipe name allows you to connect without any NT authorization.

Something else to be aware of is if you prefix the ServerName with \\.\, then an [i]external engine is created using the oengine.exe executable. If you do not explicitly indicate the \\.\ in the ServerName, then an internal engine is created under the currently executing process, in your case the Apace web server.

Pat


At 19 JUL 2004 04:35PM Paxton Scott wrote:

Thanks for the hints pat. I had used external engines successfully when calling from PHP, and it was easy to stop and start them.

I'll give it a try with oecgi.

arcs@arcscustomsoftware.com

[url=http://www.arcscustomsoftware.com]ARCS, Inc.


At 19 JUL 2004 05:06PM Paxton Scott wrote:

Pat, I must have missed something. Apache is using port 80.

In the OECGI Registry I set ServerName REG_SZ \\.\80

(I did not change anything else, so I still have CreateFlags REG_DWORD 2

and ShutDownSession REG_DWORD 1

Username DCE, DatabaseName DCE, etc.

My desktop shortcut to launch is:

C:\revsoft\oinsight\oinsight.exe /AP=DCE /UN=DCE /SN=80

After starting Apache and attempting to launch OI from the shortcut, I get "OpenInsight bootup failed."

I must have misunderstood your directions. Can you straigten me out?

Thanks mucho!

arcs@arcscustomsoftware.com

[url=http://www.arcscustomsoftware.com]ARCS, Inc.


At 19 JUL 2004 05:17PM Pat McNerthney wrote:

You need to specify the port number you want OpenEngine to use, not the port number of your Apache web server. These are two completely independant entities. OpenEngine tried to open port 80 for incoming connections and sure enough it was already in use by Apache.

Pat


At 20 JUL 2004 10:41AM Paxton Scott wrote:

Thanks, Pat

brain freeze here!

Works great.

Paxton

View this thread on the Works forum...