AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de depuración
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Saves a memory dump containing the memory resources that have been allocated and that have not been freed since the previous call to dbgStartMemoryDiff.
This debugging method is used to isolate the memory resources of an operation that should be neutral for the memory. This allows you to correct the code and to add the potential missing freeing statements (queries no longer used, global object no longer used during the rest of the execution, etc.).
Ejemplo
// Début du diff mémoire
// avant l'opération qui devrait être neutre pour la mémoire
dbgStartMemoryDiff()

...

// Opération qui devrait être neutre pour la mémoire
...

// Enregistrement du dump mémoire
// après l'opération qui devrait être neutre pour la mémoire
dbgEndMemoryDiff()
Sintaxis

Saving the difference memory dump in the current dynamic audit

dbgEndMemoryDiff()
Remark: This syntax saves the memory dump in the dynamic audit file if auditing is active.. The function has no effect if the dynamic audit is not enabled.

Saving the difference memory dump in a file Ocultar los detalles

dbgEndMemoryDiff(<Dump file>)
<Dump file>: Character string
Name of the file where the dump is saved. The name of the file can be built with the following elements:
[%ExeDir%]Directory of the executable, always filled with the "\" character. This directory is equivalent to the result of fExeDir.
[%ExeName%]Executable name.
[%Date%]Start date of memory dump (YYYYMMDD format).
[%Time%]Start time of the memory dump (HHMMSS format).
[%UserName%]Name of the current user.
[%ComputerName%]Computer name.
[%DataDir%]Directory of the HFSQL data files specified by the user when installing the application. This directory is equivalent to the result of fDataDir.
[%DirUserData%]Directory for the data of the current user of the current application. This directory is equivalent to the result of fDataDirUser.
If this parameter corresponds to an empty string (""):
  • The extension of the file will be ".wmem".
  • The name of the file created corresponds to: "[%RepDonneesUtilisateur%][%NomExe%]_[%Date%]_[%Heure%]".
    For example: "C:\Users\Doc\AppData\Roaming\Applications WINDEV\MyAppli\MyAppli_20091023_130812.wmem".
Warning: If you use dynamic string construction (option "Permitir "[% %]" en las cadenas" in the "Compilation" tab of the project description, a compilation error will appear (unknown identifier).. In this case, each string must be preceded by '-%'. Example:
dbgEndMemoryDiff("[%RepDonneesUtilisateur%][%NomExe%]_[%Date%]_[%Heure%]")
becomes
dbgEndMemoryDiff(-%"[%RepDonneesUtilisateur%][%NomExe%]_[%Date%]_[%Heure%]")
Componente: wd300vm.dll
Versión mínima requerida
  • Versión 15
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 24/03/2025

Señalar un error o enviar una sugerencia | Ayuda local