Jump to content

SwiftExpat

Members
  • Content Count

    222
  • Joined

  • Last visited

  • Days Won

    9

Posts posted by SwiftExpat


  1. 41 minutes ago, BobW said:

    If I use this code it doesn't find my table within my database:

    Sounds like it is not finding the database file, do it is starting with an empty database. 

    Is the Drivers.db in the same directory as the EXE?  If yes, then you need to set the working directory.  Test it by going to a command line and running the Exe, and make sure in dir *.db your file shows.

     

     


  2. 2 minutes ago, Cristian Peța said:

    does FireDAC is doing the same?

    Default in Firedac is to static link.  To change it you add a  TFDPhysSQLiteDriverLink component and then set the option.

     

    4 minutes ago, Cristian Peța said:

    Then you need to statically link SQLite code in your executable.

    Valid point, depending on the data layer it is something to consider.


  3. You just need to adjust the path on the db connection to allow for the path on the new machine. 

    Options:

    1. TPath to build the path --preferred
    2. fdcsqlite.Params.Database := TPath.Combine(TPath.GetHomePath, 'RTTKCaddie.db');

       

    3. adjust the file name to mydbfile.db with no directory and put it in the same directory as the exe
    fdcsqlite.Params.Database :=  'RTTKCaddie.db';

     


  4. 3 hours ago, Ian Branch said:

    All I know is that if I disable GExperts or Deputy the Delphi Opening effect disappears.

    Hello Ian,

    The etch-a-sketch lines were caused by Deputy having a line break in the license information for the splash screen.  It was visible on my machine in 10.4, but not in 11.1 .

    A new version is available. 2.4.2.

    Currently it is manual update via a menu option in the IDE, instructions here: https://swiftexpat.com/docs/doku.php?id=rttk:deputy:update

    When you have a chance I would appreciate you trying the update and reporting back if the etch-a-sketch lines are fixed.

    Thank you in advance

     

    • Thanks 1

  5. 4 hours ago, Ian Branch said:

    There appears to be a conflict with GExperts. 

    Thank you for reporting the error. I will try to replicate and let you know if I need more information.

    At first glance I do not know what would conflict, but I will load it in the debug session and try to reproduce.

    This is the feedback I need, Thank you Ian


  6. I created a plugin to terminate orphaned processes left behind by the IDE during development. You can see the demo here:

     

    Source and a release build are available here:

    https://github.com/SwiftExpat/Deputy

     

    Install it manually using these instructions: https://swiftexpat.com/docs/doku.php?id=rttk:deputy:install

     

    There is a gentle nag for you to download my compiled demo, which you can decline.

     

    The expert is built using TOTAL as a framework: https://github.com/DelphiWorlds/TOTAL

    If you want to build your own, a step by step to setup your project is here: https://github.com/SwiftExpat/Deputy/wiki/Step-by-Step---Create-Total-plugin-project

     

    Enjoy,

    SwiftExpat

    • Thanks 3

  7. Have you tried to finalize the variable? You have to call finalize before free.

     

    In my constructor:

    constructor TSERTCPythonEngine.Create;
    begin
      inherited Create(true);
      PE := TPythonEngine.Create(nil);
      PythonIO := TPythonInputOutput.Create(nil);
      PythonResultVar := TPythonDelphiVar.Create(nil);
    end

    In my destructor

    destructor TSERTCPythonEngine.Destroy;
    begin
      PythonIO.Free;
      PyMod.Free;
      PythonResultVar.Finalize; // prevent memory leak
      PythonResultVar.Free;
      PE.Free;
      inherited;
    end;

     


  8. 22 hours ago, Stéphane Wierzbicki said:

    Our Delphi is installed on a secured network

    It all just depends on how secure that network really is, you just need to justify the open ports in the event of an audit.

     

    I have been on the network side and the developer side before.  You should really start a discussion with the network team and have them tell you what requests the firewall / proxy are denying. I realize the network team can be rigid at the start of this conversation but from my experience with Oracle and MS products, it all depends on what features you use. Do not give up and prepare your manager for a slight uphill battle.

     

    You will need to determine what features in IDE need to work, lets take the welcome page for an example, do you need the youtube feed to populate? likely not.

    Do you use logging that connects out?

     

    Wireshark will get you the answer, but your firewall team already has that information in logs based on denials.

     

    Another option might be to investigate the GSA build and what is disabled in that. likely you will need to sign a NDA with your sales rep or the sales rep who services contracts that belong under GSA.

     

     

    • Thanks 1

  9. 5 hours ago, Uwe Raabe said:

    Beware the day when MVP turns into an abbreviation for Marketing Voluntary Populist 

    That day was many years ago in various forms, your actions keep you recognized as a technical MVP.

     

    You @Uwe Raabe , and several (many) others here, demonstrate, by your actions and responses, that MVP can still be more than a marketing position. You will always get recognition as an MVP in my view, and I am sure by many others.

    • Like 3

  10. 2 hours ago, Der schöne Günther said:

    I don't think comparing "memory usage before" and "memory usage after" in a release build is going to yield anything useful.

    I would agree with not much useful here. What is the threshold you are willing to allow for that memtable?

     

    What level of precision are you looking for? Task Manager / Perfmon will get you close enough.

    image.thumb.png.84d9a1f50c29e1f64169910bd9b2d700.png


  11. 2 hours ago, Michael Collier said:

    1) Open project group KastriDemosGroup 

    2) Make sure that the NFCDemo project is the Active Project in the Project Group and Save All.

    3) Open RAD Studio and in Welcome Screen hit Enter Key on KastriDemosGroup 

     

    Repeat but at step (3) but Double Click with mouse and you won't get the error. 

     

    I can reproduce using the Kastri demos and other projects & project groups.  Seems like onclick has a different path than on keypress.

     

    I think it is reproduce-able enough to file it, Ill give it a vote. Even if it does not get fixed it is nice to have an explaination

     

    Great job on documenting the steps to reproduce.


  12. 3 minutes ago, Uwe Raabe said:

    Are you sure that still works with Delphi 11?

    It still works with 11.0, you can always click on "View" --> Welcome page.

     

    I used it yesterday to cut some time when I was debugging an IDE expert.  The IDE loads a little faster, the welcome page really stumbles ( gittery to size the panes and the youtube video list takes a long time to load) on my system.

     

     

×