I have written some standalone apps with IW11, which worked fine, but maybe there are some better ways to solve some problems like global variables. After updating to IW12 on Delphi XE2 my apps are not running anymore and I don't know how to solve it:
In SCFORM.PAS
I created a new form for the standalone server app. On this, I placed some database controls to check the connection of the customers oracle database and read some parameters.
For session monitoring I use an array (session data is stored in database too). The port was changed after reading parameter info from database with
GServerControler.Port := portnum;
But after running the app, I can not connect to it with http:\\127.0.0.1:(portnum)
; I guess that the port change is not working?
So, my questions are:
- how to change the port at runtime
- how to change pool size at runtime
- is the use of global variables in
SCFORM.PAS
correct (for session monitoring) or should I use another way?
At the moment there are about 50 of 500 users online at the same time, but it may be more in future.