<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by Phanjon</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Tue, 23 Jun 2026 20:25:40 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>[WTS] Kettler Multigym 7752-800C</title>
            <link>http://forum.lowyat.net/topic/3657006</link>
            <description>&lt;b&gt;Item(s):&lt;/b&gt;&lt;br /&gt;Selling Kettler Multigym&amp;#33; &lt;!--emo&amp;:drool:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/drool.gif' border='0' style='vertical-align:middle' alt='drool.gif' /&gt;&lt;!--endemo--&gt;  &lt;!--emo&amp;:drool:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/drool.gif' border='0' style='vertical-align:middle' alt='drool.gif' /&gt;&lt;!--endemo--&gt; &lt;br /&gt;Product code : 7752-800C&lt;br /&gt;&lt;br /&gt;Below is excerpt from Kettlers Website itself.&lt;br /&gt;&lt;br /&gt;Butterfly, Bench press seated, Crunches seated, Latissimus rope frame, Lower pulley for leg and arm exercises, Rowing, Leg extension, Leg curl are all available&lt;br /&gt;Weight stack 5 – 80kg (16 x 5kg)&lt;br /&gt;Adjustable bench press unit&lt;br /&gt;Adjustable butterfly arms&lt;br /&gt;Easy change from bench press to butterfly without the need to adjust&lt;br /&gt;Padded seat, adjustable in height&lt;br /&gt;Plastic coated steel ropes&lt;br /&gt;Maximum weight 80kg&lt;br /&gt;Max user weight 130kg&lt;br /&gt;Dimension when set up (L x W x H cms) 181 /109 /200&lt;br /&gt;&lt;br /&gt;Link for reference as below :-&lt;br /&gt;&lt;a href='http://www.kettler.co.uk/items/kettler-multigym/' target='_blank'&gt;http://www.kettler.co.uk/items/kettler-multigym/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Package includes:&lt;/b&gt;&lt;br /&gt;Original Kettler equipment mat to protect your floor from being damage&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Price:&lt;/b&gt;&lt;br /&gt;&lt;span style='font-size:14pt;line-height:100%'&gt;RM3400&lt;/span&gt; including delivery within KL / Selangor area &lt;span style='font-size:16pt;line-height:100%'&gt;(NEGOTIABLE)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Warranty:&lt;/b&gt;&lt;br /&gt;2 years by kettler Malaysia&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Dealing method:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Location:&lt;/b&gt;&lt;br /&gt;Ara Damansara&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Contact method/details:&lt;/b&gt;&lt;br /&gt;PM or message me&lt;br /&gt;&lt;br /&gt;0182066487&lt;br /&gt;---&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Item(s) conditions:&lt;/b&gt;&lt;br /&gt;Brand new it being just a 3 month old product through normal and careful usage&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Picture:&lt;/b&gt;&lt;br /&gt;Official picture from Kettler Website :-&lt;br /&gt;&lt;img src='http://i59.tinypic.com/qzqdxl.jpg' border='0' alt='user posted image' /&gt;&lt;br /&gt;&lt;br /&gt;Product picture from my house :-&lt;br /&gt;&lt;img src='http://i59.tinypic.com/2vkhrvt.jpg' border='0' alt='user posted image' /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Reason for sale:&lt;/b&gt; &lt;br /&gt;Will be relocating to another country and wouldnt be able to use it anymore  &lt;!--emo&amp;:cool2:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/cool2.gif' border='0' style='vertical-align:middle' alt='cool2.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>Phanjon</author>
            <category>Sports Garage Sales</category>
            <pubDate>Thu, 23 Jul 2015 11:34:54 +0800</pubDate>
        </item>
        <item>
            <title>Need help with this mindboggling problem in C++</title>
            <link>http://forum.lowyat.net/topic/3161037</link>
            <description>I am currently stuck in this problem that I do not have any idea to fix.&lt;br /&gt;&lt;br /&gt;My program accesses a text file that is updated constantly every millisecond 24/7. It grabs the data line by line and does comparison on each of the line. If any thing is &amp;quot;amiss&amp;quot;(defined by me), then I log that data into a .csv file. This program can be run at timed intervals(user defined).&lt;br /&gt;&lt;br /&gt;My problem is that this program works perfectly fine on my computer but yet it doesnt on my clients computer. I have debug the program and these are my findings. Below is my code that I have reduced as much possible to ease the explanation process&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;int result;&lt;br /&gt;char ReadLogLine&amp;#91;100000&amp;#93; = &amp;#34;&amp;#34;;&lt;br /&gt;FILE *readLOG_fp;&lt;br /&gt;CString LogPathName;&lt;br /&gt;LogPathName = Source_Folder + &amp;#34;&amp;#092;&amp;#092;serco.log&amp;#34;; //Source_Folder is found in a .ini file. Value is C&amp;#58;&amp;#092;&amp;#092;phython25&amp;#092;&amp;#092;xyratex&amp;#092;&amp;#092;serco_logs   &lt;br /&gt;readLOG_fp = fopen&amp;#40;LogPathName, &amp;#34;r+t&amp;#34;&amp;#41;; &lt;br /&gt; if &amp;#40;readLOG_fp &amp;nbsp;== NULL&amp;#41;&lt;br /&gt; &amp;nbsp; &amp;nbsp;{&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MessageBox&amp;#40;&amp;#34;Error Opening File&amp;#33; Please re-check if file exists&amp;#33;&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exit&amp;#40;0&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;while &amp;#40;&amp;#40;result = fscanf&amp;#40;readLOG_fp, &amp;#34;%&amp;#91;^&amp;#092;n&amp;#93;&amp;#092;n&amp;#34;, ReadLogLine&amp;#41;&amp;#41; &amp;#33;= EOF&amp;#41; // Loops through the file till it reaches the end of file&lt;br /&gt;{&lt;br /&gt;    Sort_Array&amp;#40;&amp;#41;; // Here is a function to sort the different lines that I grabbed from the text file&lt;br /&gt;    Comp_State&amp;#40;&amp;#41;; // I compare the lines here and store them into an array to be printed out&lt;br /&gt;}&lt;br /&gt;fclose&amp;#40;readLOG_fp&amp;#41;;&lt;br /&gt;&lt;br /&gt;GenerateCSV&amp;#40;&amp;#41;; // This is my function to generate the csv and print everything out&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;In Sort_Array(), I sort the lines that I grab from the text file as they could be of different nature. For example,&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;CStringArray LineType_A, LineType_B, LineTypeC, LineTypeD;&lt;br /&gt;if &amp;#40;ReadLogLine == &amp;#34;Example line a&amp;#34;&amp;#41;&lt;br /&gt;{&lt;br /&gt;    LineType_A.add&amp;#40;ReadLogLine&amp;#41;;&lt;br /&gt;}&lt;br /&gt;else if &amp;#40;ReadLogLine == &amp;#34;Example line b&amp;#34;&amp;#41;&lt;br /&gt;{&lt;br /&gt;    LineType_B.add&amp;#40;ReadLogLine&amp;#41;;&lt;br /&gt;}&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;and so on.&lt;br /&gt;&lt;br /&gt;In CompState(), I compare the different values within each LineType array to see if there are any difference. If it is different, then I store them into a seperate array to print. A simple example would be.&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;CStringArray PrintCSV_Array;&lt;br /&gt;&lt;br /&gt;for &amp;#40;int i = 0; i &amp;#60;= LineType_A.GetUpperBound&amp;#40;&amp;#41;; i++&amp;#41;&lt;br /&gt;{    &lt;br /&gt;    if &amp;#40;LineType_A.GetAt&amp;#40;0&amp;#41; == LineType_A.GetAt&amp;#40;1&amp;#41;&amp;#41;&lt;br /&gt;    {&lt;br /&gt;        LineType_A.RemoveAt&amp;#40;0&amp;#41;;&lt;br /&gt;    }&lt;br /&gt;    else &lt;br /&gt;    {&lt;br /&gt;        LineType_A.RemoveAt&amp;#40;0&amp;#41;;&lt;br /&gt;        PrintCSV_Array.Add&amp;#40;LineType_A.GetAt&amp;#40;0&amp;#41;;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;This way I dont have an infinite amount of data in the array.&lt;br /&gt;&lt;br /&gt;Now to the GenerateCSV function, it is just a normal function where I create a .csv file and print whatever I have in the PrintCSV_Array.&lt;br /&gt;&lt;br /&gt;Now to the problem. In my client&amp;#39;s computer, it seems to not print anything out to the CSV. I debugged the program and found out that it keeps failing here.&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;while &amp;#40;&amp;#40;result = fscanf&amp;#40;readLOG_fp, &amp;#34;%&amp;#91;^&amp;#092;n&amp;#93;&amp;#092;n&amp;#34;, ReadLogLine&amp;#41;&amp;#41; &amp;#33;= EOF&amp;#41; // Loops through the file till it reaches the end of file&lt;br /&gt;{&lt;br /&gt;    Sort_Array&amp;#40;&amp;#41;; // Here is a function to sort the different lines that I grabbed from the text file&lt;br /&gt;    Comp_State&amp;#40;&amp;#41;; // I compare the lines here and store them into an array to be printed out&lt;br /&gt;}&lt;br /&gt;fclose&amp;#40;readLOG_fp&amp;#41;;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;It goes into the while loop fine as I did some error checking there in the actual program. The moment it goes into the while loop it breaks out of it suggesting to me it reach EOF for some reason. When that happens, the program has no chance to go into both the Sort_Array and Comp_State functions thus giving me a blank PrintCSV_Array and nothing to print out.&lt;br /&gt;&lt;br /&gt;Things that I have checked is that&lt;br /&gt;&lt;br /&gt;I definitely have access to the text file.&lt;br /&gt;&lt;br /&gt;My thoughts were because the text file is updated every millisecond, it may have been opened by the other program to write into it and thus not giving me access OR the text file is always in an fopen state therefore not saving any data in for me to read. I tested this out and the program has value added in as I see the KB&amp;#39;s adding up in front of my eyes.&lt;br /&gt;&lt;br /&gt;I tried to copy the text file and paste it somewhere else for my program to read, this way I definitely have full access to it and once I am done with it, Ill delete it. This gave me nothing to print aswell.&lt;br /&gt;&lt;br /&gt;Am I right to deduce that it is always giving me EOF thus this is having problems.&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;while &amp;#40;&amp;#40;result = fscanf&amp;#40;readLOG_fp, &amp;#34;%&amp;#91;^&amp;#092;n&amp;#93;&amp;#092;n&amp;#34;, ReadLogLine&amp;#41;&amp;#41; &amp;#33;= EOF&amp;#41; // Loops through the file till it reaches the end of file&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;If yes, How do I fix this?? What other ways can I make it read every line. I have seriously exhausted all my ideas on this problem and need some help in this.&lt;br /&gt;&lt;br /&gt;It is not a problem in the pathnames as they have been double triple checked. &lt;br /&gt;&lt;br /&gt;Thanks everyone for your help.</description>
            <author>Phanjon</author>
            <category>Codemasters</category>
            <pubDate>Fri, 14 Mar 2014 14:48:15 +0800</pubDate>
        </item>
    </channel>
</rss>
