Hello,
when closing the main window of the MicroStation Connect program, our MDL application gets informed by the unload-function (mdlSystem_setFunction(SYSTEM_UNLOAD_PROGRAM,...) and the exit design file function mdlSystem_setFunction(SYSTEM_EXIT_DESIGN_FILE_STATE,... Now we close all dialogs, terminate the ribbons, free all memory, but after restarting MicroStation Connect our application gets startet by MicroStation automatically. In V8i and all older MicroStation Versions our application was terminated. Perhaps this behaviour is useful for some users - but for our customers ist not sensefull. Is there a MicroStation variable to avoid starting MDLs automatically after closing MicroStation by closing the window (Alt+F4) ?
Kind regards,
Willi Spiegel
Philipp Lutz said:after restarting MicroStation CONNECT our application gets startet by MicroStation automatically
Have you customised MicroStation's user interface? I found that, if I have a custom tool palette that is opened automatically by a MicroStation CONNECT configuration, and if that tool palette has an embedded command string that references an app. (e.g. [MyApp]) then MicroStation loads MyApp.
[MyApp]
MyApp
Regards, Jon Summers LA Solutions
Hi Jon,
yes, we use a customized MicroStation user Interface. But if I start our application in a standard MicroStation Installation (just setting the MS_MDLAPPS variable), without adding ribbon menus, without WorkSet - the behaviour is the same. After Alt+F4 the program gets restartet automatically.
A colleage found a workaround by terminating our MDL program - when argv[1] is set to "MDLTASK". But I hoped there would be a better way.kind regards,
Willi
Philipp Lutz said:if I start our application in a standard MicroStation Installation (just setting the MS_MDLAPPS variable)
Why do you need to set MS_MDLAPPS? That variable points to a list of one or more folders where MicroStation applications (*.ma and *.dll) files are to be found.
MS_MDLAPPS
*.ma
*.dll
Configuration variable MS_DGNAPPS optionally specifies a list of applications to be started when a DGN file is opened.
MS_DGNAPPS
we use a ribbon bar to start several modules by name. If the MS_MDL and MS_MDLAPPS variable does not include our program path, the application is not restarted at MicroStation program start automatically - probabely because MicroStation does not find it.
But it seems to be impossible, to terminate a running MDL application program correctly, when MicroStation is shut down.
kind regards,Willi
Philipp Lutz said:it seems to be impossible, to terminate a running MDL application program correctly, when MicroStation is shut down
Does your app. behave differently when using Alt-F4 rather than using, for example, menu File|Exit to shut down MicroStation?
no, there is no difference between menu File|Exit and Alt+F4