Discussion:
Restart BDE
(too old to reply)
Mark
2008-12-03 20:02:18 UTC
Permalink
I have been looking at bdealiasex.cc in the duflp. It has a function RestartBDE. This suggests it is possible to restart the bde while inside of a running application. I tried this and it ran without incident.

I have an app that requires me to change the path in the bdealias. To be sure this change takes effect within the app, this RestartBDE sounds like it would be what I need.

Looking for comments/suggestions on whether this sounds ok, e.g., think it would cause some instability in the app after restart that may show up much later? Has anyone tried this out and found any problems in restarting the bde in a running app in this way?

Thanks for any and all ideas on this,
Mark
Ronnie MacGregor
2008-12-03 21:22:38 UTC
Permalink
On Wed, 03 Dec 2008 15:02:18 -0500
Post by Mark
function RestartBDE.
I have an app that requires me to change the path in the bdealias.
To be sure this change takes effect within the app, this RestartBDE
sounds like it would be what I need.
Yes, this is what you need. Be aware that any existing BDE data connections
will be broken by doing this, and will have to be re-initiated.

Have a look at :

http://www.dbasedeveloper.co.uk/rmAlias/rmAlias.htm

which has additional functionality.
--
Ronnie MacGregor
Scotland

Ronnie at
dBASEdeveloper
dot co dot uk

www.dBASEdeveloper.co.uk
Ronnie MacGregor
2008-12-03 21:24:50 UTC
Permalink
On Wed, 03 Dec 2008 15:02:18 -0500
Post by Mark
function RestartBDE.
I have an app that requires me to change the path in the bdealias.
To be sure this change takes effect within the app, this RestartBDE
sounds like it would be what I need.
Yes, this is what you need. Be aware that any existing BDE data connections
will be broken by doing this, and will have to be re-initiated.

Have a look at :

http://www.dbasedeveloper.co.uk/rmAlias/rmAlias.htm

which has additional functionality.
--
Ronnie MacGregor
Scotland

Ronnie at
dBASEdeveloper
dot co dot uk

www.dBASEdeveloper.co.uk
Ronnie MacGregor
2008-12-03 21:27:05 UTC
Permalink
On Wed, 03 Dec 2008 15:02:18 -0500
Post by Mark
I have an app that requires me to change the path
Why not just switch to another alias which has the other path ?
--
Ronnie MacGregor
Scotland

Ronnie at
dBASEdeveloper
dot co dot uk

www.dBASEdeveloper.co.uk
Mark
2008-12-04 04:42:18 UTC
Permalink
Ronnie,

There are many dmd involved in the entire app., plus other locations where the path to a particular alias is used in the code. By changing the path of this alias, all the dmds and code already set up to use that alias can be used as is. Otherwise, I think I could create a _app.cAlias1 and update the name of the alias after setting the path in that alias. But if RestartBDE does the trick, it will save a lot of coding for me.

RestartBDE seems to be working and I started distributing the app to existing clients with the change.

Thanks for rmAlias. Very interesting and expect it will come in handy.

Mark
Post by Ronnie MacGregor
On Wed, 03 Dec 2008 15:02:18 -0500
Post by Mark
I have an app that requires me to change the path
Why not just switch to another alias which has the other path ?
--
Ronnie MacGregor
Scotland
Ronnie at
dBASEdeveloper
dot co dot uk
www.dBASEdeveloper.co.uk
Loading...