Stephen Reid
October 9th, 2003, 10:19 AM
Hi all
I know this topic was posted recently but I wanted to start a new post. My question is in regards to the monarch_launch code that was posted on the earlier post.
I have tried time and time again to get this to work but have never been successfull. When I run the program on my PC it calls monarch_launch successfully then recognises monarch isn't running. It then opens monarch and also opens my report and model but when the monarch_launch sub finishes monarch closes down and the program crashes when it tries to monarchobj.closealldocuments because monarchobj is no longer running. I have also found that the monarchobj.isactive returns 0 whether monarch is running or not.
I found a way around this some time ago by placing a switch in the code. When the switch is on monarch keeps running and when it is turned off monarch closes.
It would just be nice to it without the switch and understand why this is not working.
Thanks in advance for any help
Stephen Reid
I know this topic was posted recently but I wanted to start a new post. My question is in regards to the monarch_launch code that was posted on the earlier post.
I have tried time and time again to get this to work but have never been successfull. When I run the program on my PC it calls monarch_launch successfully then recognises monarch isn't running. It then opens monarch and also opens my report and model but when the monarch_launch sub finishes monarch closes down and the program crashes when it tries to monarchobj.closealldocuments because monarchobj is no longer running. I have also found that the monarchobj.isactive returns 0 whether monarch is running or not.
I found a way around this some time ago by placing a switch in the code. When the switch is on monarch keeps running and when it is turned off monarch closes.
It would just be nice to it without the switch and understand why this is not working.
Thanks in advance for any help
Stephen Reid