RTC Forums
April 28, 2024, 10:34:43 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: failed to run the fmxFishFact demo  (Read 3363 times)
zxplzzc
RTC Expired
*
Posts: 8


« on: October 03, 2014, 04:30:38 AM »

On win7(X64) and  XE7,I failed to run  the fmxFishFact  demo for 64-bit windows,while succeeded for 32-bit windows:
[dcc64 Fatal Error] fmxFishFactCli.pas(21): F2048 Bad unit format: 'D:\Delphi\RealThinClientSDK\Lib\rtcFMX.GUI.dcu' - Expected version: 28.0, Windows Unicode(x64) Found version: 28.0, Windows Unicode(x86)
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: October 03, 2014, 10:28:34 AM »

When working with more than one Delphi IDE, or working with different target platforms, you should Build the Project at least once after switching the IDE or changing the target platform. If you Build, Compile or Run the Project for one target platform (in your case: Win32) and then try to Run or Compile for any other target platform (in your case: Win64) without using Build after switching the target platform, the Delphi compiler will skip compilation of units for which "up-to-date" DCU files were found, even if those DCU files are for a different target platform, or have been generated by a different compiler. This will result in the error message like the one you've just seen, when a unit which is being recompiled needs a unit which has not been compiled for that platform.

In short, use Build instead of Run or Compile to make sure that all PAS files are recompiled for the platform you are targeting.

PS. The commercial RTC SDK version does not ship with any DCU files. All the files are included with full source code. If you see an error message about a mismatched DCU file from any RTC folder, simply Build the Project to force the compiler to recompile the source code and generate up-to-date DCU files.

Best Regards,
Danijel Tkalcec
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.022 seconds with 16 queries.