Jump to content

sjordi

Members
  • Content Count

    206
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by sjordi


  1. Use the FDConnection BeforeConnect event

       procedure TdbModule.fdConnectionBeforeConnect(Sender: TObject);
       {$IF DEFINED(MACOS)}
       var
          resourcesPath : String ;
          newPath       : String ;
          position      : Integer ;
       {$ENDIF)}
       begin
          // Get the correct Win, OSX, iOS or Android DB path
          fdConnection.Params.Values['Database'] := 'mydb.s3db' ;
          {$IF DEFINED(iOS) or DEFINED(ANDROID)}
             fdConnection.Params.Values['ColumnMetadataSupported'] := 'False' ;
             fdConnection.Params.Values['Database'] := TPath.Combine(TPath.GetDocumentsPath, 'mydb.s3db') ;
          {$ELSEIF DEFINED(MACOS)}
             resourcesPath := paramstr(0) ;
             position :=  Pos( '/Contents', resourcesPath ) ;
             newPath := paramstr(0).SubString(0, position )+'Contents/Resources/mydb.s3db' ;
             fdConnection.Params.Values['Database']:= newPath ;
          {$ENDIF}
       end;

    Don't forget to add the db to the Project Deployment window and set Remote Path for each platform:

    macOS: Contents\Resources\

    iOS: StartUp\Documents\ (this one will show up the DB in FileSharing under iTunes or your device finder  - You can download, erase, add the file to the app)

    iOS: Library/Application Support/[your app directory] for files you want accessible from your app but not from the user (not shared)

    Android: .\assets\internal


     

    • Like 3

  2. Ok that did it. I had some troubles first but I was able to batch move table by table and get the equivalent in Interbase.
    Now I'll try to implement the triggers to replace the missing autoinc fields. 🙂

    Thanks for the suggestion

    Steve


  3. Are you within a professional environment like work? They may have a firewall and forbid the connection to the server.

    Did you try with public Wifi or use your 4G connection on your smartphone as a hotspot to bypass possible restrictions?

     

    It won't work for iOS unfortunately if I'm correct.

    Steve


  4. 17 hours ago, pro_imaj said:

    Hi,

     

    For 10.4, getit gives an error, I could not reach the developer.
    How can I install for 10.4?

    From Petit I select LockBox 3.7 and install it without troubles.

    If asked to continue executing the script, say yes.

    You can't contact the developer. TurboPower doesn't exist any longer, for more than 10 years.

    But they were nice enough to release the source code. You might find them on Github and create issues tickets there if required.

     

    By the way, it seems to not support iOS. Only Windows, macOS and Android.

     


  5. Mhhh.. just tried in a macOS VM at work and I do have the breakpoints working. Strange.

    I also tried back once back home and guess what... it is working now. For how long I have no clue.

    Pretty weird... I have the same config on both RadStudio as it's the same VM in which I develop under Windows 10 and target iOS.

    Very strange.

    Thanks all anyway

     


  6. Hi,

    Just tried to debug an iOS app from within the IDE but when launched on the iPhone, all breakpoints are marked as invalid and the app doesn't stop on any of them.

    Even an empty app with a breakpoint in FormCreate doesn't work.The Events window says

    Module Load: dyld. No Debug Info. Base Address: $0000000104D8C000. Process Project1 (1774)
    Module Load: Project1. Has Debug Info. Base Address: $0000000102D34000. Process Project1 (1774)

     

    No Debug Info for dyld...

     

    Am I missing something?
    Thanks for any clue.

    (I'm in Debug mode of course, not Release)

    Xcode 11.5 and iOS SDK 13.5


  7. Mmmh in my case, it's not FixInsight that crashes.
    It's Gexperts that crashes. If I don't have FixInsight, Gexperts closes gracefully when the IDE exits.

    So FixInsight, like other components or tools, is probably changing something in the IDE that, as a side effect, makes GExperts crash


  8. This is a known bug, when exiting Delphi 10.3.n Rio or Delphi 10.4

    GExperts creates an error.

    EAccessViolation in module rtl270.bpl ... in module bds.exe

     

    Followed by another one :

    Exception EAssertionFailed in module GExpertsRS104.dll at ...
    Call DeactivateFontInfo before calling this.

    ....SynTextDrawer.pas line 475

     

    Since I'm installing Sydney 10.4 I realized (thanks to my VM Snapshots) that GEpxerts behaves perfectly until I install TMS FixInsight.

    If I take FixInsight out, then the problem is gone.
    That may be one lead to follow.

    I have many TMS Components that coexist without problem with GExperts. It seems to appear only once FixInsight is installed.

    Some users may have that SynTextDrawer error too without this component, but you never know.

     

    Just my two cents

     

    Screen Shot 2020-06-03 at 09.57.31.png

    Screen Shot 2020-06-03 at 11.01.41.png

    • Like 1

  9. Thanks all.

    Rebasedata doesn't work the way I want, it's SQLite -> Interbase and it offers the other way around.

    Yes, I'd like to skip the create table equivalence nightmare before a dump/source

    But it looks like I won't have much choice to do this manually 😞 

    Thanks

    Steve


  10. Hi,

    I'd like to test drive Interbase ToGo for perf compared to my current SQLite DB on mobile apps. In real world.

    Does anybody know of any free tool that can convert to and from Interbase <--> SQLite?

    I have TMS Data Modeler, but it doesn't transfer data.

    Any clue would be welcome.

    Thanks to all

    Steve 


  11. Can you try to fully reinstall a naked Windows 10 VM machine and just 1 copy of RadStudio in it?
    That's what I did for a long time now.

    A new Rad Studio version? I start from my Windows 10 naked template.

    Make all the Windows Updates

    Install RadStudio

    Then I dedicate that Windows VM to development. I'm sure nothing else interferes like PowerDVD, Quicken, etc... who also install drivers that might conflict with something. All those non development Windows apps are installed in another Windows 10 VM.

     

    It's a one time full job to create an empty Windows 10 VM but it is well worthy.

    Then if it's still crashing in a Windows10+RAD VM you should use one of your support tickets.

     

    Tip: Now and then, I update my empty Windows10 VM template and compress it again to store it somewhere. This way, the delta between the last windows update and the ones available on the current day is not growing too much and updates are faster.

×