Jump to content

Yaron

Members
  • Content Count

    275
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Yaron

  1. I tried that, it didn't work. Perhaps I didn't understand what you mean by "manually delete", I just used the project dialog to make sure all entries across debug/release/all configuration were the same and then changed the value on 'all configurations' to see if it affects the 'release configuration' (which it didn't).
  2. And if I have overridden the version number in the past, how can I restore it so it will be set again by 'all configuration'?
  3. Yaron

    Debugger in 10.3.3 is useless :'(

    Thanks, In a million years I wouldn't have made that connection.
  4. Yaron

    Debugger in 10.3.3 is useless :'(

    Where is that option? I can't seem to find it.
  5. Yaron

    Debugger in 10.3.3 is useless :'(

    Without any rationale?
  6. Yaron

    Android, TWebBrowser & Uploading files

    The demo project seems to work, but when porting the snippet into my own code I'm catching an exception when calling "FWebManager := TWebChromeClientManager.Create(VoucherimWebBrowser);" : "Error creating FWebManager : java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.ClassLoader java.lang.Class.getClassLoader()' on a null object reference" Other than renaming the variables/components, I used the exact same OnCreate override as in the sample and just added an "FWebManager := nil" when closing the app. You mentioned including the jar file, but I haven't seen anything in particular in the demo itself, so I'm assuming it's included by one of the units (which I also included in my project). Any ideas? If needed, I can post the entire source code for this app, it's just a wrapper around a web site. Unrelated, I get a hint while compiling: [DCC Hint] DW.WebChromeClient.Android.pas(98): H2443 Inline function 'TAndroidHelper.GetJActivity' has not been expanded because unit 'Androidapi.JNI.App' is not specified in USES list
  7. Yaron

    Debugger in 10.3.3 is useless :'(

    It would be nice if Embarcadero handled it in-house, considering it's a bug that existed for years and is pretty straight-forward to reproduce.
  8. Yaron

    Debugger in 10.3.3 is useless :'(

    This issue still exists and every so often pops-up, you would think it's a somewhat simple fix.
  9. I am creating an Android application that scales images based on the device's fullscreen resolution. To enable fullscreen, I do: 1. In "Project Options / Application / Version Info" I set the theme to "No TitleBar". 2. Set "Form.Fullscreen" to enabled in the main form's "OnCreate" event. However, I'm having problems detecting when my App is finally fullscreen, I suspect there may be a rounding error in Delphi's function, here is the log: 05-17 03:56:36.660: I/info(15344): FMX: ZP Remote: ZPR_DBG: Screen Scale : 1.3125 05-17 03:56:36.666: I/info(15344): FMX: ZP Remote: ZPR_DBG: IFMXScreenService.GetScreenSize : 1280x736 (with screen scale) 05-17 03:56:36.666: I/info(15344): FMX: ZP Remote: ZPR_DBG: IFMXScreenService.GetScreenSize : 975x561 (original) 05-17 03:56:36.666: I/info(15344): FMX: ZP Remote: ZPR_DBG: Screen : 975x561 05-17 03:56:36.664: I/info(15344): FMX: ZP Remote: ZPR_DBG: Client : 975x537 05-17 03:56:36.724: I/info(15344): FMX: ZP Remote: ZPR_DBG: Client : 975x537 05-17 03:56:36.940: I/info(15344): FMX: ZP Remote: ZPR_DBG: Client : 975x562 The first 4 lines give system detail from IFMXScreenService.GetScreenScale, IFMXScreenService.GetScreenSize and Screen.Width/Screen.Height. Each "client" line shows the values of "ClientWidth/ClientHeight" on a FormResize event. As you can see, the ClientHeight value is higher than the Screen.Height value, which doesm't make sense.
  10. Just for reference, my current logic is to resize the UI after an OnIdle event but not before an "TApplicationEvent.BecameActive" event triggers first. Seems to work, but I'm not perfectly confident that it works across every device. Oh, you may also notice something odd with the last resize event, the form's WindowState value was changed to "TWindowState.wsMinimized" even though the app is fullscreen. Perhaps this has something to do with the app being run on a phone with a notch.
  11. That doesn't work, check out this log, a form resize event is triggered AFTER the first OnIdle event.
  12. Yaron

    Debugger in 10.3.3 is useless :'(

    You are right, I was able to fix this de-sync issue by going line by line doing cut, paste, cut, paste (copy/paste entire blocks did not work). Strangely enough, I compared the file before/after the fix and the files are identical?!
  13. Yaron

    Debugger in 10.3.3 is useless :'(

    I'm also experiencing this issue, at first I thought it was the issue where unicode characters entered the code by a copy & paste operation (which in the past lead to cases where the debug/code got desynched by a few lines). However, I did my usual fix for that issue (Copy/paste/convert to ascii), but it didn't work this time. The strange thing for me is that this de-sync starts to happens BEFORE any actual functional code and the increases further down the code, check out the included screenshot.
  14. Yaron

    Debugger in 10.3.3 is useless :'(

    I'm getting a new issue with the debugger, it's reproducible for me every time (in a specific bit of code in a larger project) and freezes the IDE with the "Local Variables" pane flickering like crazy until I terminate the process. 1. I Call this function "PrepareURL('mailto:bla@bla.org',URLTypeEMail)" (see below). 2. Place a breakpoint before the case in the function below. 3. Open the "Evaluate/Modify window" and type in "sURL". 4. Change the value of sURL from "mailto:bla@bla.org" to "bla@bla.org". 5. IDE freaks out. function PrepareURL(sURL : String; sURLType : Integer) : String; begin Case sURLType of URLTypeWebSite : If Pos('://',sURL) = 0 then Result := 'https://'+sURL else Result := sURL; URLTypeEMail : If Pos('mailto:',Lowercase(sURL)) = 0 then Result := 'mailto:'+sURL else Result := sURL; URLTypePhone : If Pos('tel:',Lowercase(sURL)) = 0 then Result := 'tel:'+sURL else Result := sURL; else Result := ''; End; end; However, it doesn't happen in a clean project, something else is involved too and I'm not sure what.
  15. In my limited testing so far on an existing project, trying to run the project (on a connected 64bit device) just freezes during the splash screen. If I then run the same app from the device directly after terminating the debug session and it runs with no issues.
  16. Added mine to the report (OnePlus7/Android10 if anyone wondering).
  17. Yaron

    Delphi 10.3.3 has been released

    I used the option from the control panel.
  18. Yaron

    Delphi 10.3.3 has been released

    https://quality.embarcadero.com/browse/RSP-26980
  19. Due to Delphi's inability to register changes in included ({$I filename}) files when performing a standard compile, I am forced to do a full build which brings up warning/hints from underlying units. With MARS, I always see these 9 Hints: [dcc32 Hint] MARS.Core.JSON.pas(264): H2443 Inline function 'TJSONArray.GetValue' has not been expanded because unit 'System.Generics.Collections' is not specified in USES list [dcc32 Hint] MARS.Core.JSON.pas(384): H2443 Inline function 'TJSONArray.GetValue' has not been expanded because unit 'System.Generics.Collections' is not specified in USES list [dcc32 Hint] MARS.Core.JSON.pas(473): H2443 Inline function 'TJSONObject.GetPair' has not been expanded because unit 'System.Generics.Collections' is not specified in USES list [dcc32 Hint] MARS.Core.JSON.pas(822): H2443 Inline function 'TJSONArray.GetValue' has not been expanded because unit 'System.Generics.Collections' is not specified in USES list [dcc32 Hint] MARS.Core.MessageBodyWriters.pas(129): H2443 Inline function 'TJSONArray.AddElement' has not been expanded because unit 'System.JSON' is not specified in USES list [dcc32 Hint] MARS.Core.MessageBodyWriters.pas(275): H2443 Inline function 'TJSONArray.AddElement' has not been expanded because unit 'System.JSON' is not specified in USES list [dcc32 Hint] MARS.Core.MessageBodyReaders.pas(302): H2443 Inline function 'TJSONArray.GetValue' has not been expanded because unit 'System.Generics.Collections' is not specified in USES list [dcc32 Hint] MARS.Core.MessageBodyReaders.pas(366): H2443 Inline function 'TJSONArray.GetValue' has not been expanded because unit 'System.Generics.Collections' is not specified in USES list [dcc32 Hint] MARS.Data.Utils.pas(213): H2443 Inline function 'TJSONArray.AddElement' has not been expanded because unit 'System.JSON' is not specified in USES list Any merit to these hints?
  20. Yaron

    The 9 Hints in MARS

    After doing a clean install of Delphi 10.3.3, I had to re-install mars, so I did a zip download directly from GitHub and on a re-compile, it still shows 3 hints: [dcc32 Hint] MARS.Core.MessageBodyReaders.pas(302): H2443 Inline function 'TJSONArray.GetValue' has not been expanded because unit 'System.Generics.Collections' is not specified in USES list [dcc32 Hint] MARS.Core.MessageBodyReaders.pas(366): H2443 Inline function 'TJSONArray.GetValue' has not been expanded because unit 'System.Generics.Collections' is not specified in USES list [dcc32 Hint] MARS.Data.Utils.pas(213): H2443 Inline function 'TJSONArray.AddElement' has not been expanded because unit 'System.JSON' is not specified in USES list I of course fixed it myself in a few seconds, just an FYI.
  21. Yaron

    Delphi 10.3.3 has been released

    FYI for people re-installing: After a complete uninstall, I did a search of *embarcadero*.* on my system drive and found over 30GB of left-overs (from v10.2 and 10.3), which included a copy of interbase, the entire rad studio and sample files I choose to install in a non-default folder. I actually did several install/uninstall cycles with just v10.3.3 and each time it left a large group of files behind (~2.5gb), so the uninstall process is far from clean. Just be careful when erasing some of these folders as they may contain your license information.
  22. Yaron

    Delphi 10.3.3 has been released

    I eventually had to uninstall, including registry and reinstalled using the web installer to get things working again. Now I need to re-configure Delphi from scratch, *yay*
  23. Yaron

    Delphi 10.3.3 has been released

    I thought I may try the web installer as that worked for me well under a VM with the beta version, but since I originally installed through the ISO on my real PC, it warns me that the registry settings are incompatible and that I should use the ISO.
  24. Yaron

    Delphi 10.3.3 has been released

    I uninstalled everything (including java) and installed clean from the ISO, at the end it was written to click finish and the microsoft sdk installer will execute, but it didn't. I then tried to compile an Android application that compiled just fine with the 10.3.3 beta and I get this: Do I need to install Java separately from the Delphi ISO? Under "c:\Program Files\Java\" I can see "jdk1.8.0_60" and "jre1.8.0_60" populated folders that were created by the Delphi installer.
×