I just rebuilt my MDI app with component pack 5.9.0.1 (BDS2006) and now it generates random access violations when opening a MDI child window that uses TMS controls
I try to open the window it generates the AV, try again AV, try again then it opens OK.
Using the MAP file to lookup the address I have traced it down to the AdvStyleIF ThemeNotifier RegisterWindow unit class and method.
procedure TThemeNotifier.RegisterWindow(Hwnd: THandle);
begin
if Assigned(RegMonitorThread) and not RegMonitorThread.WinList.HasValue(Hwnd) then <-- Break point here, this line generates the AV
RegMonitorThread.WinList.Add(Hwnd); <-- Never gets to this line
end;
begin
if Assigned(RegMonitorThread) and not RegMonitorThread.WinList.HasValue(Hwnd) then <-- Break point here, this line generates the AV
RegMonitorThread.WinList.Add(Hwnd); <-- Never gets to this line
end;
Any idea what has changed to cause this?
Regards
Adam