PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: Thomas Bock on October 10, 2018, 09:02:34 AM

Title: slow msgbox
Post by: Thomas Bock on October 10, 2018, 09:02:34 AM
After moving several client machines to Win10 we see slow message boxes on all these clients. It turns out that all types of msgbox are drawn instantly as long as no title text is used. The delay is round about 1 second.

instant draw
msgbox "A"
msgbox "A","","?,YESNO",a$

slow draw
msgbox "A","A"
msgbox "A","A","?,YESNO",a$
Title: Re: slow msgbox
Post by: Devon Austen on October 10, 2018, 09:27:54 AM
I just tested here with PxPlus 2018 (V15.00.0002) and all message boxes come up instantly. I can see no difference if there is a title or a default title.

I'm on Windows 10 Pro Version 1803.
Title: Re: slow msgbox
Post by: Thomas Bock on October 10, 2018, 09:53:42 AM
I'm on Win10 Pro 64 bit with PxPlus V14.
The delay is significant on all clients.
Title: Re: slow msgbox
Post by: Devon Austen on October 10, 2018, 10:02:46 AM
My Windows is also 64-bit.

I tried PxPlus 2017 (V14) and I still do not see a delay.

Are you using WindX? If so what OS is the server running on?

I would suspect something to do with your setup as I am not seeing this issue here.
Title: Re: slow msgbox
Post by: Thomas Bock on October 10, 2018, 10:11:13 AM
I tried WindX and a local installation. Both behave in the same manner.
Title: Re: slow msgbox
Post by: James Zukowski on October 10, 2018, 10:25:20 AM
I've seen slow objects on non-local clients. We have a couple of remote locations around the country that experience some delays with folders, etc. Those are typically about 1 second per additional WindX transaction.

The creation of a MSGBOX - depending on options - can be multiple transactions. The first is the creation of the window. The second may be using a 'CAPTION' to set the title.
Title: Re: slow msgbox
Post by: Devon Austen on October 10, 2018, 11:28:46 AM
Generally a MSGBOX call just results in a system call to Windows to display a message box. Unless you set your system up to use custom message boxes.

Is your 'MX' system parameter ON? If so are you using the default custom message box (*ext/system/msgbox.gui) or are you using a user-defined message box (*ext/msgbox.gui)?
Title: Re: slow msgbox
Post by: Thomas Bock on October 11, 2018, 01:34:44 AM
prm('MX') returns zero in our environment, so msgbox triggers the system component.
I started explorer and tried to delete a file. The confirmation dialog takes round about 1 second to appear here too.
Looks to be system issue.
Thank you all. Thread closed  :)