Hi Jean-Francois,

Thanks for your reply and inputs. I really appreciate it. Here're things I
have implemented:

1. I am using "NM_INIT_BACKGROUND" when I initalize the conference manager.
I have also tried "NM_INIT_CONTROL" and they behave the same on this issue.
2. I create two ActiveX windows with "PreviewNoPause" and "RemoteNoPause"
types respectively when I start Netmeeting in my application.
3. When I close Netmeeting in my application, I destroy two ActiveX windows
first and  I do release all the COM interfaces/sinks as below:

HRESULT Conf::Uninitialize()
{
// Was in ~Conf () before
 m_pMgrNotify->Disconnect();
 m_pMgrNotify->Release();
 m_pMgrNotify = NULL;
 m_pCallNotify->Release();
 m_pCallNotify = NULL;
 m_pConfNotify->Release();
 m_pConfNotify = NULL;

 if (m_pINmCall)
 {
  m_pINmCall->Release();
  m_pINmCall = NULL;
 }

 if (m_pINmConf)
 {
  m_pINmConf->Release();
  m_pINmConf = NULL;
 }

 if (m_pINmMgr)
 {
  m_pINmMgr->Release();
  m_pINmMgr = NULL;
 }

 return S_OK;
}

Here're things I have found:

1. If I start Netmeeting in my application and close Netmeeting without
making any calls, I can see the little NM Icon in the system tool bar gone
right away when  m_pINmMgr->Release() is executed.

2. If I start Netmeeting in my application, make a call to someone, hang up
the call and close Netmeeting, the little NM Icon still stays there no
matter how long I wait after m_pINmMgr->Release() got executed.

This little NM icon is gone only after I destroy my main window which is the
parent window of those two NM ActiveX windows. If this is a FEATURE of NM3.0
SDK, we might have problem integrating other video apllications(i.e., video
mail, H.324 phone) with NM into one single application.

Other NM3.0 SDK question:
Does anyone know how to start/stop video when not in a call or conference?
As I know the pVidChannel->SetProperty(NM_VIDPROP_PAUSE, TRUE/FALSE) method
can only be used when you are in a conference and a video channel is added
to that active conference.

Best Regards,

Mike


----- Original Message -----
From: Rey Jean-Francois <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 29, 1999 12:37 AM
Subject: Re: [NetMeeting] Problem with NM3.0 SDK


>
> Hi,
>
> > The H.323 part is developed based on NM3.0 SDK's
> > AVphone3 sample code.
>
> What NM_INIT_* constant do you use when you initalize the conference
> manager ?
>
> > The problem I have now is when I finish
> > Netmeeting calls and try to switch to my H.324 call (in the same
> > application), the Netmeeting (Conf.exe) is still running in the
> > background no matter how I try to close it.
>
> Are you sure you have released all the COM interfaces/sinks ? If you
> don't, then conf.exe won't shutdown.
> Now, even if you do it all right, Nm3.0 may still hang around a little
> before shutting down, specially if you use the video ActiveX controls.
> There's a comment about this in the avphone sample when freeing the
> video controls. There may be another reason why conf.exe does not behave
> correctly : if you exit the thread from which you manage the sdk COM
> interface right after you release the conference manager objects, you
> may have problems. Just wait a little before closing down the calling
> thread.
>
> > If I cannot totally close
> > the Netmeeting before switching to H.324 calls, my H.324 will fail to
> > use the video source (camera) since it is still occupied by the
> > Netmeeting. Does anyone of you know any APIs or methods which can
> > force NM3.01 to shut down from the background? Thanks in advance!
>
> I think you must wait till it shuts down. It should not be a very long
> time to wait.
>
> I hope this helps,
>
> --
> Jean-Francois REY.
> -------------------
> ALCATEL R&D Adv. Projects.
> ZI de Kergonan 29601 Brest FRANCE.
> phone : +33 (0) 298143322 fax : +33 (0) 298143501
> -----------------------------------------------------------------------
> http://www.meetingbywire.com/Mailinglist.htm for unsubscribe information
> -----------------------------------------------------------------------
>

-----------------------------------------------------------------------
http://www.meetingbywire.com/Mailinglist.htm for unsubscribe information
-----------------------------------------------------------------------

Reply via email to