Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

7 Neutral

Technical Information

  • Delphi-Version
    Delphi 10.3 Rio

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. ertank

    Just knowledge

    Add a TMemo on your form. When showing a message, add a line on memo. You will see that order of messages displayed will be same as your code order. You will see messages displayed will be reversed. This is because each message dialog displayed on top of existing one Yes, just test it.
  2. ertank

    Just knowledge

    If application is running on Android, message dialog on that OS is asynchronous. Meaning, they do not block code execution. What happens at run-time, I think is; First dialog displayed first, code continue to execute, second dialog displayed second. However, as second is displayed as the last message, it appeared on top of all others.
  3. ertank

    Git update 5251bc9 broken

    You are most likely to know more than me. I was just trying to get latest version that can be compiled under Linux. I will see if anything I can do though.
  4. ertank

    Git update 5251bc9 broken

    Latest clone as of several minutes ago and IdStackUnix.pas cannot be compiled for Lazarus under Linux x86_64 /fpcupdeluxe/ccr/indy/Lib/./System/IdStackUnix.pas(701,21) Error: (5000) Identifier not found "FIONBIO" /fpcupdeluxe/ccr/indy/Lib/./System/IdStackUnix.pas(1053,40) Error: (5000) Identifier not found "FIONBIO" /fpcupdeluxe/ccr/indy/Lib/./System/IdStackUnix.pas(1058,26) Error: (5000) Identifier not found "EAGAIN" /fpcupdeluxe/ccr/indy/Lib/./System/IdStackUnix.pas(1058,34) Error: (5000) Identifier not found "EWOULDBLOCK" /fpcupdeluxe/ccr/indy/Lib/./System/IdStackUnix.pas(1058,47) Error: (5000) Identifier not found "EINPROGRESS"
  5. ertank

    Git update 5251bc9 broken

    I just used fpcupdeluxe and it seems to be broken on somewhere else now: /fpcupdeluxe/ccr/indy/Lib/./System/IdStack.pas(247,57) Error: (4001) Incompatible types: got "LongInt" expected "LongWord" BTW, this is Linux x86_64 I am trying to build Indy on.
  6. ertank

    Git update 5251bc9 broken

    Hello, I am trying to install Indy on a Linux x86_64 using fpcupdeluxe and following line seems broken. /fpcupdeluxe/ccr/indy/Lib/./System/IdGlobal.pas(7536,11) Error: (2021) ENDIF without IF(N)DEF /fpcupdeluxe/ccr/indy/Lib/./System/IdGlobal.pas(7536,11) Error: (2021) ENDIF without IF(N)DEF It is simply missing a $ sign.
  7. ertank

    Debugger in 10.3.3 is useless :'(

    Yes, please.
  8. ertank

    Changing label text in thread leads to weird display

    What about string variable pointing to "1/9" as value and that is not going to be 4 characters in total ever?
  9. ertank

    Changing label text in thread leads to weird display

    Do I still need to do such protection for reading only? Thread will be the only process which is writing into a string variable.
  10. ertank

    Delphi 10.3.3 has been released

    I did not have any problem using web installer for several versions now. My 10.3.2 was a web installer installed. I choose not to remove all registry settings when asked. Installer first uninstalled 10.3.2 and after installed 10.3.3 just fine. I did not have to re-install any of my components except Ide FixPack. You better have a fast internet connection for web installer, let it install over night or something similar though.
  11. Hello, I am using Delphi 10.3.3 to build an Android 32Bit app running on embedded device with Android 5.1.1 installed. Device has 32Bit CPU and I cannot try to see if building my app for 64Bit helps. There are several operations that app doing in a thread which total takes 6-10 seconds on average. In order to keep user patient, I put a label on screen showing operation is advancing step by step. That label is updated from inside a thread. Thread is started using "TThread.CreateAnonymousThread(<relevant procedure calling code here>).Start()" and Label update code is something as following: TThread.Synchronize(nil, procedure begin StatusUpdateLabel.Text := '1/' + MaxSteps.ToString(); StatusUpdateLabel.Repaint(); end); My initial code did not have that "StatusUpdateLabel.Repaint();" part in above code. Once I started to have that problem, I just try to see if it helps. My case it did not help at all. Label is placed on a TFrame and aligned to Top. Font Family is Default, Size is set to 30, Style is set to Bold. Following is a video I try to put together for better understanding. Try to watch it at full screen. That video displays problem only for 1/9 at the beginning. Problem I am having is with number 1 in that video. That exact problem maybe on number 9, or both 1 and 9 numbers and it maybe in a total different step of the operation. It may happen more than once, too. Interestingly forward slash never has a problem at all. Moreover, I do not always have that problem. It sometimes displays everything as it should be. My guess, depending on internet speed some steps are completed fast. Sometimes pretty fast. When that happens, I get a very tiny text displayed on that Label. I did not have a chance to try reproducing that on a regular mobile phone. Once I find time, I am going to do that for sure. I wonder if that is some kind of a known problem and if there is a way to fix it. Thanks & regards, Ertan thread updated label display problem.mp4
  12. ertank

    Overrided TForm.DestroyWnd is not executed

    That did solve my problem.
  13. ertank

    Overrided TForm.DestroyWnd is not executed

    I do debug run and execution does not stop at first line of DestroyWnd procedure at all.
  14. Hello, I have found that stackoverflow code of @David Heffernan https://stackoverflow.com/questions/4354071/how-can-i-allow-a-form-to-accept-file-dropping-without-handling-windows-messages Attached is a project where I put it all together for my use case. However, it seems to leak some memory. I do not know why but TForm2.DestroyWnd seems not executed at all. I simply run and close the application without doing anything. Below dialog is my leak report message Any help is appreciated. Thanks & regards, Ertan DragDrop.7z
  15. Maybe you can run two threads? Something like your thread-1 does the loop. Upon a variable trigger or a procedure call, thread-1 runs the possibly never ending code in thread-2. After that thread-1 checks if that thread-2 terminates in a given time limits. If there is a timeout, your main app can provide a feedback to user and maybe an option to re-start the app or something.