Jump to content

weabow

Members
  • Content Count

    86
  • Joined

  • Last visited

Posts posted by weabow


  1. Fault is mine : no problem at all

     

    Hi there,

     

    I need to extract evry filed in TAlphaColor. Here's my sample code :
     

    var Red, Green, Blue, Alpha: byte;
    begin
    
      paletteColor:= TAlphaColorRec.Create(TAlphaColors.Blue)
    
      Alpha := paletteColor.A;
      Red := paletteColor.R;
      Green := paletteColor.G;
      Blue := paletteColor.B;

     

    My problem is that Alpha is OK (255), but other fields return 0

     

    An idea ?

     

     


  2. Hi there,

     

    As an exemple, in a json, I push some data with accentuated chars like : é

     

    They appear in TJsonObject.ToString as : \u00E9

     

    I'de like to convert those codes, into TJsonObject.ToString, to their original representation \u00E9 --> é

     

    I can't find any way to that. An idea ?


  3. I'm not strong at threads, but have to use them due to crossplatform app. So :

     

    TThread.Synchronize is made to display something in the gui, surely. But I often prefer TThread.ForceQueue.

     

    After you have a lot of timers. In the past on Windows, that wasn't a good strategy. I'd prefer one timer with a switch.

     

    After you can use, I think, tthread.CreateAnonymousThread, but when you want it to do something to be displayed, you have to Synchronise, or ForceQueue, from this Anonymous thread.

     

    Also, if you have a variable in the main thread, and you want to change its value from Anonymous, you have to do it in a Synchronyse, from th Anonymous.

     

    And to finish, be careful of Android, which threads are a little bit differnet from the other plateforms.

     

    Hope this helps.


  4. Hi there,

     

    I've installed Athens, so of course I lost all my configuration, and above all, the types of messages printed in the output frame.

     

    I do not need all these informations, that "mask" my own informations. So in previous version I've arrived to control the output, but I can't arrive to do it on Athen.

     

    Where do I decide what appears in the output frame ?

     

    Typically, all the std messages during the use of the software are too mutch to me. I'd like to output only the messages I decide to output.


  5. My app runs with sqlite and uses 2 files, stored in deployment page for MacOs like that :

    libcgsqlite3.dylib in Contents\MacOs

    libcgsqlite3_fde.dylib in Contents\MacOs

     

    I have a Notarization error :

       {
          "severity": "error",
          "code": null,
          "path": "intelli7.app.zip/intelli7.app/Contents/MacOs/libcgsqlite3.dylib",
          "message": "The signature does not include a secure timestamp.",
          "docUrl": "https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087733",
          "architecture": "x86_64"
        },

     

    Any idea will be very appreciated...

     

    Solution

    The pb was that one of the libs had a path like that : c:\...\;

    It needs a path like : $(BDS)\Redist\osx64\

    So need to edit myapp.deployproj to change the path.


  6. Hi there,

     

    I've an app which runs fine on Delphi 11, using crypted (aes-256) SQLite db, throught FireDac.

     

    This code no longer runs under Delphi 12.

     

    An error is fired from FireDAC.Phys.SQLiteWrapper.pas, procedure TSQLiteDatabase.Key(const AKey: String);, line 2119 : if Assigned(Lib.Fsqlite3_key) then begin...

     

    It seems that Lib.Fsqlite3_key is not assigned.

     

    Any idea will be very appreciated...

×