Der schöne Günther
Members-
Content Count
655 -
Joined
-
Last visited
-
Days Won
12
Everything posted by Der schöne Günther
-
@Stefan Glienkewhere is the most recent download? The page still links to https://files.spring4d.com/TestInsight/1.2.0.0/TestInsightSetup.zip Your comment here states that there is at least a 1.2.0.4. The most recent version I have been able to find was listed at https://bitbucket.org/sglienke/testinsight/wiki/Home and links to https://files.spring4d.com/TestInsight/1.2.0.1/TestInsightSetup.zip
-
Shouldn't var Foo: IFoo := FunctionReturningInterface() suffice? 🤔
-
Attempt to release mutex not owned by caller
Der schöne Günther replied to desert_coffee's topic in RTL and Delphi Object Pascal
Hi there. TMutex.Release() is just calling ReleaseMutex(..) of the regular Win32 API. Here is its documentation: ReleaseMutex function (synchapi.h) - Win32 apps | Microsoft Learn You acquired the mutex directly in the constructor of TLockGuard. You will have to release it from the same thread that acquired it. By the way: In your destructor you are calling _mtx.Release() even if _mtx is nil By the way: Can you post a complete example of how you are using your TLockGuard? For simple cases I have not been able to reproduce your issue. If you are constructing it locally, reference it as an IInterface and do not pass it somewhere else, it should be fine ... I guess. -
Can I develop with Smart App Control activated?
Der schöne Günther replied to MartinPe's topic in General Help
Source: What is Smart App Control? - Microsoft Support -
Do the tests still show up after you have cleared the list? ❌ I think TestInsight will still keep tests in its lists, even if they don't exist anymore.
-
My "Execute" on Thread is not called anymore... I'm staying crazy and dont see the my error
Der schöne Günther replied to programmerdelphi2k's topic in Algorithms, Data Structures and Class Design
Can you post a complete, working example? Your TMythread::Execute() is being called. -
You really need to understand how floating point numbers work on computers. This is not a "bug" Feel free to try this out with other C++ compilers, they won't report zero either. https://onlinegdb.com/c2zTpiuZ_c Since you did redo your post completely: You need to be aware that you are mutating the variable several times comes with a loss of precision every time. It depends on the target platform, compiler optimizations and more. You will have to accept that regular floating point arithmetics are not 100 % precise.
-
I'm no expert on that, but 0x073302E8 is your instruction address. Can't you just start your application in the debugger (press F8) and then use "Go to address" and see where that ends up?
-
See Writing Dynamically Loaded Libraries - RAD Studio (embarcadero.com) Quote (emphasis by me):
-
Are you using range checking in your debug build? Maybe the compiler does different range checking for static and dynamic arrays.
-
Subscribe to a web stream and listen to incoming streams
Der schöne Günther replied to p-samuel's topic in Network, Cloud and Web
In Delphi, you will usually take a StreamReader and use its ReadLine() method which will block. -
https://docwiki.embarcadero.com/RADStudio/en/Installation_Notes#System_Requirements
-
Yes, this is a well known restriction of Chromium. It is so common that it baffles me this is also one of the many things that Embarcaderos wrapper TEdgeBrowser has no easy access to. You will either have to set environment variable you mentioned inside your own process (which should only be a last-resort workaround), start your own process with this command line argument (even worse) or make changes to the edge browser source code, so it will feed the required parameters into AdditionalBrowserArguments. Or use another library that offers more flexibility. That's for sure, but who said those files were writeable?
-
Do you think Embarcadero would let me switch my license from Delphi to C++ builder?
Der schöne Günther replied to Al T's topic in General Help
Why do you need to convert them to another language? Can't you build the C++ stuff as a separate library or process and then use that from your Delphi application? -
Move project to pc with different scaling (100% -> 150%) - Impact on GUI ?
Der schöne Günther replied to CyberPeter's topic in VCL
Not sure what version control system you're using, but you should be able to commit just parts of your changes / revert parts of the changes. I do that all the time, because it happens all the time. You just add a button and the IDE decides it's now time to change a dozen other things within your .dfm file as well... -
TEdgeBrowser - Any successful deployments and updates?
Der schöne Günther replied to David P's topic in VCL
We started doing that even before it was considered "stable" and never had a problem. To be honest, I'm only using it for displaying PDFs and some small live value display, nothing too fancy. I think we just make sure that the WebView2Runtime is installed, and that's it. -
Is loading a resourcestring not threadsafe?
Der schöne Günther replied to Perpeto's topic in RTL and Delphi Object Pascal
I am loading resource strings from several threads and never had a problem. That doesn't mean it's ok to do so, but I never had anything while you make it sound like an AV is guarenteed to happen unless you surround it with critical sections. Can you create a reproducable sample? -
Blogged - Code signing with USB tokens
Der schöne Günther replied to Vincent Parrett's topic in Tips / Blogs / Tutorials / Videos
Thank you so much! I never bothered with code signing (we ship devices with our software pre-installed), so this is all entirely new to me. -
Hope not to derail this thread, but there is a ton of UI libraries for Rust. However, I know of no IDE that offers some kind of a form designer like those from RAD Studio or Visual Studio. I have used a simple WebView for small hobbyist projects in Rust (using wry which is also used by Tauri [Tauri in 100 Seconds - YouTube]). I'm not sure if I'd really miss creating VCL over HTML. I found it very enjoyable so far, however just on a very small scale. If you have heavily invested in custom VCL components over the years, then you're pretty much "locked in". From time to time, I am replacing some smaller parts of our Delphi applications with web interfaces. So far, I am very happy with the results, and I'd like to continue going down that route.
-
I haven't seen Windows automatically launching an application after plugging in a USB drive for ten or 15 years. Consult the official documentation about autorun.inf: Autorun.inf Entries - Win32 apps | Microsoft Learn
-
After all their licensing stuff went south, we never installed Delphi IDEs on real machines anymore, just virtual ones. If licensing (or the IDE itself) breaks, just roll back the VM, and you're back in the game. The VM doesn't even need internet.
-
With Delphi 11.1, my actual output is exactly what you expect.
-
Encoding accented char in JSON format
Der schöne Günther replied to DavidOne's topic in Network, Cloud and Web
As far as I understand, not the DB layer (TFields and stuff) is throwing the exception, but your Writer is, correct? If that's the case, have you seen its StringEscapeHandling-property? -
Me neither, there really is a lot of room for improvement, even with MMX. I really like the "time since last edit". I suppose it's referring to the files on disk, not the underlying source control system? Not sure if an absolute path to the files is really helpful. Wouldn't a path, relative to the active project root, be sufficient? 🤔
-
I remember using CromisIPC about 8 years ago, but it never really worked 100%, so we stopped using it.