ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Process functions / Shared memory area functions
  • Mechanism for automatic notification of modifications
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Waits for the end of process about the notifications of modification of a shared memory area. This process is performed by the other applications that use the memory area and that have asked to be notified.
Example
// Opens the shared memory area
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 area> [, <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 area>: Integer
Identifier of shared memory area 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,
  • the duration in a readable format (e.g., '1s' or '10ms').
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 as 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 to a shared memory area can ensure that its change has been processed by other applications that use the memory area.
Remark: The mechanism for automatic notification only operates between WLanguage applications.
Component: wd290std.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help