<?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[absturz]]></title><description><![CDATA[<p>Tach auch<br />
hab ein Programm für einen Watchdog welcher auf dem Mainboard intgriert ist geschriebe.<br />
Eigentich funktioniert das ganze auch.<br />
Aber nach ca. 30-35 Durchläufe in der Endlosschleife beendet Windows (oder was auch immer) mein Programm.<br />
So einfach peng. Weg.<br />
Und ich habe mal echt keine Ahnung warum.<br />
Vielleicht fällt euch ja was auf.</p>
<pre><code>#include&lt;iostream&gt;
#include&lt;windows.h&gt;
#include&quot;Itlcd.h&quot;

	typedef DWORD (*OpenItlcd)(void);
//	typedef DWORD (*CloseItlcd)(void);
	typedef DWORD (*EnableWD)(void);
//	typedef DWORD (*DisableWD)(void);
	typedef DWORD (*SetWDTimer)( UCHAR  TIME );
	typedef DWORD (*SetWDTimerInterval)( UCHAR VAL );

int main( void )
{
		int i = 1;		

		OpenItlcd			functionOpen;
//		CloseItlcd			functionClose;
		EnableWD			functionEnableWD;
//		DisableWD			functionDisableWD;
		SetWDTimer			functionSetWDTimer;
		SetWDTimerInterval	functionSetWDTimerInterval;

        DWORD result1; //open
//		DWORD result2; //disable
//		DWORD result3; //setTimer
		DWORD result4; //setInterval
		DWORD result5; //enable

		// DLL Datei laden
        HINSTANCE itlcdlib = LoadLibrary(&quot;itlcd.dll&quot;);

        if( itlcdlib ) 
		{
			// OPEN
				functionOpen = (OpenItlcd) GetProcAddress(itlcdlib, &quot;OpenItlcd&quot;);

				if ( functionOpen )
				{ result1 = functionOpen(); }

			// WD Timerintervall setzen
				functionSetWDTimerInterval = ( SetWDTimerInterval ) GetProcAddress( itlcdlib, &quot;SetWDTimerInterval&quot; );

				if( functionSetWDTimerInterval )
				{ result4 = functionSetWDTimerInterval( sec ); }

			// WD Enable
				functionEnableWD = ( EnableWD ) GetProcAddress( itlcdlib, &quot;EnableWD&quot; );

				if( functionEnableWD )
				{ result5 = functionEnableWD(  ); }

				if( result5 == 1)
				{printf(&quot;watchdog = ON&quot;);}
				if( result5 == 0)
				{printf(&quot;watchdog = OFF&quot;);}

			// WD Timer setzen
				functionSetWDTimer = ( SetWDTimer ) GetProcAddress( itlcdlib, &quot;SetWDTimer&quot; );

				if( !functionSetWDTimer )
					return 0;
//Schleife:
			//	i = 0 ;

			//while( i&gt;=0 )
			for(;;)
			{				

				functionSetWDTimer((UCHAR)30 );

				Sleep(5000);

			}
		//	goto Schleife;

	}
	return 0;
}
</code></pre>
<p>Danke für eure Bemühungen.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/170156/absturz</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 09:07:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/170156.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Jan 2007 11:16:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to absturz on Fri, 12 Jan 2007 11:16:37 GMT]]></title><description><![CDATA[<p>Tach auch<br />
hab ein Programm für einen Watchdog welcher auf dem Mainboard intgriert ist geschriebe.<br />
Eigentich funktioniert das ganze auch.<br />
Aber nach ca. 30-35 Durchläufe in der Endlosschleife beendet Windows (oder was auch immer) mein Programm.<br />
So einfach peng. Weg.<br />
Und ich habe mal echt keine Ahnung warum.<br />
Vielleicht fällt euch ja was auf.</p>
<pre><code>#include&lt;iostream&gt;
#include&lt;windows.h&gt;
#include&quot;Itlcd.h&quot;

	typedef DWORD (*OpenItlcd)(void);
//	typedef DWORD (*CloseItlcd)(void);
	typedef DWORD (*EnableWD)(void);
//	typedef DWORD (*DisableWD)(void);
	typedef DWORD (*SetWDTimer)( UCHAR  TIME );
	typedef DWORD (*SetWDTimerInterval)( UCHAR VAL );

int main( void )
{
		int i = 1;		

		OpenItlcd			functionOpen;
//		CloseItlcd			functionClose;
		EnableWD			functionEnableWD;
//		DisableWD			functionDisableWD;
		SetWDTimer			functionSetWDTimer;
		SetWDTimerInterval	functionSetWDTimerInterval;

        DWORD result1; //open
//		DWORD result2; //disable
//		DWORD result3; //setTimer
		DWORD result4; //setInterval
		DWORD result5; //enable

		// DLL Datei laden
        HINSTANCE itlcdlib = LoadLibrary(&quot;itlcd.dll&quot;);

        if( itlcdlib ) 
		{
			// OPEN
				functionOpen = (OpenItlcd) GetProcAddress(itlcdlib, &quot;OpenItlcd&quot;);

				if ( functionOpen )
				{ result1 = functionOpen(); }

			// WD Timerintervall setzen
				functionSetWDTimerInterval = ( SetWDTimerInterval ) GetProcAddress( itlcdlib, &quot;SetWDTimerInterval&quot; );

				if( functionSetWDTimerInterval )
				{ result4 = functionSetWDTimerInterval( sec ); }

			// WD Enable
				functionEnableWD = ( EnableWD ) GetProcAddress( itlcdlib, &quot;EnableWD&quot; );

				if( functionEnableWD )
				{ result5 = functionEnableWD(  ); }

				if( result5 == 1)
				{printf(&quot;watchdog = ON&quot;);}
				if( result5 == 0)
				{printf(&quot;watchdog = OFF&quot;);}

			// WD Timer setzen
				functionSetWDTimer = ( SetWDTimer ) GetProcAddress( itlcdlib, &quot;SetWDTimer&quot; );

				if( !functionSetWDTimer )
					return 0;
//Schleife:
			//	i = 0 ;

			//while( i&gt;=0 )
			for(;;)
			{				

				functionSetWDTimer((UCHAR)30 );

				Sleep(5000);

			}
		//	goto Schleife;

	}
	return 0;
}
</code></pre>
<p>Danke für eure Bemühungen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1208605</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1208605</guid><dc:creator><![CDATA[noAhnung]]></dc:creator><pubDate>Fri, 12 Jan 2007 11:16:37 GMT</pubDate></item><item><title><![CDATA[Reply to absturz on Fri, 12 Jan 2007 12:44:44 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=403" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1208678</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1208678</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Fri, 12 Jan 2007 12:44:44 GMT</pubDate></item><item><title><![CDATA[Reply to absturz on Fri, 12 Jan 2007 18:52:28 GMT]]></title><description><![CDATA[<p>Dann wird vermutlich in &quot;functionSetWDTimer&quot; irgendwas schief laufen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1208973</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1208973</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Fri, 12 Jan 2007 18:52:28 GMT</pubDate></item></channel></rss>