Closing first window closes them all
Moderators: Tyler, Scott, PWB v2 Moderator
Closing first window closes them all
We are using PWB 2.1.0.4. If a user opens several browser windows and then closes the first one, they all close. Is there a way to fix that?
Thanks.
Jane
Thanks.
Jane
PWB is a single threaded application by design to help with runaway popups and minimize memory usage. Closing the parent window willl close all child windows.
To avoid confusion set the following in your INI file.
[Browser]
ConfirmClose=True
More information:
http://teamsoftwaresolutions.com/phpBB2 ... .php?t=270
--Scott
To avoid confusion set the following in your INI file.
[Browser]
ConfirmClose=True
More information:
http://teamsoftwaresolutions.com/phpBB2 ... .php?t=270
--Scott
Send a copy of your INI file as an attachment to support@teamsoftwaresolutions.com and I will take a look at it.
--Scott
--Scott
You should prevent your patrons from opening many instances of PWB by setting the following in your INI file.
[Security]
DisableSecondInstance=True
This will tell PWB to only use the one instance, so if a patron tries to open a new PWB, it will only open a new child window instead of a new parent window.
--Scott
[Security]
DisableSecondInstance=True
This will tell PWB to only use the one instance, so if a patron tries to open a new PWB, it will only open a new child window instead of a new parent window.
--Scott
So if I disable second instrance, the user can't open PWB several times, but can only create a new window (File | New) or from a link that opens a new window, right?
I think I changed it to this because users did not know how to open a New window, but knew how to open it again.
I guess it is a tossup.
Thanks.
Jane
I think I changed it to this because users did not know how to open a New window, but knew how to open it again.
I guess it is a tossup.
Thanks.
Jane
Now I am confused. I disabled second instance but I can start multiple PWB windows. When I close one I get the confirm close dialog, but it only closes the one.
I do see that if the second window is spawned from the first, that closing the first one causes them both to close. It seems confusing though to tell them that they all will close if they don't.
I do see that if the second window is spawned from the first, that closing the first one causes them both to close. It seems confusing though to tell them that they all will close if they don't.
A second instance is complete and separate PWB process.
A process includes the parent window process, main thread, and any secondary or child windows, and child threads. Closing the main PWB process closes all the PWB windows in the same process.
If you look in Task Manager on the Processes tab you can view the PWB processes (instances). It is possible to have multiple PWB processes that are independent of the other PWB processes. Closing one PWB process does not close the other PWB processes. Each PWB process can have multiple windows. When you close a process all the PWB windows in the current process are closed without affecting the other PWB processes.
By limiting PWB to a single instance (process), PWB will have a single parent thread that controls all the PWB windows, no matter how many PWB windows are open.
When you try to open a new PWB via a PWB shortcut, and PWB is limited to a single instance, then instead of PWB starting an entire new, and separate PWB process, PWB instead opens a new window in the current process.
A singe process saves memory, and CPU usage, and allows the single process to control all of the PWB windows.
Having multiple processes can be confusing when closing a window because you are not sure if you are closing a parent window which will close all the child windows, or closing a child window, and which child windows belong to which parents.
--Scott
A process includes the parent window process, main thread, and any secondary or child windows, and child threads. Closing the main PWB process closes all the PWB windows in the same process.
If you look in Task Manager on the Processes tab you can view the PWB processes (instances). It is possible to have multiple PWB processes that are independent of the other PWB processes. Closing one PWB process does not close the other PWB processes. Each PWB process can have multiple windows. When you close a process all the PWB windows in the current process are closed without affecting the other PWB processes.
By limiting PWB to a single instance (process), PWB will have a single parent thread that controls all the PWB windows, no matter how many PWB windows are open.
When you try to open a new PWB via a PWB shortcut, and PWB is limited to a single instance, then instead of PWB starting an entire new, and separate PWB process, PWB instead opens a new window in the current process.
A singe process saves memory, and CPU usage, and allows the single process to control all of the PWB windows.
Having multiple processes can be confusing when closing a window because you are not sure if you are closing a parent window which will close all the child windows, or closing a child window, and which child windows belong to which parents.
--Scott