Delphi XE - IW Ultimate 12.2.13.2
ISAPI App working perfectly compiled with IW 12.2.12;
Rebuilt ISAPI app with IW 12.2.13.2:
On my dev Win 7 / IIS 7.5 the ISAPI app works fine
On a deploy Win 2008 Server / IIS 7.0 when a user attempts to connect to the ISAPI app generated the following error:
"Error message raised by the application: Cannot change thread mode after it is set"
I created a stand alone version of the app and it works fine on the same Win 2008 Server.
Been "bugging" me for days. Any suggestions?
For ISAPI ComInitialization is set to ciMultiThreaded and nowhere in the code is it changed...
TIA
Zane
I use such trick:
1. In the form of TIWForm1 I declare public property NeedRefresh which can be used so:
{code}
procedure TIWForm1.IWAppFormRender (Sender: TObject);
begin
if FNeedRefresh and Grid.DataSource.DataSet.Active then
begin
try
RefreshData;
.....
except
on E: Exception do
WebApplication.ShowMessage (E.Message);
end;
end;
{code}
2. In the form of TIWForm2 after successful modification of a database and before a call of Release I insert
{code}
if Self.Owner is TIWForm1 then
TIWForm1 (Self.Owner).NeedRefresh: = True;
{code}
It works fine for me!