PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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 asked 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> [, <Timeout>])
<Result>: Optional boolean
  • True if all applications that received a notification have processed it,
  • False if the timeout was exceeded.
<Identifier of shared memory zone>: Integer
Identifier of shared memory zone to use, defined by fMemOpen.
<Timeout>: Optional integer
Maximum timeout (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 ('1s' or '10ms' for example).
    New in version 23
    the direct indication of duration ('1s' or '10ms' for example).
    the direct indication of duration ('1s' or '10ms' for example).
There is no timeout 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.
Component : wd240std.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment