Windev 25 - Dump Exclusive
A issue happens when your program crashes and blocks database access, or when an error dump file fails to open because another process locks it.
If you are using HFSQL replication, an exclusive dump can temporarily desynchronize your slave servers. Avoid exclusive dumps on master nodes that are actively replicating.
// This will trigger a dump if ANYONE else has the file open HOpen(MyFile, hReadWrite + hExclusive) Use code with caution. Copied to clipboard
In WinDev 25, an exclusive operation means the HFSQL engine must lock the data file entirely. No other user or process can read or write to it during this time. Common Triggers
When you open a dump file using the method, you gain access to the following, as described in the official PC SOFT documentation: windev 25 dump exclusive
In Client/Server mode, use the HBackup function. It allows for scheduled "snapshots" which are the professional equivalent of a manual dump.
This article explores the "Dump Exclusive" (or dbgSaveDebugDump ) feature in WinDev 25, explaining how it enables developers to generate actionable .wdump files that reveal the call stack, variable content, and full runtime context, ultimately speeding up the resolution of complex bugs. What is Windev 25 Dump Exclusive?
// Example: Force disconnect users from a specific database HDisconnectUser(MyConnection, "DatabaseName", "*") Use code with caution. 2. Configure the Backup/Dump to Handle Locks
: The editor now automatically generates the code required to pass parameters to a report. A issue happens when your program crashes and
To harness the power of exclusive dumps without destroying user experience, follow these enterprise-grade best practices.
[ Application Crash ] ──► [ Generate .DMP File ] ──► [ Analyze via WinDbg ] ──► [ Isolate WLanguage Call ] Step 1: Force a Clean Dump Generation
If your WinDev 25 application utilizes parallel tasks, ensure that each thread creates its own clean database context to prevent internal exclusive lock collisions.
Drag and Drop the .wdump file directly into the WINDEV/WEBDEV/Mobile project editor (e.g., on the bar of open documents). // This will trigger a dump if ANYONE
Before modifying any code, you need to collect context from the crash using diagnostic tools.
How to use the (RTPP) in conjunction with dumps. More details on WLanguage debugging functions. WX25-Features-simple.pdf - WinDEV
By default, if WinDev cannot get an exclusive lock immediately, it may crash. Increase the timeout parameters so the application waits for transient locks to clear.