SergioFeitoza Posted August 6, 2020 Share Posted August 6, 2020 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) Quote Link to comment Share on other sites More sharing options...
Fred Montier Posted August 8, 2020 Share Posted August 8, 2020 Build it up, and run. Old DCU in your projects. Quote Link to comment Share on other sites More sharing options...
SergioFeitoza Posted August 8, 2020 Author Share Posted August 8, 2020 8 hours ago, Fred Montier said: Build it up, and run. Old DCU in your projects. Thank you Fred. It works fine Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted August 8, 2020 Share Posted August 8, 2020 The best way to install unigui updates is not to replace old but : 1. unistall from Control Panel 2. And Delete Manually C:Prgram Files (x86)\FmSoft\Unigui. With this you insure that not will persist old dcu folders. Quote Link to comment Share on other sites More sharing options...
SergioFeitoza Posted August 9, 2020 Author Share Posted August 9, 2020 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 1 Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted August 9, 2020 Share Posted August 9, 2020 9 hours ago, SergioFeitoza said: ExtractFilePath(GetModuleName(HInstance)) instead of ExtractFilePath(Application.ExeName ) Super ! Thx to share. Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted August 9, 2020 Share Posted August 9, 2020 Good to know : In general, avoid using classical Delphi paths (ExtractFilePath(Application.ExeName ). use instead something like : - MyFolder:= ServerModule.UniServerModule.StartPath + 'files'; - MyFolder:= UWindowsNewDirectory.GetProgramFilesDir With UWindowsNewDirectory in attachment Regards UWindowsDirectory.pas Quote Link to comment Share on other sites More sharing options...
SergioFeitoza Posted August 9, 2020 Author Share Posted August 9, 2020 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.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.