<?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[thread cpu]]></title><description><![CDATA[<p>hallo liebe gemeinde,</p>
<p>auch auf die gefahr hin arg belächelt zu werden muss ich fragen, weil es für mich momentan ein massives problem darstellt.<br />
Woher kommt es, dass, wenn ich mein projekt kompiliere, ich keine fehlermeldung bekomme, aber auch nicht meine exe datei, sondern das CPU-Tab aufgeht mit den threads drin und immer eine bestimmete &quot;jmp&quot; anweisung angezeigt ist.<br />
Bisher habe ich es so handhaben können, dass ich dann ein zweites mal kompiliert habe und dann meist meine exe datei erstellt wurde. nun ist es so, dass cih immer in den cpu-tab hineinlaufe.</p>
<p>Desweiteren möchte ich gerne wissen, wie ich innerhalb eines Forms auf Daten eines anderen Forms im Pojekt zugreifen kann, also um beispielsweise auf einem sich öffnenden Eigenschaften-Fenster aus dem Hauptprogramm Werte von Komponenten heraus zu ziehen und in EditFelder zu setzen.<br />
EDIT: OK in der FAQ habe ich grade gelesen, dass ich aus dem Hauptprogramm heraus in der anderen Form Dinge setzen kann, also bsp im Mein_cpp sowas schreibe ,wie:</p>
<pre><code>Form2-&gt;Label1-&gt;Caption = &quot;aus dem hauptprogramm&quot;;
</code></pre>
<p>Kann ich das auch andersherum..?</p>
<p>Vielen dank für eure hilfe.</p>
<p>grüße<br />
göck</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/191567/thread-cpu</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 18:26:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/191567.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Sep 2007 12:47:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to thread cpu on Tue, 04 Sep 2007 13:03:44 GMT]]></title><description><![CDATA[<p>hallo liebe gemeinde,</p>
<p>auch auf die gefahr hin arg belächelt zu werden muss ich fragen, weil es für mich momentan ein massives problem darstellt.<br />
Woher kommt es, dass, wenn ich mein projekt kompiliere, ich keine fehlermeldung bekomme, aber auch nicht meine exe datei, sondern das CPU-Tab aufgeht mit den threads drin und immer eine bestimmete &quot;jmp&quot; anweisung angezeigt ist.<br />
Bisher habe ich es so handhaben können, dass ich dann ein zweites mal kompiliert habe und dann meist meine exe datei erstellt wurde. nun ist es so, dass cih immer in den cpu-tab hineinlaufe.</p>
<p>Desweiteren möchte ich gerne wissen, wie ich innerhalb eines Forms auf Daten eines anderen Forms im Pojekt zugreifen kann, also um beispielsweise auf einem sich öffnenden Eigenschaften-Fenster aus dem Hauptprogramm Werte von Komponenten heraus zu ziehen und in EditFelder zu setzen.<br />
EDIT: OK in der FAQ habe ich grade gelesen, dass ich aus dem Hauptprogramm heraus in der anderen Form Dinge setzen kann, also bsp im Mein_cpp sowas schreibe ,wie:</p>
<pre><code>Form2-&gt;Label1-&gt;Caption = &quot;aus dem hauptprogramm&quot;;
</code></pre>
<p>Kann ich das auch andersherum..?</p>
<p>Vielen dank für eure hilfe.</p>
<p>grüße<br />
göck</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1358754</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1358754</guid><dc:creator><![CDATA[goeck]]></dc:creator><pubDate>Tue, 04 Sep 2007 13:03:44 GMT</pubDate></item><item><title><![CDATA[Reply to thread cpu on Tue, 04 Sep 2007 13:08:50 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>goeck schrieb:</p>
<blockquote>
<p>Woher kommt es, dass, wenn ich mein projekt kompiliere, ich keine fehlermeldung bekomme, aber auch nicht meine exe datei, sondern das CPU-Tab aufgeht mit den threads drin und immer eine bestimmete &quot;jmp&quot; anweisung angezeigt ist.<br />
Bisher habe ich es so handhaben können, dass ich dann ein zweites mal kompiliert habe und dann meist meine exe datei erstellt wurde. nun ist es so, dass cih immer in den cpu-tab hineinlaufe.</p>
</blockquote>
<p>Vermutlich weil du F8 anstelle von F9 drückst.</p>
<blockquote>
<p>OK in der FAQ habe ich grade gelesen, dass ich aus dem Hauptprogramm heraus in der anderen Form Dinge setzen kann, also bsp im Mein_cpp sowas schreibe ,wie: ...<br />
Kann ich das auch andersherum..?</p>
</blockquote>
<p>Ja das geht auch andersrum, wenn du es richtig machst.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1358769</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1358769</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 04 Sep 2007 13:08:50 GMT</pubDate></item><item><title><![CDATA[Reply to thread cpu on Tue, 04 Sep 2007 13:11:10 GMT]]></title><description><![CDATA[<blockquote>
<p>Vermutlich weil du F8 anstelle von F9 drückst.</p>
</blockquote>
<p>Sorry, ich muss dich enttäuschen...ob ich F9 drücke oder auf das Play-Icon...immer kommt der Thread und bleibt immer an einer JMP anweisung stehen....es ist zum heulen heute....</p>
<p>Danke für eure Hilfe.<br />
Göck</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1358771</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1358771</guid><dc:creator><![CDATA[goeck]]></dc:creator><pubDate>Tue, 04 Sep 2007 13:11:10 GMT</pubDate></item><item><title><![CDATA[Reply to thread cpu on Tue, 04 Sep 2007 13:31:51 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Dann kann ich mir nur noch vorstellen das dein Code noch während des Initialiseren der Anwendung eine Exception verursacht. Möglicherweise in einem Konstruktor?</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1358788</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1358788</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 04 Sep 2007 13:31:51 GMT</pubDate></item><item><title><![CDATA[Reply to thread cpu on Wed, 05 Sep 2007 08:07:23 GMT]]></title><description><![CDATA[<p>so, da ich immer noch nicht hinter die geheimnisse gekommen bin, werde ich euch mal meine bisherige arbeit zur durchsicht da lassen. Ich hoffe, jemand findet was greifbares...</p>
<p>Main CPP</p>
<pre><code>//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Com_Port_1.h&quot;
#include &quot;Com_Port_1_Einstellungen.h&quot;

//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma link &quot;VaClasses&quot;
#pragma link &quot;VaComm&quot;
#pragma link &quot;VaTerminal&quot;
#pragma link &quot;VaBuffer&quot;
#pragma link &quot;VaSystem&quot;
#pragma link &quot;VaControls&quot;
#pragma link &quot;VaDisplay&quot;
#pragma link &quot;cgauges&quot;
#pragma link &quot;cspin&quot;
#pragma link &quot;perfgrap&quot;
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
	Label3-&gt;Caption = &quot;&quot;;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::ComboBox1Change(TObject *Sender)
{
	VaComm1-&gt;DeviceName = &quot;COM&quot;+IntToStr(ComboBox1-&gt;ItemIndex+1);
	VaComm1-&gt;PortNum = ComboBox1-&gt;ItemIndex+1;
	VaComm1-&gt;Open();
	if(VaComm1-&gt;Active())
	{
		Button1-&gt;Enabled = true;
		Button2-&gt;Enabled = true;
		Memo1-&gt;Lines-&gt;Add(&quot;COM&quot;+IntToStr(ComboBox1-&gt;ItemIndex+1)+&quot; geöffnet&quot;);
	}
	else
		Memo1-&gt;Lines-&gt;Add(&quot;COM &quot;+IntToStr(ComboBox1-&gt;ItemIndex+1)+&quot;ist belegt oder existiert nicht.&quot;);

}
//---------------------------------------------------------------------------

void __fastcall TForm1::Close(TObject *Sender, TCloseAction &amp;Action)
{
	VaComm1-&gt;Close();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button1Click(TObject *Sender)
{
	if (Button1-&gt;Caption == &quot;Start&quot;)
	{
		Button1-&gt;Caption=&quot;Stop&quot;;
		// Puffer der Schnittstelle wird geleert
		VaComm1-&gt;Close();
		VaComm1-&gt;Open();
	}
	else
	{
		Button1-&gt;Caption=&quot;Start&quot;;
		StatusBar1-&gt;SimpleText = &quot;Lesen gestoppt&quot;;
	}
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button2Click(TObject *Sender)
{
	if (Button2-&gt;Caption == &quot;Start&quot;)
	{
		Button2-&gt;Caption=&quot;Stop&quot;;
		// Wenn Schreiben erfolgreich war, gebe Feedback, wenn nicht, dann neg. Feedback in StatusBar
		if (VaComm1-&gt;WriteText(&quot;12&quot;))
			StatusBar1-&gt;SimpleText = &quot;Schreiben erfolgreich&quot;;
		else
			StatusBar1-&gt;SimpleText = &quot;Schreiben gescheitert&quot;;
	}
	else
	{
		Button2-&gt;Caption=&quot;Start&quot;;
		StatusBar1-&gt;SimpleText = &quot;Schreiben gestoppt&quot;;
	}
}
//---------------------------------------------------------------------------

void __fastcall TForm1::ComboBox1CloseCom(TObject *Sender)
{
	VaComm1-&gt;Close();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Clear1Click(TObject *Sender)
{
	Memo1-&gt;Clear();
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Speichernunter1Click(TObject *Sender)
{
	SaveDialog1-&gt;DefaultExt=&quot;txt&quot;;
	SaveDialog1-&gt;Filter = &quot;Text Dateien (*.txt)|*.txt&quot;;
	SaveDialog1-&gt;Execute();
	Memo1-&gt;Lines-&gt;SaveToFile(SaveDialog1-&gt;FileName);
}
//---------------------------------------------------------------------------

void __fastcall TForm1::SendCommand(TObject *Sender, char &amp;Key)
{
// Wenn Enter gedrückt wurde, wird ein Sendevorgang ausgelöst
  switch (Key)
  {
  case VK_RETURN:
  {
	// Wenn Schreiben erfolgreich war, gebe Feedback, wenn nicht, dann neg. Feedback in StatusBar
	if (VaComm1-&gt;WriteText(Label3-&gt;Caption))
		StatusBar1-&gt;SimpleText = &quot;Schreiben erfolgreich&quot;;
	else
		StatusBar1-&gt;SimpleText = &quot;Schreiben gescheitert&quot;;
	Key = 0;
	Memo1-&gt;Lines-&gt;Append(&quot;&quot;);
	Label3-&gt;Caption = &quot;&quot;;
  }
  case VK_BACK:
	 Label3-&gt;Caption = Label3-&gt;Caption + &quot;BACK&quot;;
  default:
  {
	 Label3-&gt;Caption = Label3-&gt;Caption + Key;
  }
  }
}
//---------------------------------------------------------------------------

void __fastcall TForm1::ReceiveMessage(TObject *Sender, const AnsiString Data)
{
	if(Button1-&gt;Caption == &quot;Stop&quot;)
	{
		//Ab jetzt wird aus dem Puffer gelesen
		AnsiString inTemp = Data;
		if (inTemp == NULL)
			StatusBar1-&gt;SimpleText = &quot;Lesen gescheitert&quot;;
		else
		{
			// Schreibe alles vom Port kommende auf Memo1
			Memo1-&gt;Lines-&gt;Add(inTemp);

			int inTempInt = StrToIntDef(inTemp, 333);
			if (inTempInt == 333)
			{
				StatusBar1-&gt;SimpleText = &quot;Lesen nicht erfolgreich (StrToInt Error)&quot;;
			}
			else
			{
				// Beshreibe Graph auf zweitem Tab
				PerformanceGraph1-&gt;DataPoint(clMenuText, inTempInt);
				PerformanceGraph1-&gt;Update(); 
				CGauge1-&gt;Progress = inTempInt/10.24;
				StatusBar1-&gt;SimpleText = &quot;Lesen erfolgreich&quot;;
			}
		}
	}
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Einstellungen1Click(TObject *Sender)
{
	Form2-&gt;Edit1-&gt;Text = VaCapture1-&gt;DataStart;
	Form2-&gt;Edit2-&gt;Text = VaCapture1-&gt;DataFinish;

	Form2-&gt;ShowModal();
}
//---------------------------------------------------------------------------
</code></pre>
<p>und die der entsprechende Header</p>
<pre><code>//---------------------------------------------------------------------------

#ifndef Com_Port_1H
#define Com_Port_1H
//---------------------------------------------------------------------------
#include &lt;Classes.hpp&gt;
#include &lt;Controls.hpp&gt;
#include &lt;StdCtrls.hpp&gt;
#include &lt;Forms.hpp&gt;
#include &lt;ComCtrls.hpp&gt;
#include &lt;Menus.hpp&gt;
#include &lt;XPMan.hpp&gt;
#include &lt;ExtCtrls.hpp&gt;
#include &quot;VaClasses.hpp&quot;
#include &quot;VaComm.hpp&quot;
#include &quot;VaTerminal.hpp&quot;
#include &quot;VaBuffer.hpp&quot;
#include &quot;VaSystem.hpp&quot;
#include &quot;VaControls.hpp&quot;
#include &quot;VaDisplay.hpp&quot;
#include &lt;Dialogs.hpp&gt;
#include &lt;ExtDlgs.hpp&gt;
#include &quot;cgauges.h&quot;
#include &quot;cspin.h&quot;
#include &quot;perfgrap.h&quot;
#include &lt;TabNotBk.hpp&gt;
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// Von der IDE verwaltete Komponenten
	TStatusBar *StatusBar1;
	TXPManifest *XPManifest1;
	TLabel *Label1;
	TLabel *Label2;
	TComboBox *ComboBox1;
	TButton *Button1;
	TButton *Button2;
	TVaComm *VaComm1;
	TGroupBox *GroupBox1;
	TGroupBox *GroupBox2;
	TTimer *Timer1;
	TMainMenu *MainMenu1;
	TMenuItem *Datei1;
	TMenuItem *Speichernunter1;
	TMenuItem *panel1;
	TMenuItem *Clear1;
	TSaveDialog *SaveDialog1;
	TLabel *Label3;
	TTabbedNotebook *TabbedNotebook1;
	TMemo *Memo1;
	TPerformanceGraph *PerformanceGraph1;
	TCGauge *CGauge1;
	TVaCapture *VaCapture1;
	TMenuItem *Einstellungen1;
	void __fastcall ComboBox1Change(TObject *Sender);
	void __fastcall Close(TObject *Sender, TCloseAction &amp;Action);
	void __fastcall Button1Click(TObject *Sender);
	void __fastcall Button2Click(TObject *Sender);
	void __fastcall ComboBox1CloseCom(TObject *Sender);
	void __fastcall Clear1Click(TObject *Sender);
	void __fastcall Speichernunter1Click(TObject *Sender);
	void __fastcall SendCommand(TObject *Sender, char &amp;Key);
	void __fastcall ReceiveMessage(TObject *Sender, const AnsiString Data);
	void __fastcall Einstellungen1Click(TObject *Sender);
private:	// Benutzer-Deklarationen
public:		// Benutzer-Deklarationen
	__fastcall TForm1(TComponent* Owner);

};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
</code></pre>
<p>und hier das ganze für die eingebundene Form</p>
<pre><code>//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Com_Port_1_Einstellungen.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm2 *Form2;
//---------------------------------------------------------------------------
__fastcall TForm2::TForm2(TComponent* Owner)
	: TForm(Owner)
{
	TabbedNotebook1-&gt;Width = Form2-&gt;ClientWidth;
	TabbedNotebook1-&gt;Height = Form2-&gt;ClientHeight;
}
//---------------------------------------------------------------------------
</code></pre>
<p>header</p>
<pre><code>//---------------------------------------------------------------------------

#ifndef Com_Port_1_EinstellungenH
#define Com_Port_1_EinstellungenH
//---------------------------------------------------------------------------
#include &lt;Classes.hpp&gt;
#include &lt;Controls.hpp&gt;
#include &lt;StdCtrls.hpp&gt;
#include &lt;Forms.hpp&gt;
#include &lt;ComCtrls.hpp&gt;
#include &lt;TabNotBk.hpp&gt;
//---------------------------------------------------------------------------
class TForm2 : public TForm
{
__published:	// Von der IDE verwaltete Komponenten
	TTabbedNotebook *TabbedNotebook1;
	TLabel *Label1;
	TEdit *Edit1;
	TLabel *Label2;
	TEdit *Edit2;
private:	// Benutzer-Deklarationen
public:		// Benutzer-Deklarationen
	__fastcall TForm2(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm2 *Form2;
//---------------------------------------------------------------------------
#endif
</code></pre>
<p>Vielen Dank!!!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1359187</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1359187</guid><dc:creator><![CDATA[goeck]]></dc:creator><pubDate>Wed, 05 Sep 2007 08:07:23 GMT</pubDate></item><item><title><![CDATA[Reply to thread cpu on Wed, 05 Sep 2007 09:36:17 GMT]]></title><description><![CDATA[<p>Mir ist aufgefallen, dass ich immer bei Aufruf der Datei cc3270mt.dll stehen bleibe. Im debug fenster in der unteren leiste stehen in blauer schrift die aufgerufenen dateien, die laufen beim kompilieren durch und der thread fehler taucht immer erst bei aufruf dieser datei auf. habe auch schon versucht sie zu ersetzen durch einen neue, aber gleiches verhalten.</p>
<p>help!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1359258</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1359258</guid><dc:creator><![CDATA[goeck]]></dc:creator><pubDate>Wed, 05 Sep 2007 09:36:17 GMT</pubDate></item><item><title><![CDATA[Reply to thread cpu on Wed, 05 Sep 2007 10:48:09 GMT]]></title><description><![CDATA[<p>Kann es sein, dass dort ein Breakpoint gestzt ist? Geht das Fenster auch auf, wenn du im Release-Modus compilierst?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1359309</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1359309</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 05 Sep 2007 10:48:09 GMT</pubDate></item><item><title><![CDATA[Reply to thread cpu on Wed, 05 Sep 2007 11:52:59 GMT]]></title><description><![CDATA[<p>Ich meine, da ist kein Haltepunkt. Ich habe euch mal ein Screenshot gemacht. Wenn ich mal so doof fragen darf..Release Mode heißt, statt F9 nehme ich Shift+Str+F9.</p>
<p><a href="http://www.sgoecker.de/pics/c++builder.JPG" rel="nofollow">www.sgoecker.de/pics/c++builder.JPG</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1359359</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1359359</guid><dc:creator><![CDATA[goeck]]></dc:creator><pubDate>Wed, 05 Sep 2007 11:52:59 GMT</pubDate></item></channel></rss>