Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. limelect

    LOCKED FILE

    Does anyone know the mechanism behind the lock of a file? What happens between the process and the file? I do not know. Any theory? I could not find
  3. limelect

    LOCKED FILE

    I have it I need software not applications as I know them all I need something very specific about the link (locked file ) between the process and the file
  4. PeterBelow

    Delphi 11.3 CEF4Delphi

    Looks like the design-time package in the D11 folder (22.0 is the folder for that version) is in fact the version for D12, that is, should be in the 23.0 branch. But it may also be the correct version but tries to load a run-time package from the wrong folder. That is a common problem if the packages are not named properly with a version tag (280 for D11, 290 for D12). Run-time packages are loaded using Window's search strategy for DLLs (since they are DLLs in fact), which includes searching folders on the PATH. If you have several RAD Sudio versions installed each will have its BPL folder on the path, so the search may find the wrong version of a package if they all have the same filename. A possible cure is to move the run-time package in question to BIN folder of the matching Delphi version (where bds.exe resides), since Windows searches that folder first. Another is to start the IDE not via the start menu links the installer created but from a batch (cmd) file where you first redefine the PATH to only contain the folders for this Delphi version. Oh, and if you can rebuild the packages you can of course change the project options to use the proper version tags for the produced binaries.
  5. DelphiUdIT

    LOCKED FILE

    Other than Unlocker there is also a SysInternals utility that should do that, HANDLE: https://learn.microsoft.com/en-us/sysinternals/downloads/handle You can do some search to identify the Windows API that can release an handle: HANDLE of SysInternals use the PID of process to do this without close the thread or process the lock the file (or handle in general).
  6. PeterBelow

    import C# Dll in delphi 10.4

    If the DLL is COM-enabled you can use the Component -> Import component dialog from the IDE main menu: A pure .NET assembly without COM support cannot be used from Delphi with the tools available out of the box, but there are 3rd-party libraries available, some freeware. A google search for "host the .net framework in delphi" turns up this for example. I have no personal experience with such libraries.
  7. Today
  8. PeterPanettone

    Bug: Lock Controls is not restored at IDE start!

    On the other hand, the "Show/Hide Non-Visual Components" setting in the Edit menu is being restored between sessions.
  9. PeterPanettone

    Bug: Lock Controls is not restored at IDE start!

    Strange coincidence: It seems the same person has also filed a similar report today: https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-791
  10. MarkShark

    Bug: Lock Controls is not restored at IDE start!

    As a possibly related note. I've created a bug report Lock Controls not visible initially regarding that menu item having some issues when placed on an IDE toolbar. I always do this when I customize the IDE after install. It's a very useful feature.
  11. Could you share your code please ?
  12. limelect

    LOCKED FILE

    P.S To us professionals clear the lock condition is important as we know what we are doing 50 years in the business !!!!!!!!!!!!!!!! actually lost count
  13. limelect

    LOCKED FILE

    FD and SQLite But this is not important as it is one example of many. I have to close programs often as they lock files needed to change I use the above program to do that so I can keep working on a program locking a file The above program Unlocker by Cedrick Collomb is excellent but is not that friendly so I wanted to do my own P.S/ some time the lock condition stay even if you close the application associated wit the file
  14. Kas Ob.

    TCP Port Check with timeout

    Also, i would love to see if there a change in timing in your result with TCP_NODELAY.
  15. Uwe Raabe

    Bug: Lock Controls is not restored at IDE start!

    Seems someone already filed a report 8 years ago: https://quality.embarcadero.com/browse/RSP-13448
  16. FPiette

    LOCKED FILE

    Never! Which database are you using? Which database access component are you using?
  17. Kas Ob.

    TCP Port Check with timeout

    I do understand, and it will work. Just handle an error after that send to exit the loop, and i want to add this fact: The TCP peer that does close the socket will trigger TIME_WAIT on the remote side, TIME_WAIT is absolutely harmless and in fact it is a good thing, just don't panic if like in this case on server side you see them accumulate.
  18. limelect

    LOCKED FILE

    @FPiette P.S. How many times you had to close the IDE to release the LOCKED database? I had to do this many times while in development. This is a small example.
  19. The activated option "Lock Controls" in the Edit menu is not restored when re-starting the IDE! This option is very important and helpful, as it prevents an unintentional repositioning of controls in the Form Designer! It also prevents the annoying file change in the FormDesigner that frequently (randomly) happens when switching from the Code Editor to the FormDesigner (with F12), caused by the automatic re-aligning of aligned controls in the Form Designer: The option "Lock Controls" should be restored automatically when re-starting the IDE to prevent this annoying behavior! Can anyone confirm this?
  20. David Heffernan

    import C# Dll in delphi 10.4

    There are lots of different ways to do this depending on what the dll offers. Nobody can give you any steps without knowing how the dll exposes its functionality.
  21. Are you sure this is right? It takes a reference to the array rather than a copy.
  22. This is exactly why I've chosen to go with TMS WEB Core as it runs in pretty much any web browser. It does not lock you into any particular hardware or OS version. If you need something specific, you can get a cheap machine and use it to build a REST service that the web app can call directly, or indirectly through your app's main service. There's also Crossover, which is a WINE-based containerized solution for running a Windows app in other environments that looks and runs as a native app. It's ok for one-offs, but publishers will need to see if its cost justifies the results.
  23. procedure TDataField.SetAsGuidArray(SourceItems: TArray<TGuid>); begin DataType := ftArray; FArrayItemType := ftGuid; FDataArrayGuids := SourceItems; end;
  24. dwrbudr

    TColorBox bad performance, if style differs from default

    If all or most of the comboboxes need to be populated with the same items, then cache the Items of one combobox to a TStringList. Then use ColorBox1.Items := CachedColorItems instead of setting its Style. On my side it increases the performance from 20ms to 15ms
  25. Clément

    TCP Port Check with timeout

    Hi @Kas Ob. Your insight is always welcome. I'm implementing a "Ping" using TCP protocol. (Don't say it out loud !) I'm spending some time with wireshark, trying to get this sequence of packets: -> [SYN] <- [SYN,ACK] -> [ACK] -> [FIN,ACK] <- [FIN,ACK] -> [ACK] I noticed sending a 0 length packet seem to be a step in the right direction. I really don't know what to send.. Probably a glorious "tcp ping packet sent by dhsPinger" message in the final release The "not done" loop is handling both blocking and non-blocking calls. In this case, blocking makes no sense since the connection might take longer than a specified timeout. But the code is so simple and it makes no difference at this time... The "sleep", well, it's the poor man's way of not hogging the CPU in a loop The class need a lot more polishing, I'm focused on getting the right packet sequence.
  26. Yesterday
  27. marcocir

    Delphi 11.3 CEF4Delphi

    Hi all. After successfully installing CEF4Delphi on Delphi 12.1, same package in Delphi 11.3 raised an error at startup. Now, every attempt to reinstall it on Delphi 11.3 results in the same error, specifically during the installation of the design-time BPL. Any help? Thanks Marco
  28. Dave Nottage

    Error when iOS application building in Delphi 11.2

    What exactly is the error message you are seeing?
  1. Load more activity
×