My app consist from Main form and 6 other forms. One of those other forms is my 'folder select dialog'. If, while running the app, Main form and one of other forms access the 'folder select dialog' (not both forms at once), than close the app - the app will exit with memory violation error. If I open the 'folder select dialog' just from one of the forms - app will exit without errors.
After some hacking the code I had following situation: just activating two forms that acess the 'folder select dialog', and close the app after that - errors again.
My temporary solution is to have more 'folder select dialogs' (one for each form).
Do anybody knows better solution?
What I need to do to get it working with just one 'folder selector dialog'.
In all the forms I have used:
Delphi-Quelltext
1: 2:
| implementation Uses: selector; |
Selector is the name of my 'folder select dialog'.