Jump to content

Lars Fosdal

Administrators
  • Content Count

    3416
  • Joined

  • Last visited

  • Days Won

    113

Everything posted by Lars Fosdal

  1. Lars Fosdal

    Where to put SQLite/MDB database in UWP app

    Where does it create that folder?
  2. Lars Fosdal

    Where to put SQLite/MDB database in UWP app

    Does %APPDATA%\YourAppName\ work? It resolves to C:\Users\<username>\AppData\Roaming Alternatively, %LOCALAPPDATA% C:\Users\<username>\AppData\Local
  3. Lars Fosdal

    ctrl+b on the welcome page

    Not able to reproduce. Steps?
  4. Lars Fosdal

    Where to put SQLite/MDB database in UWP app

    Look at the TPath type in System.IOUtils.- it is cross platform and has a number of methods for getting "special" folders. http://docwiki.embarcadero.com/Libraries/Sydney/en/System.IOUtils.TPath_Methods
  5. Lars Fosdal

    Reproducible AV in Sydney

    @Clément I could reproduce it, added 4 png's of varying size, got AV at step 7. Same stack trace as yours. Also cannot exit the IDE without saving the VCL as the same AV happens and interrupts the exit - regardless of if the form is in text mode or not. Add a QP issue, please.
  6. Lars Fosdal

    ParnassusCoreEditor.dll AccessViolation

    @PeterPanettone - If you add _XRio to the last three, you won't get any issues with Rio when 10.5 arrives.
  7. https://larsfosdal.blog/2020/06/09/preview-any-text-file/
  8. Lars Fosdal

    How to make an "About" for a simple component?

    Why the component designer? I'd do it a bit simpler and design an About form and fetch as much as possible about the application at runtime - such as the icon from the resources, and title, version, etc from the version resource. The company and contact info could be static text, or you put it into properties on the form. The form could have a simple memo where you would put in any additional info you would want to show.
  9. I guess those also could raise issues, but being from Norway, it is rare that we have data with AM/PM. Since Windows Server 2012, Windows have insisted on yy.mm.dd hh.nn.ss for the Norwegian locale, and that has caused issues with exchanging dates as string with an MSSQL database through FireDAC. The "quick fix" that has stuck with us so far - probably because it just worked - is to change the time separator to : (colon) leading to yy.mm.dd hh:nn:ss on the application server that communicates with the database. Wherever that format is massaged within the Delphi conversions, that just works. There is a lot of relatively old code in the layers between the input and the database, so one day we may take time to figure out a better solution.
  10. We've found that date conversion problems often stem from Windows 10 using the same separator for time and date.
  11. Lars Fosdal

    Again with memory leaks and FastMM4

    Did the inherited destructor remember to call inherited?
  12. Lars Fosdal

    Your RAD Studio 10.4 Sydney issues

    Should prolly do a status summary on the issues of this thread and start a new one, but don't have time right now.
  13. Lars Fosdal

    Your RAD Studio 10.4 Sydney issues

    You can write apps for Win 7 if you take care, but the Delphi IDE itself does NOT support Windows 7.
  14. Lars Fosdal

    Unnamed types and RTTI

    Undeclared types probably do not have RTTI because it kinda pointless to be looking up an unnamed type using RTTI, since you don't have a name to look up. Besides, if you were using unnamed types in a class in production code, I'd fire you from my team.
  15. Lars Fosdal

    Meet a New EntityDAC with Support for Delphi 10.4

    @Stefan Glienke I concur.
  16. Lars Fosdal

    ParnassusCoreEditor.dll AccessViolation

    Check registry HKEY_CURRENT_USER\Software\Parnassus OU\Core Is the value of Path set to C:\Program Files (x86)\Common Files\ParnassusShared ? - if not, make it so. Copy the 20.0 DLLs there as per earlier posts.
  17. Lars Fosdal

    Meet a New EntityDAC with Support for Delphi 10.4

    "faster code with managed records" - faster in what way?
  18. Lars Fosdal

    ParnassusCoreEditor.dll AccessViolation

    10.4 does not overwrite the 10.3 versions in C:\Users\<username>\Documents\Embarcadero\Studio\20.0\CatalogRepository\ So, First install for 10.3, then install for 10.4 - and apply the fix above.
  19. Lars Fosdal

    ParnassusCoreEditor.dll AccessViolation

    10.4 has an update to Bookmarks and Navigator. It creates C:\Program Files (x86)\Common Files\ParnassusShared and places ParnassusBookmarks_XSydney.dll ParnassusCoreEditor_XSydney.dll ParnassusNavigator_XSydney.dll So, to cure the 10.3 ailments, copy from C:\Users\<username>\Documents\Embarcadero\Studio\20.0\CatalogRepository\ to the first mentioned common catalog Bookmarks-1.0\ParnassusBookmarks.dll to ParnassusBookmarks_XRio.dll ParnassusCoreEditor-1.0\ParnassusCoreEditor.dll to ParnassusCoreEditor_XRio.dll Navigator-1.0\ParnassusNavigator.dll to ParnassusNavigator_XRio.dll
  20. Lars Fosdal

    ParnassusCoreEditor.dll AccessViolation

    I can't believe they fucked it up again...
  21. Lars Fosdal

    Controlling Canon EOS cameras

    Have you tried TCamRemote from https://alkenius.no-ip.org/
  22. Lars Fosdal

    MSSQL Update Freezes

    It just dawned on me that you wrote the Monitor didn't produce any logging for that query. That strongly suggests that it fails in the preprocessing. What type are the parameters, and can there be invalid data passed to the query? Garbage strings, NaNs, invalid pointers, etc?
  23. Lars Fosdal

    MSSQL Update Freezes

    SQL Server has pretty good diagnostics and logging, so if a query causes it to hang, it should be detectable. I would suggest trying a minimal example with the explicit query through FireDAC, and compare that with the parameterized query. Check parameter by parameter that the value type is correct. That the format is correct (number, date, etc).
  24. Lars Fosdal

    TeeChart & Delphi 10.4?

    I wonder why TChart is not a GetIt thing?
  25. Lars Fosdal

    MSSQL Update Freezes

    Do you get an error if you allow it to time out when it hangs? When SQL just hangs, the cause can be a deadlock. That means that the table you are trying to update, is busy somehow. The default timeout is typically 30 seconds before a thread is declared the winner and the other threads accessing the table gets a lock error and have to do a retry. This is the reason we in our team do our MSSQL table updates through stored procedures. That allows the procedure to do a try/catch and retry if it fails due to a deadlock. Preventing deadlocks: It is important to avoid "lingering" cursors to reduce the risk of deadlocks. F.x. If you really need a cursor, do a select into a memory temp table, and create the cursor on that temp table. If a complex select or view can safely use "With NoLock" on a table, use it.
×