Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2005 Jun : Forms, DLLs, and theming...
| Subject: | Forms, DLLs, and theming... |
| Posted by: | "Adrien Reboisson" (adrien-reboissonatastasedotcom@nospam.com) |
| Date: | 20 Jun 2005 16:29:36 |
Hi,
I have a problem when I try to display in form stored in a DLL
(D7/WinXP). If the calling application is "themed" the form is
shown sucessfully but when the application host is closed, a weird "too many consecutive exceptions occured, blah blah..." is
displayed. A quick google search gave me an answer, which was to
put the following code after having freed my form (from inside
the DLL) :
ThemeServices.ApplyThemeChange;
FreeThemeLibrary;
It works fine when the function which displays the form is called just one time. But if I try to display the form two or three times (from inside the same instance of the host app), I get another exception :
---------------------------
Notification d'une exception du débogueur
---------------------------
Le projet TestComDlgs.exe a provoqué une classe d'exception EAccessViolation avec le message 'Violation d'accès à l'adresse 00000000. Lecture de l'adresse 00000000'. Processus stoppé. Utilisez Pas-à-pas ou Exécuter pour continuer.
---------------------------
OK Aide
---------------------------
Okay, an AV... What should I do to be able to display my form whitout having any exception ?
Regards,
A.R.