PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Mechanism for automatic notification of modifications
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Waits for the end of process about the notifications of modification of a shared memory zone. This process is performed by the other applications that use the memory zone and that have requested to be notified.
Example
// Opens the shared memory zone
ZoneNum is int
ZoneNum = fMemOpen("DialogZone", 1024, shareGlobal)

// Writes an information
fWriteLine(ZoneNum, "IDAPP=" + ExeInfo(exeName))

// Waits for the other applications to process the writing notification
fMemWait(ZoneNum)
Syntax
<Result> = fMemWait(<Identifier of Shared Memory Zone> [, <Time-out>])
<Result>: Optional boolean
  • True if all the applications that received a notification have processed it,
  • False if the time-out was exceeded.
<Identifier of Shared Memory Zone>: Integer
Identifier of the shared memory zone to use, defined by fMemOpen.
<Time-out>: Optional integer
Maximum time-out (in milliseconds). This parameter can correspond to:
  • an integer corresponding to the number of milliseconds,
  • a Duration variable,
  • Versions 23 and later
    the direct indication of duration (1 s or 10 ms for example).
    New in version 23
    the direct indication of duration (1 s or 10 ms for example).
    the direct indication of duration (1 s or 10 ms for example).
The time-out is endless if this parameter is not specified.
Remarks

Mechanism for automatic notification of modifications

A procedure for processing the notifications of modifications can be passed in parameter to fMemOpen. If this procedure was specified, it will be automatically called whenever the content of the shared memory zone is modified.
By using fMemWait, an application that writes into a shared memory zone can be sure that its modification was processed by the other applications that use the memory zone.
Note: The mechanism for automatic notification only operates between WLanguage applications.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Windows Mobile wp230std.dll
Linux wd230std.so
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment