Jump to content

SergioFeitoza

uniGUI Subscriber
  • Posts

    301
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by SergioFeitoza

  1. Hi Mehmet … Thanks for the info …. , Yes, I prefer the pascal language to target internet browser. If I have the GLScene part of my code working with my Delphi + Unigui code it will become 100% ready as it is in VCL (figure below). I am looking for a wrapper for GLScene in pascal language for this. Actually, I posted, in the last 2 years, suggestions for this in GLScene forum. As I could not find I will try to do something by myself. An open code for doing the first steps would be good because I have some experience with GLScene. I collected some material about how to compile/transpile pascal codes to javascript (pas2js) . However I did not find a wrapper with free code. Can you give an example of existing wrappers for GLScene ? The references I have up to now listed here. Next wek I will start to read them in more details to see what I can get inside. PAS2JS https://github.com/Kryuski/pas2js-for-delphi SCENEJS http://scenejs.org/ GLGE http://www.glge.org/ WEBGL https://www.delphitools.info/2012/05/31/webglscene-something-is-brewing-in-the-lab/ SMART PASCAL https://en.wikipedia.org/wiki/Smart_Pascal Any additional information is very welcome.
  2. It is really a rare software in the electrical engineering field. With it working as a service, I will finally be able to dedicate most of my time to music production and writer activities (some info in my site cognitor.com.br ) My Instagram is in the top of the page. Thanks again.
  3. Hi Fred. Now taht my code is working I will go to the 3D views I mentioned before. Before going to JS, that I would have to study a lot, I will try to do a conversion of my GLScene sources If I succeed to put in the browser , simply the edges of a single cube I think I will do it. I will post here Regards
  4. Friends .... Thank you again … I understood our comments but I am still in the stage that the first that works for my code is the best. I was along 3 weeks trying with 64 bits because some of you indicated as more proper. For my “small” codes 64 bits worked well but for the main code of the figure by some reason did not work. Possibly it was only by some small reason that an expert in deployment would solve easily. But for me it was not possible to identify the cause. After Daniel’ suggestion with 32 bits+ apache it worked from the first time. From my side, if it works more or less well in the browser and clients can access it is sufficient. Early this morning I tried IIS, by 1st time. I installed it and followed all the instructions up to the last step. It was looking good but when I typed the address in the browser, I got an error and could not see the screens of the code. The same happened 3 weeks ago with Apache only, solved because Daniel kindly ask me to send the log file. Less than one hour after he gave me the solution. Possibly the correction, for IIS is easy, but I do not know how to do it. Just after I went to your great EasyInstall 3 for Windows Service. I followed all the steps of the Read Me file and was looking good. However, in the step 6 when I run CD/ Install.exe something strange happened and the Hello World screen did not appear. Possibly is also an easy thing to solve. I will try after having the service implemented with Apache which is the only one working up to now, thanks to Daniel’s analysis of the log file. Again, I thank you all very much. It would be great to have an installer like your fort Apache and IIS
  5. Dear Abaksoft ... your installer is great. I started to use it but as the Isapi + Alache solution worked I will come back to it more ahead. The information below may be useful to other people in the forum ........................ Dear Daniel. You found the error and the solution using Isapi + Xampp. As you wrote above, the error occurred because of the x86 ISAPI module running into an x64 compile Apache ISAPI module. Then I removed the 64 bits version and installed the XAMP 7.3.2 x86 . So, I went to the code and deployed as x86 (32-bit Windows) ISAPI module. Now it is running well in the local host (see the figure). Now I will clean some small parts and deploy in the web through my provider. After the service is available in the web – I hope by next week – I will try to do the same with IIS and Windows. Actually, I did a fast trial with them this morning. However, your solution worked first. Thanks to all of you which helped me açong these weeks , specialty to Daniel, Fred, Abaksoft and Silvio
  6. Dear Daniel. You found the error and the solution using Isapi + Xampp. As you wrote above, the error occurred because of the x86 ISAPI module running into an x64 compile Apache ISAPI module. Then I removed the 64 bits version and installed the XAMP 7.3.2 x86 . So, I went to the code and deployed as x86 (32-bit Windows) ISAPI module. Now it is running well in the local host (see the figure). Now I will clean some small parts and deploy in the web through my provider. After the service is available in the web – I hope by next week – I will try to do the same with IIS and Windows. Actually, I did a fast trial with them this morning. However, your solution worked first. Thanks to all of you which helped me açong these weeks , specialty to Daniel, Fred, Abaksoft and Silvio
  7. Thank you Daniel I will proceed as you menion and will inform after Regards and thanks again
  8. Hi Daniel ... As I do not understand very well what is "clean the log before" let me try to send the log file instaed of the rar one. If you can not open please tell me and I put it in my site and inform you The last line of the file says " [Tue Aug 11 18:44:25.261716 2020] [isapi:error] [pid 6844:tid 1908] (OS 193)%1 it is not a valid Win32 app Win32 válido. : AH02107: failed to load C:/swd/swd/index.dll " ( but I built as 64 bit) error.log
  9. Dear Daniel Thank you very much for your time helping me . The log file is attached. I am going step by step and the eror seems to be in the MainForm or ResultsForm or unit (without form) U0D. Just to remember , it works well in standalone and I am using the same servermodule and mainmodule that is working wel in another code. I am now using only external images and the size of the dll is 16 Mb logs.rar
  10. Thank and well understood Fred. II am working in these points just now. I will post in the next days
  11. Do any of you know about some published site using games or even animations, using Unigui + Delphi ? If you know please indicate me the link. Thanks
  12. Thanks Fred Your comments are clear. About the forms I am checking if it makes a positive effect to transfer some “calculations” to units without forms. Your comment about “Using external images always” is quite relevant in my code. Now I noticed that many of the figures are “internal” and actually they are many. I will check this. My strategy will be, at first, to try deploying the code as it is now as a Windows Service and IIS. If I succeed, I stop. If I do not succeed, I will do the changes in figures and code. I will post the results here.
  13. Dear Daniel. Thank you very much for your answer However, it is a little bit more difficult than I am looking for. I saw, by chance, last week, a way of doing like I wrote above. The problem is that I lost the link and I am not finding now. I will continue looking for . I think it was some kind of windows function
  14. Thank you very much Abaksoft. I will check about Service and Easy_Install_3.0 . I wll write soon ....
  15. Which kind of property or functions could I use to check, in design time, if a code is Standalone or Isapi ? . I need to do something like: If mode= standalone then AutoStartBrowser Else {Isapi} do another_thing;
  16. Hi Fred. Thank you for your always useful vision and comments. It arrived in the right moment that I need to try to use ISS. I started with Apache by the same reason why most people use MSWord. It was the first I had contact for deployment. This is the first time I use Isapi DLLs with browser although I have experience with VCL. I need to do it because now I learned that standalone mode do not attend my need of putting the code as a service. If I understood this 2 years ago, I would go directly to Isapi and not use my time with Standalone. For Standalone my “big” calculations code is ready and running well. However, it is useless to run as a service ( licenses, etc…). About Isapi + Apache I succeeded – in part - do deploy the code. The initial doubts and errors are superseded, and I deployed successfully a part of the code. However, I arrived at the point of my post of yesterday “Size of ISAPI DLL may be a problem even if works well as Standalone?” The calculations code uses many variables. I could deploy it using a “less heavy” MainForm, with a much lower number of variables. I am using exactly the same MainModule (30 TMyQueries) , ServerModule and LoginPage are exactly the same. After many tests and without compilation / build errors, when I run in the browser I continue having the ERROR 500 when using the complete MainForm I in the figure attached) So, before trying with IIS, I would enjoy to have your view on the following: 1. From the point of view of size, if it works properly in standalone, should work well as ISAPI ? . The codes are exactly the same except for the “first line” 2. Is there a way to increase the stack or something like this ? 3. Of I use IIS the performance may be better than Apache Any suggestion is welcome. I think there is very few possibilities for the optimization of the “weight” of the code. The size of the DLL is around 20 MB
  17. I continue trying to deploy my code Isap+Apache. It works very well as standalone and no problem related to its size. It is a calculations code with many variables For the ISAPI DLL I could deploy and make it work using a “less heavy” MainForm, where there is a much lower amount of variables. The other units as MainModule , ServerModule and LoginPage are exactly the same. After many tests and without having compilation / build erros I continue having the ERROR 500 when I use the full code. So, supposing that the reason for the ERROR 500 is the number of variables, I ask two questions: a) From the point of view of size, if it wors properly in standalone, should work well as ISAPI . The codes are exactly the same except for the “first line” b) Is there a way to increase the stack or something like this ? Any suggestion is welcome. I think there is very few possibilities for the optimization of the code. The size of the DLL is around 20 MB
  18. Hi Abaksoft. Très bon et utile. C'est bon de pouvoir voir quelque chose d'écrit en français. I am listing some points like this and will post all of them at the end of deploymment. Now I am trying to find another cause for the ERROR 500 when running after a successful Build. I think it is related to the use of MySql data base. When I deploy with the mdb file as in DBAppDemo there is no error but whrn I use MySql I think something is still missing. For example, it was necessary to include a certain FDGUIxWaitCursor1 which was not needed in Standalone. These last days I learned that the easier strateg is to work – from the begining – to create a DLL working in the localhost and after ( now I think not necessary) to convert to standalone just recompiling uncommenting the first line..
  19. Thank you very much Abaksoft. Well understood. I was not deleting manually I learned and solved my difficulties with Apache and I can now deploy the codes , for example the demos I am now trying to deploy my (big) code and I am receiving some ERROR 500 when browsing not caused by Apache. Compile well I am reviewing thecode to identify the causes . One of them, for example is to use ExtractFilePath(GetModuleName(HInstance)) instead of ExtractFilePath(Application.ExeName ) I think that correcting Server Module nd Main Module it will work as well as it works in standalone mode Regards
  20. Dear Ron Thank you very much and congratulations for the high quality and didactics of the material that you included in this post. It will be very useful for me to clean up and to adjust what I have done after 3 weeks trying to deploy ISAPI + Apache. I have two small doubts in the file httpd.conf: a) In the # DirectoryIndex part is written b) <IfModule dir_module> c) DirectoryIndex index.html d) </IfModule> · Should I include “DirectoryIndex index.dll … before…. index.html ? · If , instead of the directory C:/apache24/test" I had two directories (two apps) named testA and testB and including testA.dll and testB.dll , could I , instead of naming index.dll, to write something like: …. Directory testA.dll testB.dll index.dll …. ? As finding the right post in the forum is frequently difficult, in the middle of so many posts, I suggest to FMSOFT team to put these files and text in the first line of the page of the Manual : http://www.unigui.com/doc/online_help/apache_2_2.htm READ FIRST THE FILES: C:\Apache24\INSTALL.txt C:\Apache24\conf\httpd.conf In this post from Ron, there is an example project, with windows binaries of Apache 2.4 from ApacheHaus, in the attached file. 1) Unzip to C:\Apache24 2) Go to \bin subdir and run httpd. 3) Open http://localhost:81/test in browser, to load test project in \test subdir. The only modifications to the httpd.conf that I did was 1) For the mime section: AddHandler isapi-handler .dll 2) <Directory "C:/apache24/test"> Options FollowSymLinks ExecCGI AllowOverride None DirectoryIndex test.dll Require all granted </Directory> Alias /test "C:/apache24/test" P.S: The ISAPI module was already activated in the httpd.conf. It took about ten minutes to make this example project. Thanks again Ron, I owe you this
  21. Does anyone know what I have to do to avoid this error when I try to open some Unigui demos ( for example the LoginDemo) ? [dcc32 Fatal Error] uIdBaseComponent.pas(162): F2048 Bad unit format: 'C:\Program Files (x86)\FMSoft\Framework\uniGUI\uIndy\uIdGlobal.dcu' - Expected version: 30.0, Windows Unicode(x86) Found version: 30.0, Windows Unicode(x64)
  22. ATTENTION: Seems that worked when I added 64 bits platsorm. I will do more tests today and inform here I got info about this here http://unigui.com/doc/online_help/creating-a-new-apache-project.htm I am suggesting to Unigui team to add this to the Manual (about 32-64 bits) in the first line part "Deploying with Apache"
  23. Hi Ron Seems that worked when I added 64 bits platsorm. I will do more tests today an to inform here I got info about this here http://unigui.com/doc/online_help/creating-a-new-apache-project.htm I am suggesting to Unigui team to add this to the Manual (about 32-64 bits) in the first line part "Deploying with Apache"
  24. Abaksoft Seems that worked when I added 64 bits platsorm. I will do more tests today an to inform here I got info about this here http://unigui.com/doc/online_help/creating-a-new-apache-project.htm Maybe is good to add this to the Manual (about 32-64 bits) in the first line part "Deploying with Apache"
×
×
  • Create New...