With b7 installed, and the server running on the same computer, and PanX not running, PanX never connects a shared database to the server if I start PanX by double-clicking a database file. I receive a notification “Server Error Could not connect to [Server Name]”
But if PanX is already running, the database starts without a problem regardless of how it is started (clicking its icon or by a procedure).
In the first situation, it does not appear that the .Initialize procedure is ever reached; no console message comes from the it. It does apparently load custom statement, however. Also, it does not open auxiliary databases.
On my first attempt deal with this situation and understand how to recover, I put these two statements in my .Initialize procedure:
console "starting initialize in TGC Navigator" connecttoserver
That resulted in an endless loop; it just repeated these steps over and over until I forced quit. That one I really don’t understand.
Then I removed the above code from .Initialize and put a text display object on the first form displayed and put this code in it:
if info("serverconnection")=0 connecttoserver call ".Initialize" else nsnotify "server ok","sound","tink" endif
(The TDO displays ‘Click Me First’ if the database is not connected to the server.)
That seems to be a reasonable work around. All the databases after the first one opened should be normal, I think.