Figure 2: Declaration and initialization of shared memory variables, from Malloc.cpp

// Variables shared within the EMBSQL.DLL
#pragma data_seg("shared")
SCCollection* tables = NULL;            
SCTable *sharedTable = NULL;            
char mapFileName[256] = {""};           
char *sharedMemoryFile = NULL;          
char *memoryLimitF = NULL;              
char *curPtrF = NULL;                   
int memCounter = 0;             
#pragma data_seg()