Jump to content

bzwirs

Members
  • Content Count

    55
  • Joined

  • Last visited

Posts posted by bzwirs


  1. Tried logging for the startup stuff (on datamodule create) which creates the log on my development machine but not on other machines so the problem is before all that.  With the event viewer on the problem machine I found the appcrash report but that is very difficult to understand. From the wer report I assume this is supposed to tell me where the problem is located:

     

    Sig[0].Name=Application Name
    Sig[0].Value=myapp.exe
    Sig[1].Name=Application Version
    Sig[1].Value=1.4.0.419
    Sig[2].Name=Application Timestamp
    Sig[2].Value=67b15d76
    Sig[3].Name=Fault Module Name
    Sig[3].Value=KERNELBASE.dll
    Sig[4].Name=Fault Module Version
    Sig[4].Value=10.0.14393.7513
    Sig[5].Name=Fault Module Timestamp
    Sig[5].Value=67171aad
    Sig[6].Name=Exception Code
    Sig[6].Value=0eedfade
    Sig[7].Name=Exception Offset
    Sig[7].Value=000dd562

     

    But don't know how to find out what this really means and how this tells me what to do to fix the issue.

     

    Any help or pointers would be appreciated.  

     

    As an aside..... my development machine runs Windows 11 24h2 (updated about a month ago) and the other machines have earlier versions.  Could this be an issue?

     

    thanks

     

    Bill  
     


  2. Latest Delphi.

     

    Have a VCL program running successfully at a client for several years.  Just released an update and program now won't run on any of the client machines.  Double click the program icon and get the wait circle for a few seconds and then nothing.  No error message.  Have checked the task manager and application not listed.  Client machines are all windows 11.  The application runs without any issues on my development machine... also running windows 11 (recently updated to 24H2). 

     

    Any ideas as to what might be going on here?

     

    Bill Zwirs


  3. That works but still getting the narrow vertical print randomly.

     

    If pdf already exists then shows ok but if  LoadPDF is called directly after creating the PDF then still getting the narrow view occasionally (exit out and view again and all ok).

     

    Any way around this behavior?

     

    Bill Zwirs


  4. Installed 12.2 4 days ago and after install I used Getit to install a component and all worked Ok.  Next day (and every day since) I have started Getit and keep getting 'No Results Found', even though it shows results in the 'New In Getit' and 'Promoted In Getit' sections of the welcome page.  

     

    Is anybody else having this problem or is Getit simply not working at the moment?

     

    Bill Zwirs


  5. Thanks.  Reversed the calls as suggested and that now works for me also.  But has now raised another issue.  The displayed PDF now adopts the background colour of the style set for the application instead of a white background.  I've tried to play with the  Opacity property of the FPDFControl which doesn't solve the problem and not sure what else to try.

     

    Any suggestions?

     

    Bill Zwirs


  6. I am having a problem using the PDFControl on Android device.  Have followed the example code for using the PDFControl in demo provided by Kastri but all I get is the PDF displayed in a narrow vertical area (small, about 10mm wide) up the middle of the screen. 

     

    In the onCreate event I have placed

     

    if TOSVersion.Platform = TOSVersion.TPlatform.pfAndroid then
      begin
        FPDFControl := TPDFControl.Create(Self);
        FPDFControl.Align := TAlignLayout.Client;
        FPDFControl.Parent := TabItem17;
      end;

    The PDF needs to be displayed in TabItem17 of a TabControl.  TabItem17 has nothing on it except for a TLayout at bottom of screen with a button to enable return to another TabItem.

     

    Following is the code used to load and display the PDF

     

    procedure TMainForm.Display_PDF(const sFile : string);
    begin
     {$IF DEFINED(ANDROID)}
      if FPDFControl <> nil then
        FPDFControl.LoadPDF(sFile);
      TabControl1.SetActiveTabWithTransition(TabItem17,TTabTransition.Slide,
                                             TTabTransitionDirection.Normal);
     {$ENDIF}
     {$ifdef win32}
      PDFBrowser.Navigate('file://' + sFile);
      TabControl1.SetActiveTabWithTransition(TabItem13,TTabTransition.Slide,
                                             TTabTransitionDirection.Normal);
     {$ENDIF}
    end;

    Can anybody please help with what I need to do to display the PDF properly.

     

    Thanks in advance.

     

    Bill Zwirs

     


  7. Delphi 12 with latest updates.

     

    I want to use a firebird database on android device.  Firebird supply a 'Firebird-5.0.0.1306-0-android-arm64.tar.gz' file for working with android but no information on how to use the files contained therein.  Can anybody please point me in the right direction on examples on how to achieve this,  

     

    Thanks in advance

     

    Bill Zwirs


  8. Remy and DelphiUdIT

     

    Have changed loading .so files to "library\lib\arm64-v8a\" and all appears to be working now. 

     

    OpenSSLVersion now reports as "OpenSSL 1.0.2s-fips 28 May 2019".  Previously I was just getting an empty string so maybe assume I was doing something wrong.

     

    Thanks for all your help.

     

    Bill Zwirs


  9. On 6/15/2024 at 1:05 AM, Remy Lebeau said:

    Why would you think it's not possible? 

    Several years ago I googled on the same issue and all I could find at the time was advise that it could not be done and needed to use Android Intents which called the mail client.  This solution was Ok at the time as it would only be occasionally used in the app.  But now I need to be able to send multiple emails so don't want the mail client popping up for each so asked the question in case things had changed.

     

    By the way, I am using Delphi 12 with latest updates.

     

    Since your reply I have been trying to use the Indy approach and found a post on Stackoverflow and followed the following advice:

    1. Add the 2 .so files to your project deployment and set them to deploy to the .\assets\internal\ folder

    2. add the System.StartupCopy unit as the first unit in your DPR's uses clause.

    3. call IdOpenSSLSetLibPath(TPath.GetDocumentsPath) at app startup.

    I am using the 64bit files included in openssl-1.0.2s_Android and keep getting the 'could not load SSL library' error.  I have used FileExists to check if file (just for one of the files) is there.  Here is the code I use in the OnFormCreate event.  Compiled for Android64.

     

    Quote

    var aFile := TPath.Combine(TPath.GetDocumentsPath,'libssl.so');
    IdOpenSSLSetLibPath(TPath.GetDocumentsPath);
    if FileExists(aFile) then
      IdSSLOpenSSLHeaders.Load();

    Is there anything else I can try to make this work.

     

    Bill Zwirs

     

     


  10. Is it possible to use smtp on android to send multiple emails with attachments and are there any examples of this available.  I don't want the email client popping up for each email .... just all done in the background.

     

    Thanks in advance.

     

    Bill Zwirs


  11. Using Delphi 12, Woll2Woll Firepower Data Grid, Firedac Query, SQLite DB

     

    Have an app that has been used for couple of years without any significant issues until recent compile with Delphi 12.  The issue is with editing an integer field in a Firepower data grid.  For the field keyboard type I have selected the numberpad type.  Previously users have always been able to select the minus sign to input a negative number but this no longer works since the last compile for Android. 

     

    Can anybody please help with advice on how to fix this issue.

     

    Bill Zwirs

     

     

×