Abaksoft
uniGUI Subscriber-
Posts
1558 -
Joined
-
Last visited
-
Days Won
87
Content Type
Profiles
Forums
Events
Everything posted by Abaksoft
-
Here we go : procedure TUniServerModule.UniThreadTimer1Timer(Sender: TObject); begin UniThreadTimer1.Lock; try //============== MyProcedure; //============== finally UniThreadTimer1.Release; end; end; To know : 1. We can not Use UniTimer in serverModule, use instead UniThreadTimer 2. We have to lock UniThreadTimer, execute a code then release it. 3. We can not use in MyProcedure something coded in MainModule or Main, as MainModule and Main are an Instance (Session Clientside) ! -> Common error : in myProcedure i want to use a SQL Query which is already coded in MainModule : This raises an AV. The good way is to create a classical Delphi Unit (not an UniguiDataModule) and rewrite the SQL query there. Regards.
-
Hi Erich, UniThreadTimer need to lock thread. Then you can insert your procedure inside the block. See the MegaDemo. i have worked with unithreadTimer on ServerModule to do automatic Backup everynight at 23:00, and that works fine. i will try to send you an example.
-
Hi Experts, I detect a small problem with FastMM5 in Delphi 10.3.3 Pro. This happens only with Unigui / FastMM5 No problem with VCL / FastMM5 No problem with Unigui / FastMM4 Just test this : 0. Add Library (32) : ...\FastMM\FastMM5-master\FastMM5-master 1. Run Delphi 10.3.3 Pro (with original borlndmm.dll in ..\bin) 2. Open ...\FastMM5-master\BorlndMM DLL\BorlndMM.dpr 3. Compile (Relase or Debug) 4. Quit Delphi 5. Just rename the original as : borlndmm_OLD.dll and replace it by the newer : BorlndMM.dll 5. Run Delphi 6. Quit Delphi then the message : "Invalide Pointer Operation" raises ! followed by : Acces Vilation at adress 2172415C in Module 'bds.exe', Read of adress 2172415C Note : Whit the original EMB (BorlndMM.dll) no problem in Unigui. I wrote to Pierre Leriche, but I had to delete my message, since the problem only appears with Unigui. The conclusion I came to is to use FastMM4 with Unigui, since it is totally free and is stable. _________ Regards.
-
@FmSoft Team, I think this topic is very important that it deserves to be mentioned in the documentation. I realized that a lot of topics have already been posted on this subject. This proves that it is really not obvious! Please update the doc. Thx
-
Thanks again. Confirmed, that works fine.
-
Thank you Donlego, Good idea. I will try...
-
On the same server : - UniApplication 1 (Port 8077) with Unigui Build 1523 / 64 bit - UniApplication 2 (Port 8078) with Unigui Build 1531 / 64 bit Run As Service (HyperServer) both Result: on the browser 192.168.1.10:8077 --> display UniApplication 2 192.168.1.10:8078 --> display UniApplication 1 Why ? I have to refresh twice or more the browser (F5) to get the good behavior (even with Delete data Navigations on browser options). @Farshad, did i forget something ? Regards... ______________ Delphi 10.3.3 Pro - Unigui 1531
-
Hi Frederick, a simple google search : FireBird vs PostGesql will give you the answer.
-
Erratum : As said by Mierlp and shown on the FastMM Forum : Using FastMM5 now, "require to pay for a license if your project is not GPL/LGPL itself". https://en.delphipraxis.net/topic/2749-experienceopinions-on-fastmm5/?do=findComment&comment=23123
-
in view of what I have read, we can use FastMM also in Release mode (a better memory management and Performance). How to : put it on the first Uses (.dpr file) : uses FastMM5, .... begin end.
-
Oh...., I understand Now. ServerModule, no acces UniMainModule procedure as MainModule is a Session ! Sorry for the question.
-
Hello, Why UniThreadTimer1 (From ServerModule) raises AV Exception when calling UniMainModule ? procedure TUniServerModule.UniThreadTimer1Timer(Sender: TObject); begin UniThreadTimer1.Lock; try //============== // Why ? MainModule.UniMainModule.DoSomething1; //=> AV Exception ! // And this = OK // MainModule.DoSomething2; //============== finally UniThreadTimer1.Release; end; end; Thx UniThreadTimer.7z
-
To resume : 1. Apache is not the problem (500 and more concurents sessions) 2. windows : limited by the Microsoft License Terms (20 sessions max). you can read this : https://forums.whirlpool.net.au/archive/2719488 SOLUTION : Buy a genius OEM Windows Server Edition 2019 from ebay for about 10 $. That what i am doing with my customers. These resellers guarantee the authenticity of these licenses as they are OEM. (This is not a joke, i never get bad surprise). Regards
-
@Farshad, Hello Farshad, i would like to show you this code from Oleg / Devart : https://forums.devart.com/viewtopic.php?f=28&t=39169&hilit=LConnection.PoolingOptions&start=15#p171444 Till now, we are puting on MainModule, the DB Connection component (without pooling technic). Ok, all works fine : each new session uses its own connecting resources. Today, we want to exploit the benefits of pooling. Many puzzles persist in my mind : • If we activate pooling connection, is that enough to work fine on unigui ? • Or do we have to take care of threads considerations (as Unigui is multi threads environment). ? Thx.
-
Hello Marko, 1. Never use Windows 10 as a server application. it's limited to max 20 sessions. always use Windows Server Editions. 2. Don'nt use a simple Standalone version in production. it's dedicated to build your application (debuging). Deploy always with [ iis + Hyperserver ] or [Service +. hyperserver ]. The expertise with somebody in the forum, shows that Appache in Wine is not Stable (you can wait for Appache on linux.... but this, is an other story).
-
Hi Wicket, i think this can help you : http://forums.unigui.com/applications/core/interface/file/attachment.php?id=4546
-
As this login form can't be resize, no need layout technic here. simply classical delphi centering : Select the two uniEdits then Right Click, choose horizontal center in window.
-
thx. • infact, in Desktop mode you can do it without Layout vbox. • in mobile you need vbox. http://forums.unigui.com/index.php?/topic/14398-what-is-the-effect-of-clientheight-if-alignmentcontrol-is-unialignmentclient/&do=findComment&comment=78021
-
-
Pierre Le Riche modified his code. All is OK NOW. http://forums.unigui.com/index.php?/topic/14304-newly-released-fastmm5/&do=findComment&comment=78271
-
The same way. For closing your uniguiApplication, close it from TrayIcone (on the bottom beside windows Date). Note : test memoryleaks only on Debug Mode (not Release).