stacker_liew 5 Posted July 8, 2022 (edited) I don't want Delphi IDE from multi loading, can I do it? Edited July 8, 2022 by stacker_liew Share this post Link to post
SwiftExpat 65 Posted July 8, 2022 Multiple instances of the same version or multiple versions? What is causing multiple instances to run? Share this post Link to post
stacker_liew 5 Posted July 9, 2022 8 hours ago, SwiftExpat said: Multiple instances of the same version or multiple versions? What is causing multiple instances to run? My accidentally click twice. Share this post Link to post
SwiftExpat 65 Posted July 9, 2022 A simple solution would be to load GExperts, it already has a check on IDE start that would catch that. Share this post Link to post
stacker_liew 5 Posted July 9, 2022 1 hour ago, SwiftExpat said: A simple solution would be to load GExperts, it already has a check on IDE start that would catch that. I already installed GExpert, but I don't know whether there is an option for Delphi IDE to have TJvAppInstance functionality? Share this post Link to post
SwiftExpat 65 Posted July 9, 2022 You could write your own expert and install it in the IDE. Nothing native that I am aware of. What functionality are you looking for from TJvAppInstance? What is the workflow you are expecting when you accidently click twice? Share this post Link to post
Stano 143 Posted July 9, 2022 I have a proven procedure. I close one IDE instance I have small projects On the other hand, I have a problem that the IDE sometimes starts itself multiple times. And even during work. If I don't realize it, I cry. 1 Share this post Link to post
SwiftExpat 65 Posted July 9, 2022 4 hours ago, Stano said: If I don't realize it, I cry Cry because both instances have the same source open and edits overwrite each other? Maybe we can dry those tears, but let's understand the problem. I love that proven procedure above, rest assured we all have our proven procedures with the IDE 🙂 Share this post Link to post
Stano 143 Posted July 9, 2022 Nothing was overwritten. Because I always had only one instance displayed! But I saw more instances in task manager. Usually two. Both instances went to 30%. The responses were long and sometimes it was impossible to do anything. I already knew how much it beats. Fortunately, it calmed down. Share this post Link to post
Ian Branch 127 Posted July 9, 2022 There is an RSP for this.. https://quality.embarcadero.com/browse/RSP-23412 Share this post Link to post
SwiftExpat 65 Posted July 9, 2022 I added my vote, a direct solution would be the best. I doubt this will get much traction, I see you waiting since 10.3. As a workaround, what does GExperts not solve? (it is not the cleanest, but add some requirements and at least someone can evaluate it for a expert) Identify second instance - Solved, you have the screen above Close second instance - easy, just get the PID of ide and kill it / close it switch to first? - is this really necessary? Share this post Link to post
Uwe Raabe 2057 Posted July 10, 2022 I would probably never use this option as long as it doesn't take the IDE version and the given registry option (-r) into account. It is not uncommon for me to have about half a dozen instances running side by side. On the other hand, I rarely have some unwanted ones opening unexpectedly. Share this post Link to post
Stano 143 Posted July 10, 2022 Like a call. I am attaching screenshots of task manager and taskbar. I certainly didn't run the IDE multiple times. I didn't even do anything in it at all!!! It just told me there was a new EurakLog and I dropped the IDE. I added my vote, Share this post Link to post
Attila Kovacs 629 Posted July 10, 2022 check your Delphi shortcuts for an assigned key-combo, it makes no sense what you are telling us 1 Share this post Link to post
Stano 143 Posted July 10, 2022 (edited) I basically do nothing with shortcuts. I don't change their settings. In no program. I did not make any entry into the IDE! It doesn't make sense to me either. Same thing on Forum Delphi.cz. Unfortunately, the pictures speak clearly to the problem. Now it only happens sporadically. I somehow don't deal with it anymore. They're having fun with me. Things happen to me that no one has ever heard of. I always have to be something extra I'm not happy about it I don't know about the mouse sending me a double click or more instead of a single click. I threw away such a mouse once. Edited July 10, 2022 by Stano Share this post Link to post
Attila Kovacs 629 Posted July 10, 2022 Shortcuts like a shortcut to Delphi on your desktop or anywhere. It has a hoykey setting which you could have set accidentally. Did you check them? Use this: http://www.nirsoft.net/utils/shman.html Share this post Link to post
Stano 143 Posted July 10, 2022 I have one more specialty. Usually when I first open a file during a session I have the text shifted two characters to the left. Share this post Link to post
SwiftExpat 65 Posted July 10, 2022 1 hour ago, Stano said: the pictures speak clearly to the problem You show 2 instances of the IDE @ 28% cpu usage with only .2mb of memory. The executable is not even loaded into memory at that point, it seems like there are not enough resources. Is this a VM or physical machine? How old is the machine? Share this post Link to post
Stano 143 Posted July 10, 2022 I didn't notice the memory usage. It is a physical machine. He is 4 years old. There are enough funds for my work there. Current status. Share this post Link to post
SwiftExpat 65 Posted July 10, 2022 1 hour ago, Stano said: There are enough funds for my work there. My laptop is similar age and memory, but Delphi runs good enough. Startup is about 10 seconds. If it was my machine I would be starting with a clean OS install & clean Delphi. These symptoms are going to take you longer to troubleshoot and keep you crying. Share this post Link to post
Stano 143 Posted July 10, 2022 A clean install is the last thing I want to do. It's not that terrible. When it gets unbearable, I will need to buy a new PC I can't install W11 on the current one. Share this post Link to post
stacker_liew 5 Posted July 11, 2022 On 7/10/2022 at 1:46 AM, Stano said: Nothing was overwritten. Because I always had only one instance displayed! But I saw more instances in task manager. Usually two. Both instances went to 30%. The responses were long and sometimes it was impossible to do anything. I already knew how much it beats. Fortunately, it calmed down. Sometimes the IDE won't close probably event user had select exit or click the windows close button, still we have to use task manager to force close it. 1 Share this post Link to post
SwiftExpat 65 Posted July 11, 2022 10 hours ago, stacker_liew said: Sometimes the IDE won't close probably event user had select exit or click the windows close button, still we have to use task manager to force close it. This could be implemented in an expert by displaying a screen on startup which allows you to terminate the old instance. Not technically a prevention of multiple instances, but cleaner than having to start task manager. I can see this as a common frustration that can be solved, I add it to my list to explore as an enhancement. On 7/10/2022 at 2:26 AM, Uwe Raabe said: I would probably never use this option as long as it doesn't take the IDE version and the given registry option (-r) into account One more requirement check the username, I have a separate demo user account that I often switch to. Share this post Link to post
SwiftExpat 65 Posted August 10, 2022 If anyone is still interested, here is a prototype, would there be any other items to put on a wish list? Original instance is on the left, Second instance is on the right with the notification and option to close either IDE or ignore. It respects the -r option. Code is here: https://github.com/SwiftExpat/Deputy/tree/SingleInstance Share this post Link to post