Jump to content

Der schöne Günther

Members
  • Content Count

    655
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by Der schöne Günther

  1. Der schöne Günther

    TestInsight 1.2 released

    @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
  2. Der schöne Günther

    function returning interface

    Shouldn't var Foo: IFoo := FunctionReturningInterface() suffice? 🤔
  3. Der schöne Günther

    Attempt to release mutex not owned by caller

    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.
  4. Der schöne Günther

    Can I develop with Smart App Control activated?

    Source: What is Smart App Control? - Microsoft Support
  5. Der schöne Günther

    TestInsight usage

    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.
  6. Can you post a complete, working example? Your TMythread::Execute() is being called.
  7. Der schöne Günther

    floating point error, [solved].

    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.
  8. Der schöne Günther

    Need help with exception messages

    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?
  9. Der schöne Günther

    My app dies in Server 2019

    See Writing Dynamically Loaded Libraries - RAD Studio (embarcadero.com) Quote (emphasis by me):
  10. Der schöne Günther

    Array size 64bits

    Are you using range checking in your debug build? Maybe the compiler does different range checking for static and dynamic arrays.
  11. Der schöne Günther

    Subscribe to a web stream and listen to incoming streams

    In Delphi, you will usually take a StreamReader and use its ReadLine() method which will block.
  12. Der schöne Günther

    Windows System Requirements for Delphi

    https://docwiki.embarcadero.com/RADStudio/en/Installation_Notes#System_Requirements
  13. Der schöne Günther

    TEdgeBrowser : "Unsafe attempt to load URL"

    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?
  14. 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?
  15. Der schöne Günther

    Move project to pc with different scaling (100% -> 150%) - Impact on GUI ?

    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...
  16. Der schöne Günther

    TEdgeBrowser - Any successful deployments and updates?

    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.
  17. Der schöne Günther

    Is loading a resourcestring not threadsafe?

    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?
  18. Der schöne Günther

    Blogged - Code signing with USB tokens

    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.
  19. Der schöne Günther

    Cpp2 - Herb Sutter

    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.
  20. Der schöne Günther

    AutoRun.Inf in USB

    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
  21. Der schöne Günther

    Delphi Registration

    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.
  22. Der schöne Günther

    function returning interface

    With Delphi 11.1, my actual output is exactly what you expect.
  23. Der schöne Günther

    Encoding accented char in JSON format

    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?
  24. Der schöne Günther

    Open Unit Window

    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? 🤔
  25. Der schöne Günther

    Anyone using Cromis?

    I remember using CromisIPC about 8 years ago, but it never really worked 100%, so we stopped using it.
×