<?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[Kamera initialiesierung: Kompilierung OK, dann BlueScreen]]></title><description><![CDATA[<p>ich möchte auf eine Kamera zugreifen und diese initialisieren.</p>
<p>Dazu habe ich in MS Visual Studio c++ ein Project erstellt, die Libary der des Kamera SDKs eingebund und den dazugehörigen header SisApi.h verlinkt.</p>
<p>Zur Initialisierung soll der Funktion laut SDK sis_open() ein int Wert für die BoardNummer und LPCSTR mit dem Config file übergeben werden.</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;Windows.h&gt;
#include &lt;direct.h&gt;

#include &quot;SisApi.h&quot;

#define _CRT_SECURE_NO_WARNINGS
using namespace std;

int main(){
	int nSIShandle = 0;
	SISERROR siserror;

	siserror = sis_Open(nSIShandle, &quot;C:\\SIS-SDK\\bin\\SisDemo.ccf&quot;);

	if (siserror == SIS_ERROR_CAMCONFIG)	cout &lt;&lt; &quot;SIS_ERROR_CAMCONFIG&quot; &lt;&lt; endl;
	else if (siserror == SIS_ERROR_WRONGHANDLE)	cout &lt;&lt; &quot;SIS_ERROR_WRONGHANDLE&quot; &lt;&lt; endl;
	else if (siserror == SIS_ERROR_WRONGPARAMETER)	cout &lt;&lt; &quot;SIS_ERROR_WRONGPARAMETER&quot; &lt;&lt; endl;
	else if (siserror == SIS_ERROR_NOTINIT)	cout &lt;&lt; &quot;SIS_ERROR_NOTINIT&quot; &lt;&lt; endl;

}
</code></pre>
<p>Ich bin in der Lage das Programm zu kompilieren, jedoch stürzt beim Ausführen der PC mit einem BlueScreen ab. Ist die die Art wie ich den Pfad an die sis_open übergebe falsch?</p>
<p>Danke für eure Hilfe<br />
Uli</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/308991/kamera-initialiesierung-kompilierung-ok-dann-bluescreen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 05 Aug 2026 13:02:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/308991.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Oct 2012 12:29:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Kamera initialiesierung: Kompilierung OK, dann BlueScreen on Thu, 11 Oct 2012 12:29:46 GMT]]></title><description><![CDATA[<p>ich möchte auf eine Kamera zugreifen und diese initialisieren.</p>
<p>Dazu habe ich in MS Visual Studio c++ ein Project erstellt, die Libary der des Kamera SDKs eingebund und den dazugehörigen header SisApi.h verlinkt.</p>
<p>Zur Initialisierung soll der Funktion laut SDK sis_open() ein int Wert für die BoardNummer und LPCSTR mit dem Config file übergeben werden.</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;Windows.h&gt;
#include &lt;direct.h&gt;

#include &quot;SisApi.h&quot;

#define _CRT_SECURE_NO_WARNINGS
using namespace std;

int main(){
	int nSIShandle = 0;
	SISERROR siserror;

	siserror = sis_Open(nSIShandle, &quot;C:\\SIS-SDK\\bin\\SisDemo.ccf&quot;);

	if (siserror == SIS_ERROR_CAMCONFIG)	cout &lt;&lt; &quot;SIS_ERROR_CAMCONFIG&quot; &lt;&lt; endl;
	else if (siserror == SIS_ERROR_WRONGHANDLE)	cout &lt;&lt; &quot;SIS_ERROR_WRONGHANDLE&quot; &lt;&lt; endl;
	else if (siserror == SIS_ERROR_WRONGPARAMETER)	cout &lt;&lt; &quot;SIS_ERROR_WRONGPARAMETER&quot; &lt;&lt; endl;
	else if (siserror == SIS_ERROR_NOTINIT)	cout &lt;&lt; &quot;SIS_ERROR_NOTINIT&quot; &lt;&lt; endl;

}
</code></pre>
<p>Ich bin in der Lage das Programm zu kompilieren, jedoch stürzt beim Ausführen der PC mit einem BlueScreen ab. Ist die die Art wie ich den Pfad an die sis_open übergebe falsch?</p>
<p>Danke für eure Hilfe<br />
Uli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2259187</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2259187</guid><dc:creator><![CDATA[oo-lee]]></dc:creator><pubDate>Thu, 11 Oct 2012 12:29:46 GMT</pubDate></item><item><title><![CDATA[Reply to Kamera initialiesierung: Kompilierung OK, dann BlueScreen on Thu, 11 Oct 2012 12:34:59 GMT]]></title><description><![CDATA[<p>oo-lee schrieb:</p>
<blockquote>
<p>Ist die die Art wie ich den Pfad an die sis_open übergebe falsch?</p>
</blockquote>
<p>Das kann dir nur die Doki der Kamera-API sagen. Hier wirst du mit ziemlicher Wahrscheinlichkeit niemanden finden, der sich damit auskennt. Mit Standard-C++ hat das auf jeden Fall recht wenig zu tun...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2259191</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2259191</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Thu, 11 Oct 2012 12:34:59 GMT</pubDate></item><item><title><![CDATA[Reply to Kamera initialiesierung: Kompilierung OK, dann BlueScreen on Thu, 11 Oct 2012 12:42:12 GMT]]></title><description><![CDATA[<p>prüfe nach, ob Dein Programm mit UNICODE-Einstellung generiert wird, falls ja, musst Du ein L vor den String stellen.<br />
Oder besser gleich ein</p>
<pre><code class="language-cpp">sis_Open(nSIShandle, TEXT(&quot;C:\\SIS-SDK\\bin\\SisDemo.ccf&quot;) );
</code></pre>
<p>wenn's dann nicht geht, so melde Dich nochmal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2259194</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2259194</guid><dc:creator><![CDATA[Werner_logoff]]></dc:creator><pubDate>Thu, 11 Oct 2012 12:42:12 GMT</pubDate></item><item><title><![CDATA[Reply to Kamera initialiesierung: Kompilierung OK, dann BlueScreen on Thu, 11 Oct 2012 12:49:00 GMT]]></title><description><![CDATA[<p>Werner_logoff schrieb:</p>
<blockquote>
<p>prüfe nach, ob Dein Programm mit UNICODE-Einstellung generiert wird, falls ja, musst Du ein L vor den String stellen.<br />
Oder besser gleich ein</p>
<pre><code class="language-cpp">sis_Open(nSIShandle, TEXT(&quot;C:\\SIS-SDK\\bin\\SisDemo.ccf&quot;) );
</code></pre>
<p>wenn's dann nicht geht, so melde Dich nochmal</p>
</blockquote>
<p>nein - passt nicht; ist ja ein LPCSTR und kein LPCTSTR. Die String-Übergabe ist korrekt, TEXT() wäre falsch.</p>
<p>Dann prüfe mal nach, ob der Treiber installiert ist und was mir sonst noch einfällt ist: das Handle <code>nSIShandle</code> wird mit 0 vorbelegt. Im Allgemeinen benötigt man einen Funktion, die ein Handle liefert. Aber <code>sis_Open</code> scheint das Handle nur als Input aufzunehmen. Ist das so?<br />
Ist in der Doku zu der SDK ein Beispiel beschrieben, wie man <code>sis_Open</code> aufruft?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2259198</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2259198</guid><dc:creator><![CDATA[Werner_logoff]]></dc:creator><pubDate>Thu, 11 Oct 2012 12:49:00 GMT</pubDate></item><item><title><![CDATA[Reply to Kamera initialiesierung: Kompilierung OK, dann BlueScreen on Thu, 11 Oct 2012 13:18:45 GMT]]></title><description><![CDATA[<p>Danke für die schnellen Antworten.</p>
<p>Es lag wirklich an der Treiber Installation auf dem Entwicklungsrechner.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2259221</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2259221</guid><dc:creator><![CDATA[oo-lee]]></dc:creator><pubDate>Thu, 11 Oct 2012 13:18:45 GMT</pubDate></item></channel></rss>