Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 3
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 4353 times and has 2 replies Next Thread
fomilya
Newbie
Member's Avatar


Joined: Feb 25, 2015
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
Problems with running different processes by different users

We've made a runnable jar and given copies of it to different users on one computer (working on two desktops). But only one of them can run the program at a time. When the second tries, the new process starts and dies immediately. But we really need two and more users working with SH3D at the same time.

Is there anything we can change in code of the program to solve it?
[Feb 25, 2015, 3:04:26 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Problems with running different processes by different users

If you don't want to use the Single Instance Server, just comment the lines (or add a condition) in the addSingleInstanceListener, removeSingleInstanceListener and callSingleInstanceServer methods of the StandaloneSingleInstanceService inner class of SweetHome3D main class.
Note that if you disable this feature, you won't be able to copy paste items between launched application instances.
Please, explain why you want this behavior. If it's interesting, I could add a system property to disable the Single Instance Server.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Feb 25, 2015, 4:07:26 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
fomilya
Newbie
Member's Avatar


Joined: Feb 25, 2015
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
Re: Problems with running different processes by different users

I've made a mistake: in our situation two users try to launch the program as an administrator. So eventually the program couldn't run twice from one user (administrator).

However, you've given an exhaustive answer. We will try to do what you suggested. Thank you.

Now I'll try to explain our situation.
We made SH3D save all projects in a single folder, regardless of the user-selected location. We closed the folder from designers working in SH3D as a safety measure. But since SH3D must save the project in our directory, and designers need to somehow re-open the project, we have created a shortcut for the program that runs it as administrator. This led to a loss of the ability to run a program to multiple users simultaneously.
[Feb 28, 2015, 9:47:33 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved