Jump to content

Vandrovnik

Members
  • Content Count

    523
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by Vandrovnik


  1. 11 hours ago, Tntman said:

    If i understood right you have mobile application with service that is working in the background...

    Soji wrote "legacy application", I think it is not a mobile app, but a desktop one, which connects directly to a database.

    • Thanks 1

  2. 36 minutes ago, Tntman said:

    You are storing information to connect to remote database fore example MySql ? It is not good to store any password related stuff in any application, have you consider making API and perform DB request over it ?

    Hmm, and this API service will have to store password for the database somewhere... And his original application will have to store password for the API service somewhere, so now he has to store two passwords 🙂


  3. 45 minutes ago, Lorenzo B said:

    ... Even when working with affinity set on a single processor sometimes (about once out of 10) using debugging, the system stopped completely forcing me to forcefully turn off the PC.

    ...

    If you had to power off the computer, I would suspect hardware. While I do see frozen IDE +- two times a week, I have never to reboot PC - it is enough to run Task Manager and kill BDS there.

     

    Did you move some components from the old PC to the new one? Harddisk? Network card...?


  4. I use IBX components to connect to Firebird. In 64-bit version of my application, it loads client library from ibclient64.dll (it is defined in IBX.IBHeader.pas). Client library must be 64-bit. Client library may need other DLLs (such as MSVCR100.dll...).


  5. There is a switch in Option - you can try, whether it makes any difference:

     

    "Optimization in source code file access for large projects through a unit cache, particularly when residing on remote drives. The feature is controlled by a new IDE option at Tools > Options > IDE > Compiling and Running > Enable unit directory cache, and is on by default. "

     

    What about an antivirus? Years ago at school sometimes antivirus started to scan a file, locked it, and some applications complained about the file being inaccessible... It was always on a network drive.


  6. 5 minutes ago, aehimself said:

    Correct me if I'm wrong but a Win32 binary is a Win32 binary. A Win32 compatible OS should be able to run it, no? It's a bunch of assembly instructions at the end, after all.

    New versions of compiler may use new functions in Windows API, that are not present in Windows 2000. So application will start and then complain about missing something (or start and immediatelly die silently).

    • Like 2

  7. Is there a way how to obtain all defined symbols (like ANDROID, DEBUG etc.) and have them displayed during compilation? It would be nice if we put something like {$ShowDefinedSymbols} in source file and defined symbols would appear in messages from the compiler...


  8. 39 minutes ago, David Heffernan said:

    Ugh, the code you write shouldn't need those ifdefs. That the entire point of you using the libraries provided by others, like Emba. They present a common interface to you. That's the entire point of cross platform coding. 

    But in the reality it is sometimes like this (taken from Emba example Mobile Snippets\ShareSheet) :

     

    uses
    {$IFDEF ANDROID}
      Androidapi.Helpers,
      Androidapi.JNI.JavaTypes,
      Androidapi.JNI.Os,
    {$ENDIF}
      FMX.DialogService;
    
    {$R *.fmx}
    {$R *.LgXhdpiPh.fmx ANDROID}
    
    procedure TShareSheetForm.FormCreate(Sender: TObject);
    begin
    {$IFDEF ANDROID}
      FPermissionCamera := JStringToString(TJManifest_permission.JavaClass.CAMERA);
      FPermissionReadExternalStorage := JStringToString(TJManifest_permission.JavaClass.READ_EXTERNAL_STORAGE);
      FPermissionWriteExternalStorage := JStringToString(TJManifest_permission.JavaClass.WRITE_EXTERNAL_STORAGE);
    {$ENDIF}
    end;
    

     


  9. I have two monitors, but normaly work on VCL apps. FMX is new for me. Livebindings windows - ehm, I am glad that I almost do not need it; I just connected whole tStringGrid to tIBQuery or tIBDataSet and then edited columns. Now I hope that I will never have to open the Livebindings window again, because it probably would need more than just two monitors 🙂


  10. Well, in your question, you wrote "TStringGrid to be used with the new projects.". So my answer was for tStringGrid, unfortunatelly I did not clearly write it in my answer and I have already apologized about it.

    So when you are using tStringGrid, it has indexed property Columns. Each column has property Width. I believe that with this information you can set width of columns (I am using it and it works) and probably you can also read current widths of columns (which I do not use).

    Try to google FMX TStringGrid Columns.

     

     

×