-
Content Count
330 -
Joined
-
Last visited
-
Days Won
4
Everything posted by Cristian Peța
-
https://quality.embarcadero.com/browse/RSP-14452 P.S. Probably only GetIt was fixed...
-
madExcept does have a "check for frozen main thread" option. You can set the timeout in seconds. You will have a call stack.
-
Delphi 10.3 and the NOX emulator running Android 7
Cristian Peța replied to Yaron's topic in Cross-platform
Search for Logcat. But looks like starting from Android 4.1 reading logcat is no longer working without root access. -
ANN: StyleControls VCL 4.26 released!
Cristian Peța replied to Almediadev Support's topic in Delphi Third-Party
Is there is a list of DevExpress controls that can be styled with VCL styles? -
Delphi 10.3 and the NOX emulator running Android 7
Cristian Peța replied to Yaron's topic in Cross-platform
If adb connection is not working then installing a Log visualizer from the market is the easiest solution to see the log. -
Delphi 10.3 and the NOX emulator running Android 7
Cristian Peța replied to Yaron's topic in Cross-platform
I used "Andoid Device Monitor" from SDK that installed with Delphi (starting \sdk\tools\monitor.bat) but it doesn't start with Rio installed SDK. At least for me. You either install Android Studio and use Logcat: https://developer.android.com/studio/debug/am-logcat Or other solutions: https://android.stackexchange.com/questions/14430/how-can-i-view-and-examine-the-android-log -
Delphi 10.3 and the NOX emulator running Android 7
Cristian Peța replied to Yaron's topic in Cross-platform
Time to look in the log. -
Delphi 10.3 and the NOX emulator running Android 7
Cristian Peța replied to Yaron's topic in Cross-platform
Is this emulator also emulating ARM code to x86? -
Is [weak] available in win32/win64
Cristian Peța replied to pyscripter's topic in RTL and Delphi Object Pascal
Yes, for interfaces, like article says. What help are you reading? Maybe it was not revised. -
Delphi 10.3 and AdMob blocking UI updates on older versions of Android
Cristian Peța replied to Yaron's topic in Cross-platform
Change "%minSdkVersion%" with "23" -
Linux + Delphi + Apache problem on 10.3
Cristian Peța replied to hsvandrew's topic in Cross-platform
Just tested on Ubuntu and now I see that you already tested console app. Looks like under Apache (supposing ICU is available) collation Strength or Case_Level is other that expected. See "Case Ordering" here: http://userguide.icu-project.org/collation/concepts -
Linux + Delphi + Apache problem on 10.3
Cristian Peța replied to hsvandrew's topic in Cross-platform
I have an Ubuntu installation that I tested in 10.2. But have you tested a simple console app? uses System.SysUtils; begin Writeln(AnsiCompareText('PARAMname','paramNAME')); Readln; end. -
After I run for the first time an app I often use I pin it to the taskbar (Windows 10) and then I click only on this icon. Left click will open it, if it's closed, and switch to if it's open. Middle click will open every time a new instance.
-
Actually I changed my code some years ago and now I'm painting on a bitmap scaled with Canvas.Scale (an UI Canvas) and then use Canvas.DrawBitmap() to draw UI.
-
If you meant using TCanvas, this was possible at least when mobile compilers rolled out. The way to do this changed a little over time but now you need to apply a transformation matrix to the canvas to reverse scaling and all you paint using canvas will match 1:1. There was needed also a translation of (-0.5, -0.5) in that matrix because you needed to use (0.5, 0.5) to use only one pixel. I don't know if this is the case also now.
-
High-level abstractions - Difficulties in choosing and using appropriate strategies for solving my task.
Cristian Peța replied to Shrinavat's topic in OmniThreadLibrary
@Schokohase if you are speaking about my suggestion to read bigger chunks from DB then this is not exactly parallelization. And the second suggestion was about what to optimize. If reading from DB takes 10ms and rendering 0.1ms per piece then I would not care about rendering. -
High-level abstractions - Difficulties in choosing and using appropriate strategies for solving my task.
Cristian Peța replied to Shrinavat's topic in OmniThreadLibrary
First you need to know much time takes GetTitleFromDB and RenderTitleToBitmap32. Then you will know where to optimize. For SQL servers hawing many small requests is costly. I don't know how much KB GetTitleFromDB is asking but generally reducing the number of requests (bigger data chunks) is better for client and for server also. -
High-level abstractions - Difficulties in choosing and using appropriate strategies for solving my task.
Cristian Peța replied to Shrinavat's topic in OmniThreadLibrary
If GetTitleFromDB() is using more DB connections and is multi-threaded and if this function is the main bottleneck then it makes sense to parallelize this for loop. Otherwise you can test but I think it will be no gain or even worse because LargeImage will not execute anything in parallel. Looking is per instance and you have only one instance. -
No more Transparent Forms on Android, now they are black
Cristian Peța replied to Jose Morango's topic in FMX
https://community.embarcadero.com/blogs/entry/simulating-transparent-dialog-on-firemonkey-mobile?utm_source=DeveloperNewsletter&utm_medium=Email&utm_content=Newsletter_25 -
There are four buttons on top-right corner. I use the second button that is like a file. It will show the unread content. P.S. I prefer also "condensed" mode.
-
Delphi 10.3 and supported version of Android
Cristian Peța replied to Yaron's topic in Delphi IDE and APIs
@Dalija Prasnikar in the "Platform Status" says that it's Android 5 (API 21) http://docwiki.embarcadero.com/PlatformStatus/en/Main_Page -
IDE hangs on code completion, find declaration, parameters tooltip.
Cristian Peța replied to vhanla's topic in Delphi IDE and APIs
I just tried out of curiosity to see unit cycles. Just too much for today Delphi compilers and parsers. -
The code you posted can't give any exception. Try for yourself in a new project. And us Uwe Raabe said: static arrays can't be freed manually, nor modify the length. Don't do this. P.S. for string static arrays you can free memory allocated by strings (assign null string or modify length) but not the array itself.
-
[3D] Why do i need to use negative Y values to go UP?
Cristian Peța replied to Memnarch's topic in FMX
Probably because they started from 2D. For screens (0, 0) point is up-left and you need to use positive values to go down. This originates from old TVs where the analog signal starts from up-left. -
Strange and Random Access Violations
Cristian Peța replied to Ugochukwu Mmaduekwe's topic in RTL and Delphi Object Pascal
It can brake reference counting only if you move() to string. When you only move() from string the string is not affected in any way. Move() doesn't change the source.