Jump to content

Cristian Peța

Members
  • Content Count

    412
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Cristian Peța

  1. Cristian Peța

    Applications for Linux

    What links dynamically?
  2. Cristian Peța

    IBX is Crashing Application on Windows XP / Server 2003

    Have you tried to debug or to have a call stack using a toll like madExcept?
  3. To have effect you should call Application.ProcessMessages from the main thread while the work is done. This will open a can of worms but at least will work somehow. Otherwise you need to move the work in a thread.
  4. Cristian Peța

    What does [ref] attribute actually dows

    With const, if the variable is small enough to pass into a register, it will not be passed always as reference. You need to use [ref] to be sure it is passed as reference. This is the reason to use [ref] for FreeAndNil.
  5. Cristian Peța

    filenames with unicode chars

    In 12.2 function FindFirstFile; external kernelbase name 'FindFirstFileW'; ... function FindFirstFileW; external kernelbase name 'FindFirstFileW';
  6. Cristian Peța

    Check If File is what he claim to be

    If you open the file with TPNGImage it will raise an exception if the content is not PNG. Not so hard to detect it is not a PNG content.
  7. Cristian Peța

    how to assign 2 paths

    I think it should work with #if. Not tested. But you really want to install in that path? [Setup] #if FileExists('C:\mygame\TEST\install.exe') DefaultDirName=C:\mygame\TEST #else DefaultDirName=D:\mygame\TEST #endif
  8. Cristian Peța

    how to assign 2 paths

    This is about Inno Setup? And you pascal code is not about Delphi but Inno Setup script? BTW here we are in: Home\Delphi Questions and Answers\General Help\
  9. Cristian Peța

    Disable all controls on panel

    The panel should be enabled after the message is received and not in TfrmPanel.btnWriteASCII_ShrtClick() And disabling the panel should be done right before fTCPClient.IOHandler.WaitFor() when you know that WaitFor() is executed.
  10. Cristian Peța

    Disable all controls on panel

    The OP is disabling only the panel and that will not disable the button. Angus solution will solve the problem because the function will disable the button that will not pump the windows messages.
  11. Cristian Peța

    SQLite and calculated columns

    Are you storing float in string fields? I create fields as REAL in SQLite and I can change the decimal separator without issues. I see period or comma and all is working. I can update a REAL column using period in sqlite3 tool, because the tool uses only period, and I can see values with comma in my app.
  12. Cristian Peța

    SQLite and calculated columns

    You don't trick SQLite. FireDAC is using this information. You can look in FireDAC.Phys.SQLite.pas unit at FDSQLiteTypeName2ADDataType() to see how this is done.
  13. It would be better to debug. I do not see this behavior. Delphi 12.2, Windows 11 Version 10.0.26100 Build 26100
  14. Cristian Peța

    Current Generation methods in Apps under Windows 7?

    Delphi 12.2 supports Windows 7 (SP1+) If we are speaking about OS versions, language enhancements doesn't matter but API function calls. https://docwiki.embarcadero.com/RADStudio/Athens/en/Supported_Target_Platforms
  15. Cristian Peța

    Delphi + Windows + isWine

    You can open a feature request and describe the issue to Embarcadero asking them to obfuscate a little the string for example with a simple and fast xor.
  16. Cristian Peța

    SQLite insert size beyond declaration

    Have you tried FideDAC Mapping? From the link provided by Dmitry I see two things you can try (specify type name in column alias and mapping):
  17. Cristian Peța

    Uploading photos to a web host.

    It's better to avoid antifreeze and do the transfer in a separate thread using TTask for example.
  18. Cristian Peța

    Using Camera in Android 9 under Delphi 12.1 CE

    https://docwiki.embarcadero.com/RADStudio/Athens/en/Supported_Target_Platforms Maybe 12.0 supported Android 8.1 but 12.2 not. And if you filter the log only for your app at the and in the last page(s) should be some clues for why app closes.
  19. Cristian Peța

    Using Camera in Android 9 under Delphi 12.1 CE

    I suppose you know that Android 9 is not supported by Delphi 12. A log or a message of the error would help to have a better response.
  20. Cristian Peța

    Can't return string from class function on Android

    That means that TLocalDefault.GetStringValue returns expected string? Result in GetStringValue is what you expect?
  21. Cristian Peța

    Switch from JCL to EurekaLog

    EurekaLog can send data to a bug tracker. See https://www.eurekalog.com/help/eurekalog/index.php?bug_trackers_setup.php We use MadExcept and data are sent to Mantis that uses MySQL (actually MariaDB). An SQL server can handle a huge amount of data.
  22. Cristian Peța

    for loop variable value after the loop

    I think this should be reported. Something like this I discovered in FastReport and it surfaced in rare circumstances. First when I reported it was ignored till I come with a case to reproduce. Because this, the report should have also the link to documentation.
  23. Cristian Peța

    for loop variable value after the loop

    https://docwiki.embarcadero.com/RADStudio/Athens/en/W1037_FOR-Loop_variable_'%s'_may_be_undefined_after_loop_(Delphi)
  24. Cristian Peța

    P4D Android visual component

    tqdm is a text output "progress bar" for a console app. And you want to show this text output along a graphic ProgressBar from FMX? Probably in something like TMemo component?
  25. Cristian Peța

    Delphi 12.2 Patch 1

    You installed 12.2 Patch 1 that is binary compatible with 12.1 but not with 12.2. If you installed some components compiled for 12.2 then it is understandable that your 12.2 Patch 1 IDE is unstable. Can this be the case or you are sure all your third-party components are compatible with 12.2 Patch 1 and 12.1?
×