All Activity
This stream auto-updates
- Past hour
-
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
-
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
-
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.
-
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).
-
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.
- Today
-
Bug: Lock Controls is not restored at IDE start!
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
On the other hand, the "Show/Hide Non-Visual Components" setting in the Edit menu is being restored between sessions. -
Bug: Lock Controls is not restored at IDE start!
PeterPanettone replied to PeterPanettone's topic in Delphi IDE and APIs
Strange coincidence: It seems the same person has also filed a similar report today: https://embt.atlassian.net/servicedesk/customer/portal/1/RSS-791 -
Bug: Lock Controls is not restored at IDE start!
MarkShark replied to PeterPanettone's topic in Delphi IDE and APIs
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. -
Returning numpy array constructed in Delphi back to python call
cm07 replied to hsauro's topic in Python4Delphi
Could you share your code please ? -
cm07 joined the community
-
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
-
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
-
Also, i would love to see if there a change in timing in your result with TCP_NODELAY.
-
Bug: Lock Controls is not restored at IDE start!
Uwe Raabe replied to PeterPanettone's topic in Delphi IDE and APIs
Seems someone already filed a report 8 years ago: https://quality.embarcadero.com/browse/RSP-13448 -
Never! Which database are you using? Which database access component are you using?
-
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.
-
@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.
-
Bug: Lock Controls is not restored at IDE start!
PeterPanettone posted a topic in Delphi IDE and APIs
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? -
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.
-
How to write several SetAs...Array procedures ?
David Heffernan replied to RayTmsk's topic in RTL and Delphi Object Pascal
Are you sure this is right? It takes a reference to the array rather than a copy. -
iOS: XCode 15: MADDA - Make Delphi Debugging again - after 01.May 2024
David Schwartz replied to Rollo62's topic in Cross-platform
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. -
How to write several SetAs...Array procedures ?
RayTmsk replied to RayTmsk's topic in RTL and Delphi Object Pascal
procedure TDataField.SetAsGuidArray(SourceItems: TArray<TGuid>); begin DataType := ftArray; FArrayItemType := ftGuid; FDataArrayGuids := SourceItems; end; -
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
-
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.
- Yesterday
-
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
-
What exactly is the error message you are seeing?