Jump to content

Cristian Peța

  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Cristian Peța

  1. Cristian Peța

    Hiding a public property in a descendant class

    TMyEdit = class(TCustomEdit) private function GetText: String; public property Text: String read GetText; end; implementation function TMyEdit.GetText: String; begin Result := TCustomEdit(Self).Text; end; It works !!!! Text property is now read-only. Do someone knows some side effects of this? There was somewhere a discussion about hiding properties when you re-declare it but I don't remember.
  2. Cristian Peța

    Hiding a public property in a descendant class

    More I read on this subject I understand this is right.
  3. Cristian Peța

    Casting pointer to TBytes

    You can not because a dynamic array is not just the data. There is also the length and reference count. But you can pass a pointer and length of that memory,
  4. Cristian Peța

    iOS, Error e8000084

    iOS 14 is supported only with Delphi 10.4 iOS 13 starting with Delphi 10.3.3 Also "iOS Simulator version 11 or later is currently not supported. You can open Xcode > Preferences > Components , to download and install an earlier version of the iOS Simulator. " http://docwiki.embarcadero.com/PlatformStatus/en/Main_Page
  5. Does this app compiled for 64-bit works? Have you tried to upload only with 64-bit binaries?
  6. Cristian Peța

    Delphi XE Zebra scanner

    For your scenario reading the COM port is a better solution. We have only one form that displays many details related to scanned bar-code. Usually the user will work all the day only with a bar-code scanner. No keyboard, no mouse. And the installation must be as easy as possible. Some want to work on Linux, others on smart TV Box's with Android... so this year we moved this part in browser.
  7. Cristian Peța

    Delphi XE Zebra scanner

    A little off-topic but this depends. I prefer the scanner to be a keyboard because every client want to user their scanner and setup is very easy. Just plug the scanner into USB and is working. With VCL I use Form.OnKeyDown with Form.KeyPreview=True. Even in browser I use document.addEventListener("keydown", WAKeyDown). This way if the web app tab in the browser has focus I receive the input from the keyboard. No need to have a edit box in focus. And reading a serial port in Javascript is not so straightforward. But there can be a issue if you want to distinguish between a real keyboard and barcode reader.
  8. Cristian Peța

    git and Delphi tooling?

    We use Fork but you need to test to see what is best for you. Never used Delphi integration.
  9. Cristian Peța

    XCode 12 compile error

    --old news--
  10. Cristian Peța

    Outdated Delphi Roadmap

    Patch is just released. https://blogs.embarcadero.com/delphi-compiler-and-lsp-patch-for-rad-studio-10-4-1/
  11. Cristian Peța

    My custom component becomes NI>

    You told as that a component is becoming nil. Nil can be a reference to an instance of a class (namely a variable), not a class itself. If table1 is that component that is becoming nil then put a data breakpoint on table1. More exactly on table1's address (namely @table1). But it is enough to write table1 into the addresses field of "Add Data Breakpoint" dialog. @Remy Lebeau thank you very match for this. I needed a data breakpoint sometimes but I didn't know they actually exists.
  12. Cristian Peța

    Using Delphi in Virtual machine for a month

    Splitting is useful if you use for backup something that compares the files and only overwrite those that changed.
  13. Cristian Peța

    git workflow question

    In this case I think it would be better to have all that folders in one repo. Then a branch would not be disturbed because all is there. You will have to deal with conflicts only at merge.
  14. Cristian Peța

    10.4.1 Released today

    Something like this? https://quality.embarcadero.com/browse/RSP-30773
  15. Cristian Peța

    August 2020 GM Blog post

    If you are not in the first wagon then yes, others ask for you. I just setup a SSH and Git as server on Windows using OpenSSH that comes with Windows 10 but this came only two or three years ago and information is not yet well polished. Git as a server on Windows is also not so frequently used. It was enough the information I found, I did not need to ask for help, but it was harder than I thought. Now I think that doing the same thing on Linux is easier because almost all info is for Linux. Installing Subversion server on Windows was a piece of cake some years ago.
  16. Not about Delphi IDE but I just tried to take a snip of the screen with Windows logo key+Shift+S. It is sooo slow in VMware to select that rectangle.
  17. Cristian Peța

    TFtpClient: Very low speed on transfer data

    Maybe I am wrong but it is not 2^16=65536?
  18. Cristian Peța

    Cannot copy a TCard in the Structure Panel

    You are right, sometimes is working sometimes not. But manual copy from text I think is working always. Switch back to "View as Form" and Paste on an other TCard.
  19. Cristian Peța

    Cannot copy a TCard in the Structure Panel

    I tried to Copy-Paste. It's working for me in 10.4.0.
  20. I know it is frustrating but the result is same for me.
  21. I tried with "Enable Flow Control Highlighting" disabled in 10.4 but I do not see any difference. It is a little slow only when bottom white space appears.
  22. This issue is visible starting with D10.0 Seattle. Delphi XE-XE5 does not behave like this. But only when you see bottom white space.
  23. D10.4 with i7-8700K For me anywhere in the source IDE CPU is 10% and very responsive. At the bottom when white space appears is 25% and a little slower but not an big issue. I rarely use scrolling when bottom white space is shown. I think this issues is tied to CPU speed + Number of LOC displayed when bottom white space is shown. No graphic card involved. Try to make the IDE height smaller in order to display fewer lines of code and for sure it will be faster and.... useless. Does it behaves better on host? I think does not.
  24. I have almost the same configuration and bellow settings for display but I don't see any issues with scrolling. In VM is Windows 1903, on host 2004. I don't do any adjustments to the IDE after instalation. I will try to install Windows 2004 also in one VM and see. Update: I can install now Windows 2004 only on older VM's, on newer VM's with D10.3.3 and 10.4 I have this message "The Windows 10 May 2020 Update is on its way. Once it’s ready for your device, you’ll see the update available on this page."
  25. Cristian Peța


    THTTPClient doesn't work on Windows 7 and XP with SSL. On XP the message is "Server Certificate Invalid or not present" I don't find the message from Windows 7 but here is something about: https://stackoverflow.com/questions/50765476/delphi-tnethttprequest-tnethttpclient-works-on-win-10-but-not-win-7