Cant you allocate variables specific memory adresses? That way your second app could just edit the adress from a pointer?