Frame disappears but still exists if NOT created by a UI event?

Another very weird question for you guys.

We have an application that lets 2 users chat together using Chat
frames.

But right now, if user 1 wants to send a message to user 2, user 2 must
ALREADY have opened his chat frame by double-clicking somewhere on the
UI (UI event). This way works well.

Else, when 1 sends a message to 2, the application will open the
chatFrame of 2 in reaction to a “messageReceived” event (Network event).
But by doing this, the frame is opened in the “onMessageReceived()”
function (not by a doubleClick from the user), but will actually
disappear at the end of the function (visible only in that function
scope)! The frame disappears but it is still there since its reference
exists in the app (and that we can apply any function on it), but it is
not visible and setting its visible() to true doesn’t work either

Is there anything I’m missing on this?

Thanks in advance! :slight_smile:
Michel Martin
Baccalauréat en informatique
Université de Sherbrooke
Courriel: <mailto:michel.martin@usherbrooke.ca>
michel.martin@usherbrooke.ca
Site Web: <http://www.michelmartin.ca> http://www.michelmartin.ca
"True love is born from understanding." The Buddha