After a long shutdown of the application, it usually crashed when I clicked on the form.
I leave it idle every day to find out if I found a mistake, and finally this morning I started using it, and after a few clicks I got:
system error 1158 current process used all system descriptor credentials
So, somehow I use all the resources and, fortunately, this morning I started using the application when it was almost out of resources, and I used it until all the pens were no longer available. While on all other days I was too late and there were no more pens (this is what I suspect). Of course, in this case, the application crashed when I clicked on it.
Now could you offer a solution? I use threads that regularly check for new messages or count how many users are connected to the network. But I checked twice, and I free everything after each thread. (but maybe there is something else that I donβt know about threads). The application is always connected to the database (I use DevArt SDAC), in any case there were no disconnections, because in case of disconnection I have a warning, and I suggest the user to try to reconnect.
source share