Jump to content

Steve Maughan

Members
  • Content Count

    103
  • Joined

  • Last visited

Everything posted by Steve Maughan

  1. I've added a TNotification to my application. After it completes a relatively computationally intensive task it creates and displays the notification using the following code: //-- Create it xNotification := NotificationCenter.CreateNotification; try //-- Process if assigned if assigned(xNotification) then begin xNotification.Name := 'Optimizer'; xNotification.Title := 'AlignMix AI Optimizer'; xNotification.AlertBody := IntToStr(OptScope.TerritoryCount) + ' ' + Project.Alignment.Territory.TerritoryNamePlural + ' created in ' + FormatFloat('#,##0.0', StopWatch.ElapsedMilliseconds / 1000) + ' seconds'; NotificationCenter.PresentNotification(xNotification); end; finally xNotification.Free; end; However, when the EXE is run for the first time outside the IDE the notification has a rather odd caption "Embarcadero.DesktopToasts.02911170" (see image attached). On subsequent runs it has the executable name, minus the ".exe" extension (see image attached). How can I customize the notification caption? I'd like it to simply say "AlignMix" Thanks, Steve
  2. I have a confession: I'm terrible at ensuring there are no Hints or Warnings in my code. That's all got to stop now that I have switched to 10.4.2 — the IDE now scream at me to fix these Hint and Warning (that's a good thing)! One hint that crops up a lot in my code is H2443 Inline function. Typically it says something like: H2443 Inline function: TOptimizer.Execute has been expanded because unit 'TAnneal' is not included in the USES list What is this all about? Clearly the code runs without TAneal in the USES list and I like to minimize the number of units in the USES list. The hint goes away if I add TAnneal to the USES list but what's the advantage of including it — my code is cleaner and runs just fine if I don't include it. Also, does anyone have a tutorial on getting rid of Delphi Hints and Warnings? Some are obvious, others (like this one) are not so obvious. Thanks, Steve
  3. Steve Maughan

    Delphi 10.4.2 first impressions

    Hi David, Does your app target Win64 or just Win32? My Win32 component path was fine, it was my Win64 component path that was scrubbed. Steve
  4. So it's a speed thing. Thanks!
  5. Steve Maughan

    Delphi 10.4.2 first impressions

    As I posted elsewhere, the new install scrubbed my Win64 library path. That was the only problem I encountered. Overall it seems like an excellent, quality orientated upgrade. I ran my mapping application through some speed tests and it definitely seems to be running faster when compiled with the latest version — about +4% faster. Steve
  6. I made the mistake of updating as soon as it was released. After installing (all default option) I found it had scrubbed my Win64 component path. The Win32 path is in tact but it'll be a right old pain to manually copy between the two. Also had to re-install OnGuard and Konopka components via GetIt (a modest pain). Be warned, Steve
  7. Steve Maughan

    NERO5 chess engine

    Deep Blue was IBM’s pet project from the late 90’s and has never been available for public scrutiny. It’s estimated strength is about 2800 ELO. To put this in context, if the latest Stockfish, running on a iPhone, played 100 games against Deep Blue it would win at least 95.
  8. Steve Maughan

    NERO5 chess engine

    I'm reasonably well know in the field of computer chess and competed in the 2015 World Computer Chess Championships. Although Delphi is my first language, my engine was written in plain old "C". However, there are a number of strong open source chess programs written in Delphi. Here are a few: Booot: booot6_4_release.rar (dropbox.com) Open-Critter: GitHub - rchastain/open-critter: UCI chess engine written in Pascal by Richard Vida Durandal: GitHub - rchastain/durandal: UCI chess engine written in Pascal Steve
  9. Steve Maughan

    Outdated Delphi Roadmap

    One aspect I appreciate is some attention to the compiler's output. It seems 10.5 will finally get some floating point optimization!! Steve
  10. Steve Maughan

    GExperts 1.3.17 experimental twm 2020-10-23 released

    Brilliant! Thanks for this.
  11. Steve Maughan

    Outdated Delphi Roadmap

    It's a roadmap not a punch-list!
  12. Steve Maughan

    Outdated Delphi Roadmap

    Maybe something special is brewing! If I had to guess maybe it would be RAD WebAssembly
  13. If I run my application in debug mode and then exit the application, I get a small dialog informing me "Debug process not initialized" — see screenshot. I then have two buttons: "OK" and "Details". When I click "Details" I can see the MadExcept error report. I can't see anything obviously wrong. Does anyone know how to fix this? All help appreciated! I'm using Delphi DX 10.4.1 Steve bugreport.txt
  14. Steve Maughan

    "Debug process not initialized."

    I disabled MadExcept IDE exception catching and that didn't fix the problem. It was a good idea. Thanks — Steve
  15. Steve Maughan

    Any Known Issues with ZCompressStream?

    My application saves data as a compressed JSON file. I use the standard System.ZLib routines ZCompressStream and ZDecompressStream to handle the compression. I thought these were just a wrapper around standard ZLib routines. Earlier today someone sent me an application file that couldn't be opened. It turns out it couldn't be decompressed. It could have been corrupted after being saved. The decompression routine went into some sort of endless loop when it attempts to open the file. My question is: does anyone know of any problems compressing data using ZCompressStream? I'm using Delphi DX 10.4.1. Are there any other third party ZLib compatible compression and decompression routines? Steve
  16. Steve Maughan

    Any Known Issues with ZCompressStream?

    I won't change my library but I'd still like to be aware of any newer, and maybe better, libraries. Having had a quick look it seems to be third party. I had thought it was shipped with Delphi since it was System.Zip2. I try to minimize the use of third party components so definitely won't switch, or even look any further.
  17. Steve Maughan

    Any Known Issues with ZCompressStream?

    That was a question I had — why wasn't there a checksum error when it tried to decompress?
  18. Steve Maughan

    Any Known Issues with ZCompressStream?

    Thanks David — all good advice. I was really looking to see if there were a list of known bugs with the ZCompressStream. It seems file corruption post saving is probably the most likely explanation.
  19. Steve Maughan

    Any Known Issues with ZCompressStream?

    Thanks — I wasn't aware of System.ZIP2. I'll take a look - Steve
  20. Are we due for an updated Delphi roadmap?
  21. Steve Maughan

    When will we have an updated Delphi roadmap?

    Thanks but this seems to be C++ only.
  22. Steve Maughan

    When will we have an updated Delphi roadmap?

    Thanks! I thought we were due for an update soon
  23. Steve Maughan

    APPX & ProgramData Folder...

    I'm trying to prepare my application for the Windows Store. I'm new to APPX applications so have some basic questions — I hope someone is able and willing to help. I created the APPX file using Advanced Installer. This seemed easy. The application installs a lot of data into the common app data folder (usually in "c:\Program Data\Cozmix\AlignMix"). When I sideload the application there are no errors. However, there is also no data in "c:\Program Data\Cozmix\AlignMix". I assume it has its own virtualized version of this folder — is this correct? I then store an activation key in the same folder— which I can't see. My question is as follows: is the common app data folder the right location to store APPX application data? If not, where should it be stored? Thanks, Steve
  24. Steve Maughan

    APPX & ProgramData Folder...

    I've now updated the API to get the common data path to: result := IncludeTrailingBackslash(TPath.GetPublicPath) I thought that would fix it but unfortunately not — the application is still not seeing the virtualized folder.
×