<?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[Service Anwendungen]]></title><description><![CDATA[<p>Hallo Forum,</p>
<p>Ich benutze BDS2006 und habe folgendes Problem:</p>
<p>Nachdem ich eine Service Awendung erfolgreich compiliert habe, habe ich festgestellt, dass sich die Anwendung nach ein paar Sekunden Beendet.</p>
<p>Weiß irgendjemand woran das liegen könnte? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Stefan</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/160216/service-anwendungen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 04:32:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/160216.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 Sep 2006 09:21:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Service Anwendungen on Sat, 23 Sep 2006 09:21:26 GMT]]></title><description><![CDATA[<p>Hallo Forum,</p>
<p>Ich benutze BDS2006 und habe folgendes Problem:</p>
<p>Nachdem ich eine Service Awendung erfolgreich compiliert habe, habe ich festgestellt, dass sich die Anwendung nach ein paar Sekunden Beendet.</p>
<p>Weiß irgendjemand woran das liegen könnte? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Stefan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1142973</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1142973</guid><dc:creator><![CDATA[Stefan.St]]></dc:creator><pubDate>Sat, 23 Sep 2006 09:21:26 GMT</pubDate></item><item><title><![CDATA[Reply to Service Anwendungen on Sat, 23 Sep 2006 09:23:30 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Da wir keine Hellseher sind, nein.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1142975</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1142975</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 23 Sep 2006 09:23:30 GMT</pubDate></item><item><title><![CDATA[Reply to Service Anwendungen on Sat, 23 Sep 2006 09:59:54 GMT]]></title><description><![CDATA[<p>Habe ich behauptet, dass ihr Hellseher seid? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1142985</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1142985</guid><dc:creator><![CDATA[Stefan.St]]></dc:creator><pubDate>Sat, 23 Sep 2006 09:59:54 GMT</pubDate></item><item><title><![CDATA[Reply to Service Anwendungen on Sat, 23 Sep 2006 10:02:20 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>hast Du irgendwo ein <strong>exit(0);</strong> stehen.</p>
<p>Grüsse</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1142986</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1142986</guid><dc:creator><![CDATA[dlonra]]></dc:creator><pubDate>Sat, 23 Sep 2006 10:02:20 GMT</pubDate></item><item><title><![CDATA[Reply to Service Anwendungen on Sat, 23 Sep 2006 10:08:19 GMT]]></title><description><![CDATA[<p>Nein, brauche ich das?</p>
<p>Ps: Ich hab vergessen zu sagen, dass ich im Thema Service Anwendungen ein Anfänger bin.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1142990</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1142990</guid><dc:creator><![CDATA[Stefan.St]]></dc:creator><pubDate>Sat, 23 Sep 2006 10:08:19 GMT</pubDate></item><item><title><![CDATA[Reply to Service Anwendungen on Sat, 23 Sep 2006 10:17:25 GMT]]></title><description><![CDATA[<p><a href="http://Stefan.St" rel="nofollow">Stefan.St</a> schrieb:</p>
<blockquote>
<p>Habe ich behauptet, dass ihr Hellseher seid?</p>
</blockquote>
<p>akari wollte zum Ausdruck bringen, dass anhand der spärlichen Informationen über dein Programm keine Aussage zu eventuellen Ursachen des Problems möglich ist. Und für Ratespiele ist das Forum nicht der richtige Platz.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1142992</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1142992</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Sat, 23 Sep 2006 10:17:25 GMT</pubDate></item><item><title><![CDATA[Reply to Service Anwendungen on Sat, 23 Sep 2006 10:18:39 GMT]]></title><description><![CDATA[<p><a href="http://Stefan.St" rel="nofollow">Stefan.St</a> schrieb:</p>
<blockquote>
<p>Habe ich behauptet, dass ihr Hellseher seid? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
</blockquote>
<p>Deine Frage ist nach dem Muster &quot;Ich habe ein rotes Auto und das hält nach ein paar Augenblicken Fahrt immer an. Warum?&quot;</p>
<p>Das heißt ohne relevanten Quellcode samt genauer (Fehler-) beschreibung können wir dazu nichts dazu sagen. Fakt ist das Services nicht einfach so beendet werden, sondern das liegt an deinem eigenem Code. Am besten gehst du selber mit dem Debugger durch und Logst den Verlauf deines Programmes mit.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1142994</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1142994</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 23 Sep 2006 10:18:39 GMT</pubDate></item><item><title><![CDATA[Reply to Service Anwendungen on Sat, 23 Sep 2006 10:57:10 GMT]]></title><description><![CDATA[<p>Zuersteinmal schuldigung, dass habe ich wohl falsch verstanden und danke für alle antworten die inzwischen dazugekommen sind.</p>
<p>Ich habe mal den Projektquellcode debbugt und festgestellt, dass er nach dem initialisieren der Form1 ganz normal auf <strong>Application-&gt;Run();</strong> trifft. Leider konnte ich dahinein nicht steppen, aber ich habe gesehen dass er automatisch nach ca. 12 Sekunden weitergesprungen ist (Ende des Programms).</p>
<p>Hier der Projektquellcode:</p>
<pre><code class="language-cpp">#include &lt;SysUtils.hpp&gt;
#include &lt;SvcMgr.hpp&gt;
#pragma hdrstop
#define Application Svcmgr::Application
USEFORM(&quot;Unit1.cpp&quot;, Service1); /* TService: File Type */
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
	try
	{
	if ((!Application-&gt;DelayInitialize) || (Application-&gt;Installing()))
		{
			Application-&gt;Initialize();
		}
		Application-&gt;CreateForm(__classid(TService1), &amp;Service1);
		Application-&gt;Run();
	}
	catch (Exception &amp;exception)
	{
		Sysutils::ShowException(&amp;exception, System::ExceptAddr());
	}
		catch(...)
		{
		try
		{
				throw Exception(&quot;&quot;);
		}
		catch(Exception &amp;exception)
		{
		Sysutils::ShowException(&amp;exception, System::ExceptAddr());
		}
		}
	return 0;
}
</code></pre>
<p>Stefan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143011</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143011</guid><dc:creator><![CDATA[Stefan.St]]></dc:creator><pubDate>Sat, 23 Sep 2006 10:57:10 GMT</pubDate></item><item><title><![CDATA[Reply to Service Anwendungen on Sat, 23 Sep 2006 11:29:56 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>schön, das ist die von der VCL generierte Codebasis.<br />
Die ist bei jedem Service-Projekt gleich und damit nicht Urheber des Problems.<br />
Sondern das relevante spielt sich in <em>-&gt;Run()</em> ab, wenn das Service-Form angezeigt wird. Also entweder debuggst du gleich im Quellcode vom Service1-Form (Breakpoints)oder du postest den Code hierein.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143018</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143018</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 23 Sep 2006 11:29:56 GMT</pubDate></item><item><title><![CDATA[Reply to Service Anwendungen on Sat, 23 Sep 2006 11:35:35 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich bin jetzt mal Service1 durchgegangen, aber ich hab nix gefunden.<br />
Es sieht so aus, als würde der Compiler irgendwie eine Art timer einbauen.</p>
<p>Dieser Code wurde allerdings auch automatisch erzeugt und ich konnte nichts ungewöhnliches feststellen:</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------
#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;

TService1 *Service1;
//---------------------------------------------------------------------------
__fastcall TService1::TService1(TComponent* Owner)
	: TService(Owner)
{
}

TServiceController __fastcall TService1::GetServiceController(void)
{
	return (TServiceController) ServiceController;
}

void __stdcall ServiceController(unsigned CtrlCode)
{
	Service1-&gt;Controller(CtrlCode);
}
//---------------------------------------------------------------------------

void __fastcall TService1::TcpClient1Receive(TObject *Sender, PChar Buf,
      int &amp;DataLen)
{
MessageBox(0, &quot;Empfangen&quot;, &quot;Empfangen&quot;, MB_OK);	
}
//---------------------------------------------------------------------------

void __fastcall TService1::est1Click(TObject *Sender)
{
ShowMessage(&quot;Dies ist eine Testmessage&quot;);	
}
//---------------------------------------------------------------------------
</code></pre>
<p>Zur Info, ich hab auf der Form 3 Componenten:<br />
1. TrayIcon<br />
2. PopupMenü<br />
3. TcpClient1</p>
<p>Ich hab außerdem ein Neues Projekt gestartet und da tritt es wieder auf, vondaher denke es Könnte sogar von Borland kommen.<br />
Stefan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143029</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143029</guid><dc:creator><![CDATA[Stefan.St]]></dc:creator><pubDate>Sat, 23 Sep 2006 11:35:35 GMT</pubDate></item><item><title><![CDATA[Reply to Service Anwendungen on Sat, 23 Sep 2006 20:24:27 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>das ist bei einer Service-Anwendung immer so.<br />
Sie kann in der Entwicklungsumgebung nicht gestartet werden.<br />
Die Anwendung muss nun mit dem Komando &quot;Anwendung.exe /install&quot; als Dienst<br />
registriert werden und kann danach in der Systemsteuerung/Verwaltung/Dienste<br />
gestartet und gesteuert werden.</p>
<p>Gruss jersey</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143241</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143241</guid><dc:creator><![CDATA[jersey]]></dc:creator><pubDate>Sat, 23 Sep 2006 20:24:27 GMT</pubDate></item><item><title><![CDATA[Reply to Service Anwendungen on Sat, 23 Sep 2006 22:47:45 GMT]]></title><description><![CDATA[<p>Vielen Dank ersteinmal für alle Antworten, das Kommando funktioniert super! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Stefan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1143263</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1143263</guid><dc:creator><![CDATA[Stefan.St]]></dc:creator><pubDate>Sat, 23 Sep 2006 22:47:45 GMT</pubDate></item></channel></rss>