

jesu
Members-
Content Count
33 -
Joined
-
Last visited
Everything posted by jesu
-
Hello. I have an application in which I show some webpages and pdfs, so I'm using tedgebrowser. I have copied WebView2Loader.dll. In the same computer, some days it works, other days it doesn't work. I have a declaration: WebBrowser: TEdgeBrowser; First of all I do is to initialize it: WebBrowser.CreateWebView; and I have a procedure to know when it fails: procedure TFPrincipal.WebBrowserCreateWebViewCompleted(Sender: TCustomEdgeBrowser; AResult: HRESULT); begin // el problema de esto es que se llama de forma asíncrona y tarda un buen rato if Succeeded(AResult) then begin // ProcDebug('finalizó creación edge'); if WebBrowser.ControllerInterface <> nil then WebBrowser.ControllerInterface.Set_IsVisible(Integer(LongBool(True))); end else begin ShowMessage('>> Fallo en creación navegador hresult: ' + IntToStr(Aresult)); end; end; when it fails it returns hresult: -2147023496. I've tried to find the meaning and I arrived here: https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2weberrorstatus?view=webview2-winrt-1.0.2903.40 but I can't identify the issue. How can I know where's the problem? Thanks.
-
The problem of using a custom component is that if a vulnerability is discovered in Edge, we can blame Microsoft and expect that they solve it. If it happens in Chromium, who would solve it?
-
Thanks. The search only returns this page: https://github.com/MicrosoftEdge/WebView2Feedback/issues/3097 where they talk about random issues that are solved restarting the computer. Is there any other way I could/should try to restart the webview?
-
Hello. I've created a VM with VirtualBox 7.1.6 and Delphi 12.3. Once the IDE is ready it works acceptably, but the IDE starts extremely slow (it can need several minutes to start using only 1% CPU). I've installed Process Monitor but I'm not sure what to look for and I don't see nothing strange. This is a small part of the log: How can I know where is the problem? Thanks.
-
One of the first things I did with the vm is uninstall Onedrive and alike. Usually I don't browse inside the vm, but I'll need to download and install some programs, and some of our applications include internet connections to third parties. I've always used vms for Delphi without these problems, but this is the first time I use version 12.3 and also the first time I use Windows 11 (I can´t delay using this crap any longer) and VirtualBox 7, so I'd like to know which of them triggered this issue. I suppose I'm not the only one with this configuration. If I exclude e:\Embarcadero and C:\Users\usuario\Documents\Embarcadero\Studio\23.0\CatalogRepository (I don't understand why the installer used that folder ignoring the one I chose during installation) would that be enough or I'll have to exclude also any components I use like e:\Raize,.... ?
-
What I pasted is a very minimal part of the log. So you don´t think those buffer overflows are a Delphi problem? Ok, I disabled everything in Defender and, after reinitiating the vm, this time it started fast. What should I do? Run always without Defender?
-
What new features would you like to see in Delphi 13?
jesu replied to PeterPanettone's topic in Delphi IDE and APIs
-Make updates less painful. At least save a list of GetIt components installed and reinstall them automatically in next version. -Add animations to VCL -And/or add an option to FMX to create Windows-only applications that allow to use native Windows controls like TToolBars and alike -Find a way to do the same that anonymous methods can do but without the same problems for readability. And sponsoring updating third party controls like JVCL and others to be in line with current UI could be an incentive for some people to upgrade. -
Hello. I'm trying to create a function that can return a float or nil: function myfunc(const pa_value:string): double; begin if pa_value = whatever then result := -1 else result := nil; end; to replace many lines like this (simplified code): if check then parambyname('myparam').asfloat := -1 else parambyname('myparam').clear; What is the right way to do that? Thanks.
-
This happens in the first execution of bds after installation, so that problem shouldn't exist if Getit had uninstalled them rightly. I uninstalled Navigator by hand because I had read that was the only one that gave trouble. It seems I was wrong.
-
After installing new version I get lots of errors like this: That file has date 23/9/2024. Is that the new version or the old one that wasn't uninstalled? Should I repeat the whole process again? Thanks.
-
function: how to return nil
jesu replied to jesu's topic in Algorithms, Data Structures and Class Design
Right, I've removed var and it works, but the combobox style is csDropDown so I check both itemindex and text. And there are lots of them, so if I have a problem I use the name to find which one is wrong. -
function: how to return nil
jesu replied to jesu's topic in Algorithms, Data Structures and Class Design
ok, I'm not modifying tparam, but tparam.value -
function: how to return nil
jesu replied to jesu's topic in Algorithms, Data Structures and Class Design
Because I'm modifying it inside the procedure -
function: how to return nil
jesu replied to jesu's topic in Algorithms, Data Structures and Class Design
Thanks for the suggestions. Returning a dummy value would mean rewriting the stored procedures so that's a no-no. I'm trying to avoid Variants because in the past I've had problems with variants <-> float. I've tried this instead procedure ProcValorDeCombo(var pn_param: TFDParam; pt_Combo: TComboBox); var vn_marca: double; begin case pt_Combo.ItemIndex of -1: begin // code ... pn_param.AsFloat := vn_marca; end; // code... else pn_param.Clear; end; end; but when I try to call it ProcValorDeCombo(ParamByName('myparam'), mycombo); I get E2197 Constant object cannot be passed as var parameter -
I didn't use anything new. If they break compatibility, what's the purpose of calling it 12.2 instead of 13.0?
-
When I compile a program with 12.2 and deploy to a computer that has 12.1 bpls I get this error: No se encuentra el punto de entrada del procedimiento @System@Threading@TParallelArray@$bcctr$qqrv en la biblioteca de vínculos dinámicos myprogram.exe. Have they changed the interface? Thanks
-
Hello This code: if MessageDlg('Welcome to my Delphi application. Exit now?', mtConfirmation, [mbYes, mbNo], 0, mbYes) = mrYes then begin MessageDlg('Exiting the Delphi application.', mtInformation, [mbOk], 0, mbOk); Close; end; shows icons in previous versions, but not in Delphi 12. This is too obvious to be a bug. Am I missing something? Thanks.
-
Hello. I have 2 folders called CatalogRepository. One is C:\Users\usuario\Documents\Embarcadero\Studio\23.0\CatalogRepository and another one in D:\Delphi12\CatalogRepository. I think this last one is the folder I chose during installation. Each of them occupies several gigabytes. The one in C contains Fastreports, Jedi, Styles.. and the one in D has Android NDK, Konopka, FmxLinux,... Are both neccessary? Can I delete any of them to save some space? Thanks.
-
If I copy an exe that uses skia to another computer I get Runtime error 217 at 00EA254C Options: -Allow to include skia in the exe (like midaslib) -Show the right error message and an option to download sk4d.dll -???? And another problem is that that dll doesn't have a version. If they solve a bug in a new version, how can we know if the user has the right version? Does this make sense? Has anyone asked Embarcadero to improve it? Thanks.
-
My experience is that if you compile without doing any changes it always works, but compiling + doing changes + recompiling sometimes fails. It seems obvious that they are saving something from previous compilations and they are doing it wrong. There should be an option to do always a clean compilation. That would be much faster than having to close the IDE and reopen.
-
For me, the update has been messy. I have Raize components in the palette, but GetIt says they aren't installed. And if I try to install it throws an exception saying that old files are in use and can't be deleted. And help doesn't work. It tries to go to urls that don't exist like https://docwiki.embarcadero.com/CodeExamples/Updates/en/MessageDlgConfirmation_(Delphi)
-
Hello. I'm testing Delphi 12 + patch 1 and getting some internal errors like F2084 Internal Error: AV6AA94AE0(6AA70000)-R00000018-0. F2084 Internal Error: D33789 Closing Delphi and deleting dcus so far has solved it, but it doesn't improve chances that we upgrade. Is this a known problem? Thanks.
-
No, disabling package cache hasn't helped at all
-
That worked. Thanks.
-
Any way to restore the previous behaviour? That's what users have seen for many years and what they expect