Posts: 28
Threads: 10
Joined: Apr 2020
Reputation:
0
Location: the Netherlands
Hi,
I experience unexpected freezing.
The program runs much slower then in Delphi, so a simple procedure of a few lines the wait sign appears for less then a second.
So for example when I click on a listbox, the first command is disabling the listbox and at the and of the procedure enabling again, otherwise when you click 2 times the program freezes.
The same I have when switching form one form to another and back.
Is this normal and what to do?
Posts: 1,136
Threads: 37
Joined: Mar 2018
Reputation:
30
Location: Limassol, Cyprus
There is not nearly enough info in this message to even begin to help.
Do you have any issues with the Guess demo?
Posts: 28
Threads: 10
Joined: Apr 2020
Reputation:
0
Location: the Netherlands
05-14-2020, 04:45 PM
(This post was last modified: 05-14-2020, 04:46 PM by newuser.)
No, just a small new application, with a few listboxes with on click a few lines of code.
Just 4 form-pages, nothing complex.
What information do you need?
I can send you the code... or give you the page and login code.
Posts: 28
Threads: 10
Joined: Apr 2020
Reputation:
0
Location: the Netherlands
05-15-2020, 07:18 AM
(This post was last modified: 05-15-2020, 07:56 AM by newuser.)
Yes, both are checked on every form
Posts: 28
Threads: 10
Joined: Apr 2020
Reputation:
0
Location: the Netherlands
I used the on click.
Now I tried the onAsincClick and set the LockOnAsyncEvents true.
Now there is no freezing.
Is this normal and should one not use the onClick?
Posts: 1,136
Threads: 37
Joined: Mar 2018
Reputation:
30
Location: Limassol, Cyprus
You have not even shown your code for your onclick. Im sorry but we are not mind readers.
Posts: 1,136
Threads: 37
Joined: Mar 2018
Reputation:
30
Location: Limassol, Cyprus
If you are cycling an entire dataset its likely slow. Replace your click event with something simple like updating a label or button and no extra code and you will see that it is not IW slowing things down.
You are setting params and opening a dataset inside of a loop which will be very slow as well.... If that loop is 1000 items then its repreparing and reopening a qCheckOfVol that many times. This code would run just as slow in a desktop app as it does in IW. There is no difference in such code desktop or IW.
Posts: 28
Threads: 10
Joined: Apr 2020
Reputation:
0
Location: the Netherlands
So, I noticed that in contrast with a Delphi program, you can press a button while it is still processing.
Which way to go?
You one lock / disable every button on click when there is a litle bit more code to process?
When yes, a suggestion for new releases to make a property for this?
Or is there a better way?