Delphi XE - IW Ultimate 188.8.131.52
ISAPI App working perfectly compiled with IW 12.2.12;
Rebuilt ISAPI app with IW 184.108.40.206:
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...
I use such trick:
1. In the form of TIWForm1 I declare public property NeedRefresh which can be used so:
procedure TIWForm1.IWAppFormRender (Sender: TObject);
if FNeedRefresh and Grid.DataSource.DataSet.Active then
on E: Exception do
2. In the form of TIWForm2 after successful modification of a database and before a call of Release I insert
if Self.Owner is TIWForm1 then
TIWForm1 (Self.Owner).NeedRefresh: = True;
It works fine for me!