<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[UPnP IUPnPDevice-&amp;gt; Zugriff auf Services schlägt fehl! [ERLEDIGT]]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich hoffe, dass ich hier richtig bin, wenn nicht bitte ich schonmal vorab um Entschuldigung! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Ich habe ein Problem mit der UPnP API von Microsofts Platform SDK. Ich verwende die aktuellste Version des SDK (Microsoft Platform SDK for Windows Server 2003 R2, March 2006 Edition).</p>
<p>Mein Problem ist, dass ich bei bestimmten Devices die Services nicht einlesen kann.<br />
Die Sampleanwendung GenericUCP aus dem Platform SDK Sampleordner weist diesen Fehler auch schon auf.</p>
<p>Es geht um folgenden Codeabschnitt:</p>
<pre><code>void CGenericUCPDlg::OnSelEndOkComboDevice() 
{
    // Current Device is changed
    TRACE(_T(&quot;SelendokDevice\n&quot;));

	HRESULT hr = S_OK;
	IUPnPDevice *pDevice=NULL;
	IUPnPServices* pServices = NULL;
	IUnknown *punkEnum = NULL;
	IEnumUnknown *pEU = NULL; 
	int iSelectedItem;
	long lIndex;
	m_StatusText.SetWindowText(_T(&quot;&quot;));
	m_EventText.SetWindowText(_T(&quot;&quot;));
	iSelectedItem = m_DeviceCombo.GetCurSel();
	if(iSelectedItem!=CB_ERR){
		pDevice=(IUPnPDevice *) m_DeviceCombo.GetItemDataPtr(iSelectedItem);
		pDevice-&gt;AddRef();
		ClearServiceCombo();
		hr = pDevice-&gt;get_Services(&amp;pServices);
		if(hr==S_OK){
			long lCount;
			hr = pServices-&gt;get_Count(&amp;lCount);
			if(SUCCEEDED(hr)){
				if(lCount!=0){
					// We have to get a IEnumUnknown pointer
					hr = pServices-&gt;get__NewEnum(&amp;punkEnum);
					if(SUCCEEDED(hr)){
						hr = punkEnum-&gt;QueryInterface(IID_IEnumUnknown, (VOID **) &amp;pEU);
						if(SUCCEEDED(hr)){
							for(lIndex = 0; lIndex&lt;lCount; lIndex++){
								IUnknown *punkService = NULL;
								IUPnPService *pService=NULL;
								hr = pEU-&gt;Next(1, &amp;punkService, NULL);
								if(SUCCEEDED(hr)){
</code></pre>
<p>Der IEnumUnknown-&gt;Next Aufruf (Zeile 34) gibt an dieser Stelle den Fehlercode &quot;Out of Memory zurück&quot;. Der Fehler tritt IMMER dann auf, wenn das Device mehr als 1 Service hat und tritt nur bei manchen Devices auf, die genau ein Service haben.</p>
<p>Ich habe nun ein eigenes Device erstellt, dass zwei Services enthält und bei diesem tritt der Fehler auch auf, mit dem gleichen Fehlercode. Das Device läuft lokal auf meinem Rechner, ebenso wie der ControlPoint. Die UPnP Libraries sind natürlich installiert.</p>
<p>Im Netz habe ich bis auf folgende Meldung</p>
<blockquote>
<p>Re: Error: Traversing the service list using Next method failed<br />
by &quot;Henry Rawas [MSFT]&quot; &lt;henryr@[EMAIL PROTECTED] &gt; Feb 13, 2006 at 09:10 AM</p>
<p>The most common cause for this is that an attempt to subscribe for events<br />
for the next service has failed.<br />
When the UPnP framework creates a service object, it will subscribe for<br />
events if eventing is suppoted by the service. If this fails, the creation</p>
<p>of the service object fails.</p>
<p>You can confirm this by getting a network traffic capture using netmon or<br />
ethereal.</p>
<p>Henry</p>
<p>--<br />
This posting is provided &quot;AS IS&quot; with no warranties, and confers no<br />
rights.<br />
&quot;Rolandas R.&quot; &lt;rolandas_r@[EMAIL PROTECTED]<br />
&gt; wrote in message<br />
news:uwQK1WCMGHA.1472@[EMAIL PROTECTED]<br />
&gt; Hi,</p>
<blockquote></blockquote>
<p>&gt; I am using the C++ sample code from PSDK.</p>
<blockquote></blockquote>
<p>&gt; Could someone please explain what is the reason of this error. I usually</p>
<p>&gt; get it for the software UPnP device (ICS under Windows XP), when the<br />
&gt; hardware UPnP device (a router) is present, or in Windows ME with both<br />
&gt; hardware and software devices?</p>
<blockquote></blockquote>
<p>&gt; Thanks.</p>
</blockquote>
<p>nichts gefunden, und diese sagt mir ehrlich gesagt auch nicht viel. Ich freue mich über jeden Hinweis, da ich wirklich nicht mehr weiter weiß.</p>
<p>Vielen Dank im voraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/188328/upnp-iupnpdevice-gt-zugriff-auf-services-schlägt-fehl-erledigt</link><generator>RSS for Node</generator><lastBuildDate>Fri, 03 Jul 2026 16:34:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/188328.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 30 Jul 2007 12:31:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UPnP IUPnPDevice-&amp;gt; Zugriff auf Services schlägt fehl! [ERLEDIGT] on Thu, 02 Aug 2007 12:51:38 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich hoffe, dass ich hier richtig bin, wenn nicht bitte ich schonmal vorab um Entschuldigung! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Ich habe ein Problem mit der UPnP API von Microsofts Platform SDK. Ich verwende die aktuellste Version des SDK (Microsoft Platform SDK for Windows Server 2003 R2, March 2006 Edition).</p>
<p>Mein Problem ist, dass ich bei bestimmten Devices die Services nicht einlesen kann.<br />
Die Sampleanwendung GenericUCP aus dem Platform SDK Sampleordner weist diesen Fehler auch schon auf.</p>
<p>Es geht um folgenden Codeabschnitt:</p>
<pre><code>void CGenericUCPDlg::OnSelEndOkComboDevice() 
{
    // Current Device is changed
    TRACE(_T(&quot;SelendokDevice\n&quot;));

	HRESULT hr = S_OK;
	IUPnPDevice *pDevice=NULL;
	IUPnPServices* pServices = NULL;
	IUnknown *punkEnum = NULL;
	IEnumUnknown *pEU = NULL; 
	int iSelectedItem;
	long lIndex;
	m_StatusText.SetWindowText(_T(&quot;&quot;));
	m_EventText.SetWindowText(_T(&quot;&quot;));
	iSelectedItem = m_DeviceCombo.GetCurSel();
	if(iSelectedItem!=CB_ERR){
		pDevice=(IUPnPDevice *) m_DeviceCombo.GetItemDataPtr(iSelectedItem);
		pDevice-&gt;AddRef();
		ClearServiceCombo();
		hr = pDevice-&gt;get_Services(&amp;pServices);
		if(hr==S_OK){
			long lCount;
			hr = pServices-&gt;get_Count(&amp;lCount);
			if(SUCCEEDED(hr)){
				if(lCount!=0){
					// We have to get a IEnumUnknown pointer
					hr = pServices-&gt;get__NewEnum(&amp;punkEnum);
					if(SUCCEEDED(hr)){
						hr = punkEnum-&gt;QueryInterface(IID_IEnumUnknown, (VOID **) &amp;pEU);
						if(SUCCEEDED(hr)){
							for(lIndex = 0; lIndex&lt;lCount; lIndex++){
								IUnknown *punkService = NULL;
								IUPnPService *pService=NULL;
								hr = pEU-&gt;Next(1, &amp;punkService, NULL);
								if(SUCCEEDED(hr)){
</code></pre>
<p>Der IEnumUnknown-&gt;Next Aufruf (Zeile 34) gibt an dieser Stelle den Fehlercode &quot;Out of Memory zurück&quot;. Der Fehler tritt IMMER dann auf, wenn das Device mehr als 1 Service hat und tritt nur bei manchen Devices auf, die genau ein Service haben.</p>
<p>Ich habe nun ein eigenes Device erstellt, dass zwei Services enthält und bei diesem tritt der Fehler auch auf, mit dem gleichen Fehlercode. Das Device läuft lokal auf meinem Rechner, ebenso wie der ControlPoint. Die UPnP Libraries sind natürlich installiert.</p>
<p>Im Netz habe ich bis auf folgende Meldung</p>
<blockquote>
<p>Re: Error: Traversing the service list using Next method failed<br />
by &quot;Henry Rawas [MSFT]&quot; &lt;henryr@[EMAIL PROTECTED] &gt; Feb 13, 2006 at 09:10 AM</p>
<p>The most common cause for this is that an attempt to subscribe for events<br />
for the next service has failed.<br />
When the UPnP framework creates a service object, it will subscribe for<br />
events if eventing is suppoted by the service. If this fails, the creation</p>
<p>of the service object fails.</p>
<p>You can confirm this by getting a network traffic capture using netmon or<br />
ethereal.</p>
<p>Henry</p>
<p>--<br />
This posting is provided &quot;AS IS&quot; with no warranties, and confers no<br />
rights.<br />
&quot;Rolandas R.&quot; &lt;rolandas_r@[EMAIL PROTECTED]<br />
&gt; wrote in message<br />
news:uwQK1WCMGHA.1472@[EMAIL PROTECTED]<br />
&gt; Hi,</p>
<blockquote></blockquote>
<p>&gt; I am using the C++ sample code from PSDK.</p>
<blockquote></blockquote>
<p>&gt; Could someone please explain what is the reason of this error. I usually</p>
<p>&gt; get it for the software UPnP device (ICS under Windows XP), when the<br />
&gt; hardware UPnP device (a router) is present, or in Windows ME with both<br />
&gt; hardware and software devices?</p>
<blockquote></blockquote>
<p>&gt; Thanks.</p>
</blockquote>
<p>nichts gefunden, und diese sagt mir ehrlich gesagt auch nicht viel. Ich freue mich über jeden Hinweis, da ich wirklich nicht mehr weiter weiß.</p>
<p>Vielen Dank im voraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1334904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1334904</guid><dc:creator><![CDATA[Worrix]]></dc:creator><pubDate>Thu, 02 Aug 2007 12:51:38 GMT</pubDate></item><item><title><![CDATA[Reply to UPnP IUPnPDevice-&amp;gt; Zugriff auf Services schlägt fehl! [ERLEDIGT] on Wed, 01 Aug 2007 07:34:11 GMT]]></title><description><![CDATA[<p>Gibts wirklich keinen, der da Bescheid weiß, oder mich wenigstens an eine Adresse verweisen kann, von wo man weitere Infos erhalten kann? Die Microsoft MSDN Foren schweigen sich zu dem Thema leider auch aus. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336266</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336266</guid><dc:creator><![CDATA[Worrix]]></dc:creator><pubDate>Wed, 01 Aug 2007 07:34:11 GMT</pubDate></item><item><title><![CDATA[Reply to UPnP IUPnPDevice-&amp;gt; Zugriff auf Services schlägt fehl! [ERLEDIGT] on Wed, 01 Aug 2007 09:48:47 GMT]]></title><description><![CDATA[<p>Ich würde mal in der Newsgroup microsoft.public.upnp fragen.</p>
<p><a href="http://groups.google.de/group/microsoft.public.upnp/topics?lnk=sg&amp;hl=de" rel="nofollow">http://groups.google.de/group/microsoft.public.upnp/topics?lnk=sg&amp;hl=de</a></p>
<blockquote>
<p>Ich verwende die aktuellste Version des SDK (Microsoft Platform SDK for Windows Server 2003 R2, March 2006 Edition).</p>
</blockquote>
<p>Ist nicht das neuste SDK. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336369</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336369</guid><dc:creator><![CDATA[.........]]></dc:creator><pubDate>Wed, 01 Aug 2007 09:48:47 GMT</pubDate></item><item><title><![CDATA[Reply to UPnP IUPnPDevice-&amp;gt; Zugriff auf Services schlägt fehl! [ERLEDIGT] on Wed, 01 Aug 2007 12:23:41 GMT]]></title><description><![CDATA[<p>Vielen Dank, habs nun auch mal in der Newsgroup probiert.</p>
<p>Was ist denn zur Zeit das neueste Platform SDK von Windows?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336493</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336493</guid><dc:creator><![CDATA[Worrix]]></dc:creator><pubDate>Wed, 01 Aug 2007 12:23:41 GMT</pubDate></item><item><title><![CDATA[Reply to UPnP IUPnPDevice-&amp;gt; Zugriff auf Services schlägt fehl! [ERLEDIGT] on Wed, 01 Aug 2007 13:51:53 GMT]]></title><description><![CDATA[<p>Worrix schrieb:</p>
<blockquote>
<p>Was ist denn zur Zeit das neueste Platform SDK von Windows?</p>
</blockquote>
<p>Platform SDK wurde umbenant in Windows SDK und das neuste ist laut <a href="http://blogs.msdn.com/windowssdk/" rel="nofollow">http://blogs.msdn.com/windowssdk/</a> :</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=74DD6E2D-89C6-4E1E-AF00-FC7D70F15439&amp;displaylang=en" rel="nofollow">Windows SDK for Windows Server 2008</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336583</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336583</guid><dc:creator><![CDATA[MR]]></dc:creator><pubDate>Wed, 01 Aug 2007 13:51:53 GMT</pubDate></item><item><title><![CDATA[Reply to UPnP IUPnPDevice-&amp;gt; Zugriff auf Services schlägt fehl! [ERLEDIGT] on Thu, 02 Aug 2007 12:54:11 GMT]]></title><description><![CDATA[<p>So, hab den Bug gefunden.</p>
<p>Mein Fehler war, dass ich die Methoden und Implementationen des zweiten, hinzugefügten Services in die gleiche Klasse gepackt hatte, wie die des ersten Services. Dadurch schlug schon die Initialisation-Methode fehl, und die Advise Methode wurde nicht aufgerufen.</p>
<p>Hab also die Methoden in zwei Klassen aufgetrennt und nu funktioniert es auch. Dummer Fehler.</p>
<p>MfG,<br />
Worrix.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1337288</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1337288</guid><dc:creator><![CDATA[Worrix]]></dc:creator><pubDate>Thu, 02 Aug 2007 12:54:11 GMT</pubDate></item></channel></rss>