

jesu
Members-
Content Count
33 -
Joined
-
Last visited
Community Reputation
3 Neutral-
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 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.
-
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?
-
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.
-
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. -
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 -
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.
-
I didn't use anything new. If they break compatibility, what's the purpose of calling it 12.2 instead of 13.0?