<?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[ofstream-Bug in BCB2k7?]]></title><description><![CDATA[<p>Hi!<br />
Vorab mal &quot;Code&quot;:</p>
<pre><code class="language-cpp">#include &lt;fstream&gt;
std::ofstream File(&quot;x.x&quot;);
//File &lt;&lt; &quot;Funzt's?&quot;;         
File.close();
</code></pre>
<p>Ja, mehr ist nicht!<br />
Jedes mal wenn ich das Programm starte, bleibt er bei folgender Zeile stehen:</p>
<pre><code class="language-cpp">if (fclose(_Myfile) != 0)
</code></pre>
<p>Anstelle von x.x hab ich z.B. u.a. color.ini stehen</p>
<p>Unter dem BCB6 funktionierte das immer <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /><br />
Keine Ahnung an was das liegt, könnte das vielleicht bitte einmal ein anderer BCB2k7-Besitzer ausprobieren, ob das bei ihm dasselbe ist?</p>
<p>Folgende Meldung erscheint:</p>
<pre><code>Falsches Datei-Stream (0x3289E484) wurde an die Funktion weitergegeben.
</code></pre>
<p>Aber wie gesagt, ich habe ja nicht nur x.x sondern auch andere &quot;Pfade&quot; ausprobiert.<br />
Hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/206246/ofstream-bug-in-bcb2k7</link><generator>RSS for Node</generator><lastBuildDate>Thu, 20 Aug 2026 01:26:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/206246.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Feb 2008 15:02:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ofstream-Bug in BCB2k7? on Fri, 22 Feb 2008 15:03:23 GMT]]></title><description><![CDATA[<p>Hi!<br />
Vorab mal &quot;Code&quot;:</p>
<pre><code class="language-cpp">#include &lt;fstream&gt;
std::ofstream File(&quot;x.x&quot;);
//File &lt;&lt; &quot;Funzt's?&quot;;         
File.close();
</code></pre>
<p>Ja, mehr ist nicht!<br />
Jedes mal wenn ich das Programm starte, bleibt er bei folgender Zeile stehen:</p>
<pre><code class="language-cpp">if (fclose(_Myfile) != 0)
</code></pre>
<p>Anstelle von x.x hab ich z.B. u.a. color.ini stehen</p>
<p>Unter dem BCB6 funktionierte das immer <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /><br />
Keine Ahnung an was das liegt, könnte das vielleicht bitte einmal ein anderer BCB2k7-Besitzer ausprobieren, ob das bei ihm dasselbe ist?</p>
<p>Folgende Meldung erscheint:</p>
<pre><code>Falsches Datei-Stream (0x3289E484) wurde an die Funktion weitergegeben.
</code></pre>
<p>Aber wie gesagt, ich habe ja nicht nur x.x sondern auch andere &quot;Pfade&quot; ausprobiert.<br />
Hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1461016</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1461016</guid><dc:creator><![CDATA[o*amp*oler]]></dc:creator><pubDate>Fri, 22 Feb 2008 15:03:23 GMT</pubDate></item><item><title><![CDATA[Reply to ofstream-Bug in BCB2k7? on Fri, 22 Feb 2008 15:17:13 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Funktioniert bei mir problemlos. Wo ist denn diese Zeile?</p>
<pre><code class="language-cpp">if (fclose(_Myfile) != 0)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1461034</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1461034</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 22 Feb 2008 15:17:13 GMT</pubDate></item><item><title><![CDATA[Reply to ofstream-Bug in BCB2k7? on Fri, 22 Feb 2008 15:26:53 GMT]]></title><description><![CDATA[<p>Eben wenn ich das Programm starte, dann die Prozedur aufrufe, in welcher der gesagte Text steht, kommt der BCB wieder in den Vordergrund (ohne Exception!) und öffnet die Datei fstream (.h) und zwar genau in der Zeile 180. Mich wundert nämlich auch, dass der BCB einfach den Fokus bekommt, ohne Exception ohne alles! EDIT: auch ohne CodeGuard kompiliert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1461039</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1461039</guid><dc:creator><![CDATA[o*amp*oler]]></dc:creator><pubDate>Fri, 22 Feb 2008 15:26:53 GMT</pubDate></item><item><title><![CDATA[Reply to ofstream-Bug in BCB2k7? on Fri, 22 Feb 2008 15:29:41 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Mach doch einmal ein Minimal-(Konsolen-)Programm mit nur diesen Programmzeilen. Ich bin mir sicher du wirst sehen das std::fstream fehlerfrei ist, und das der Fehler eher an undefiniertem Verhalten deines Codes liegt.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1461045</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1461045</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Fri, 22 Feb 2008 15:29:41 GMT</pubDate></item><item><title><![CDATA[Reply to ofstream-Bug in BCB2k7? on Fri, 22 Feb 2008 15:37:15 GMT]]></title><description><![CDATA[<p>Ja, das funktioniert, werde ich also mein Code nochmal anschauen!<br />
Aber kommt das öfters vor, dass der BCB ohne CodeGuard und ohne Exception in den Vordergrund kommt (und praktisch im Debug-Modus läuft (ohne von mir gesetztem Breakpoint))<br />
Also bei mir kam das zum 1. Mal vor, aber ich bin ja auch noch ein Newbie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1461052</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1461052</guid><dc:creator><![CDATA[o*amp*oler]]></dc:creator><pubDate>Fri, 22 Feb 2008 15:37:15 GMT</pubDate></item><item><title><![CDATA[Reply to ofstream-Bug in BCB2k7? on Fri, 22 Feb 2008 15:41:16 GMT]]></title><description><![CDATA[<p>Jetzt funktioniert's!!!<br />
Alles was ich geändert habe, war in den Projektobtionen unter Linker-&gt;Linken, habe ich &quot;Dynamische RTL&quot; deaktiviert<br />
Ansonsten nichts!</p>
<p>Trotzdem danke an Braunstein und Akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1461055</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1461055</guid><dc:creator><![CDATA[o*amp*oler]]></dc:creator><pubDate>Fri, 22 Feb 2008 15:41:16 GMT</pubDate></item></channel></rss>