Jump to content

TurboMagic

Members
  • Content Count

    235
  • Joined

  • Last visited

  • Days Won

    9

Posts posted by TurboMagic


  1. 24 minutes ago, Angus Robertson said:

    The ICS FAQ pages already have a lot of SSL/TLS documentation for major subjects, and some of the server components have almost up to data documentation for properties and methods.  But proper documentation takes weeks and no-one will pay for it,  so I spend more time writing new components. 

     

    http://wiki.overbyte.eu/wiki/index.php/Main_Page

     

    I have created a complete help file of all ICS components, properties, methods and events, but it would take weeks to make it useful with actual text on what they do.  Some developers give up at that point and just leave a skeleton help file. 

     

    Angus

     

     

    Ok, I see the FAQ pages but in the wiki documentation for the various components the SSL ones are usually read = nonexisting links.

    My earlier question was what we can do to help generate the Wiki sceleton as automatically as possible.

     

    About the help you started to create: is this CHM based and is the "source" available for contribution somewhere?


  2. I can understand the request to do so. I have already written in the project description that this would be a task one could/should do.

    As I'm busy enough with my other open source project (DEC - Delphi Encryption Compendium)

    I will accept such translations and update the code with them but won't invest the time in those at this time.

     

    As user Dummzeuch (a German by the way! ;-) ) stated: maybe somebody could contribute them.

    I guess there are enough Delphi developers out there who didn't contribute code etc. yet but only consumed so far what

    others contributed. That could be a start to give something back.

     

    As we're talking about contributing and my next topic is related to F. Piette:

    is there an easy way to write a Delphi source code parser (maybe using Delphi AST which I only know by name)

    to parse the source of ICS and generate output in the Wikipedia syntax so that for the still undocumented SSL ICS code

    the Wiki sceleton could be generated at least as a starting point to finally get documentation started?

     

    While I value the library and its many demos, a written documentation about the individual properties and methods

    is also worth quite something!

    • Like 2

  3. Hello,

     

    what please does "the app crashes" mean?

    Is there any failure message? If yes , which?

    Can you run monitor.bat from your Android SDK?

    With that you can see the logcat log of your device. Run the app then until it crashes

    and look at the log. Maybe there are helpful messages in it.

     

    Have you looked into QP for any reports regarding this? Does one exist?

    The app that you tried, was this created new in 10.3.3 or is it updated from some earlier version?

    If the latter it might help to delete AndroidManifestTemplate and let the IDE regenerate it.
    Then change targetSDKVersion. Maybe there were other changes in it as well.

     

    Does the crash happen with a blank FMX app created in 10.3.3 as well?

     

    Regards

    TurboMagic


  4. Ok, I got the libraries loaded, at least in a 32 bit version, which is sufficient at the moment.

    But now I'm stuck on a permission error where I don't know what kind of permission is meant.

     

    The problem is calling this function:


    ret := avcodec_open2(c, codec, @CodecSetup.OptionsDictionary);
    in UBitmaps2VideoM's construktor.

     

    It always returns -13 which means permission error, but I don't know which kind of permission is meant.

    I already tried two different output paths and had added Android 8 style external write permission requesting,
    but to no avail.

     

    The paths tried are:

    GetSharedDownloadsPath

    GetDocumentsPath

     

    Has anybody any clue?

    FFMPEGMultiDemo.zip


  5. Hello,

     

    given I wanted to distribute a shared object file with map Android app which I need to load dynamically in order to use it.

    Where would/should I place this on the device?

    Is .\assets\internal the right path to use when adding this file to deployment manager?

    If not which is the correct path?

    When loading it I'd use LoadLibrary like for a DLL, right?

    And if so, would I use this call for that, give the file name would be test.so?

     

    LoadLibrary(TPath.Combine(TPath.Combine('assets', 'internal'), 'test.so')) 

     


  6. For us it is sufficient to swap color of a rectangle.

    Today we tried something with the bitmap of a TImage which has a clear method where you can specify the new color.

    That might be sufficient, if the timer would be more jitter free. Thus we call it from a secondary thread as TBitmap is thread-safe nowadays.

     

    Question is how to "time" such a thread on Android precisely enough?

    Do busy waiting with TStopWatch until the necessary time is elapsed?

    Or is there something better?


  7. For some research we need to create an Android app with a precisely timed output of colored rectangles/bars.

    Unfortunately TTimer has a too big jitter.

     

    I need a low interval (if possible < 10ms) and unless my code in the timer event runs for longer than the interval
    the timer events should come precisely and not sometimes after 10ms (given a 10ms interval is set) and sometimes
    after 11 or 12 ms).


  8. Hello,

     

    I'm using the TChart wich comes with 10.3.3 out of the box.

    I managed to add a 2nd right hand vertical axis via the TChart design editor, but I can neither there nor in code set min and max,

    at least they will always be ignored and min will always be 0 and max 64000 or 65535.

     

    I need -4090 and +4095 as min and max.

    Here is the variant where I tried to change them in code:

    ChartCurrentValues.Axes.Right.SubAxes[0].AutomaticMaximum := false;
    ChartCurrentValues.Axes.Right.SubAxes[0].AutomaticMinimum := false;
    ChartCurrentValues.Axes.Right.SubAxes[0].Automatic := false;
    ChartCurrentValues.Axes.Right.SubAxes[0].SetMinMax(-4096, 4096);
    ChartCurrentValues.Series[cMySeries1].CustomVertAxis := ChartCurrentValues.Axes.Right.SubAxes[0];
    ChartCurrentValues.Series[cMySeries2].CustomVertAxis := ChartCurrentValues.Axes.Right.SubAxes[0]; 

     


  9. Hello,

     

    I'm using D10.3.2 and this time I do something looking a bit strange. It works except for one thing.

    I want to include sort of 2 applications (a main one and a small one sharing some code and the
    language ressource dlls of the main one).

     

    For this in the DPR I check if a certain command line parameter has been passed. If not the main app will
    be started otherwise the small one. Here's some code:

     

    Quote

    var
      App: TApplication; // the normal Application variable is assigned to this one
                                       // as this prevents the IDE from messing around in the dpr
    begin
      App := Application;

      App.Initialize;
      App.Title := 'MyApp';
      App.HelpFile := 'MyHelp.chm';
     
      if not ParamStr(1) = '/Test' then
      begin

        // calling the normal app works fine
        SetCurrentDir(ExtractFilePath(ParamStr(0)));

        App.CreateForm(TData, Data); // ein Datenmodul
        App.CreateForm(Tf_Main, f_Main);
      end
      else
      begin

        // calling the secondary app works, but produces a 2nd taskbar icon,
        // where does it come from and how to prevent?
        SetCurrentDir(ExtractFilePath(ParamStr(0)));

        App.Icon.LoadFromResourceName(HInstance, 'MyIcon');
        App.CreateForm(Tf_AlternateMain, f_AlternateMain);
      end;

      App.Run;
    end.

     

    So where does the 2nd taskbar icon in the one case come from and how to get rid of it?

     

    Regards

    TurboMagic


  10. Ahem, the following code I had used to test will leak:

     

    var

      sl : TStringList;

    begin

      sl := TStringList.Create;

      sl.Add('This will leak David!');

      sl.Add('This will leak David!');

    end;

     

    See: no free, thus it will leak at least one TStringList.

     

    I had even put that construct into the dpr and put an exit after the last Add call, so the application quit immediately. But it didn't show any message box.

    Ok, doing that in the dpr and thus not running any VCL initialisation made in the dpr's main code migt be problematic for showing a message box,
    but the code above was in the FormClose event of the main form and got called!

×