<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Paul Solt</title>
	<atom:link href="http://paulsolt.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://paulsolt.com</link>
	<description>Putting the Inc back in Solt since 2005.</description>
	<lastBuildDate>Wed, 03 Mar 2010 20:11:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on OpenGL/GLUT, Classes (OOP), and Problems by Paul Solt</title>
		<link>http://paulsolt.com/2009/07/openglglut-classes-oop-and-problems/comment-page-1/#comment-1757</link>
		<dc:creator>Paul Solt</dc:creator>
		<pubDate>Wed, 03 Mar 2010 20:11:52 +0000</pubDate>
		<guid isPermaLink="false">http://paulsolt.com/?p=156#comment-1757</guid>
		<description>&lt;a href=&quot;#comment-1756&quot; rel=&quot;nofollow&quot;&gt;@Richard Simpson &lt;/a&gt; 
It looks like your trying to set the instance in your constructor. That instance will not be complete until after the constructor is finished running. I think that is your issue.

Following one of my previous comments you need to do the following in a &quot;main program&quot; where you create the cgvDraw object.

1. Create the object
2. Pass in the object&#039;s instance to it&#039;s static instance variable.

&lt;pre lang=&quot;cpp&quot;&gt;
cgvDraw cgObject = new cgvDraw();
cgObject-&gt;setInstance(cgObject);
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p><a href="#comment-1756" rel="nofollow">@Richard Simpson </a><br />
It looks like your trying to set the instance in your constructor. That instance will not be complete until after the constructor is finished running. I think that is your issue.</p>
<p>Following one of my previous comments you need to do the following in a &#8220;main program&#8221; where you create the cgvDraw object.</p>
<p>1. Create the object<br />
2. Pass in the object&#8217;s instance to it&#8217;s static instance variable.</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;">cgvDraw cgObject <span style="color: #000080;">=</span> <span style="color: #0000dd;">new</span> cgvDraw<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
cgObject<span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span>setInstance<span style="color: #008000;">&#40;</span>cgObject<span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>Comment on OpenGL/GLUT, Classes (OOP), and Problems by Richard Simpson</title>
		<link>http://paulsolt.com/2009/07/openglglut-classes-oop-and-problems/comment-page-1/#comment-1756</link>
		<dc:creator>Richard Simpson</dc:creator>
		<pubDate>Wed, 03 Mar 2010 11:47:57 +0000</pubDate>
		<guid isPermaLink="false">http://paulsolt.com/?p=156#comment-1756</guid>
		<description>Hi Paul

Looking at your code and it is a really good idea.

I am having a few problems however in getting it to work.. It may be a general C++ error but for some reason it keeps complaining that the instance variable isn&#039;t defined..

&lt;pre lang=&quot;cpp&quot;&gt;
class cgvDrawWrap
{
	protected:
		static cgvDrawWrap *instance;
		
	public:
		static void drawSceneWrap()
		{
			instance-&gt;drawScene();
		}
		
		static void setInstance(cgvDrawWrap *in)
		{
			//printf(&quot;\nBefore %ld\t%ld&quot;, in, cgvDrawinstance);
			instance = in;
			//printf(&quot;\nAfter %ld\t%ld&quot;, in, instance);
		}
};

class cgvDraw : public cgvDrawWrap
{
	public:
			
		// Class constructor
		cgvDraw()
		{
			// Set the instance of the class
			this-&gt;setInstance(this);
                        ..........................
                }
};
&lt;/pre&gt;



this is only a cut down version of the offending code - but it seems the same as what you have and I don&#039;t know why it isn&#039;t working.

Any ideas would be amazing.

&quot;undefined reference to `cgvDrawWrap::instance&#039;&quot;

Regards,
Richard</description>
		<content:encoded><![CDATA[<p>Hi Paul</p>
<p>Looking at your code and it is a really good idea.</p>
<p>I am having a few problems however in getting it to work.. It may be a general C++ error but for some reason it keeps complaining that the instance variable isn&#8217;t defined..</p>

<div class="wp_syntax"><div class="code"><pre class="cpp" style="font-family:monospace;"><span style="color: #0000ff;">class</span> cgvDrawWrap
<span style="color: #008000;">&#123;</span>
	<span style="color: #0000ff;">protected</span><span style="color: #008080;">:</span>
		<span style="color: #0000ff;">static</span> cgvDrawWrap <span style="color: #000040;">*</span>instance<span style="color: #008080;">;</span>
&nbsp;
	<span style="color: #0000ff;">public</span><span style="color: #008080;">:</span>
		<span style="color: #0000ff;">static</span> <span style="color: #0000ff;">void</span> drawSceneWrap<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
		<span style="color: #008000;">&#123;</span>
			instance<span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span>drawScene<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
		<span style="color: #008000;">&#125;</span>
&nbsp;
		<span style="color: #0000ff;">static</span> <span style="color: #0000ff;">void</span> setInstance<span style="color: #008000;">&#40;</span>cgvDrawWrap <span style="color: #000040;">*</span>in<span style="color: #008000;">&#41;</span>
		<span style="color: #008000;">&#123;</span>
			<span style="color: #666666;">//printf(&quot;\nBefore %ld\t%ld&quot;, in, cgvDrawinstance);</span>
			instance <span style="color: #000080;">=</span> in<span style="color: #008080;">;</span>
			<span style="color: #666666;">//printf(&quot;\nAfter %ld\t%ld&quot;, in, instance);</span>
		<span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span><span style="color: #008080;">;</span>
&nbsp;
<span style="color: #0000ff;">class</span> cgvDraw <span style="color: #008080;">:</span> <span style="color: #0000ff;">public</span> cgvDrawWrap
<span style="color: #008000;">&#123;</span>
	<span style="color: #0000ff;">public</span><span style="color: #008080;">:</span>
&nbsp;
		<span style="color: #666666;">// Class constructor</span>
		cgvDraw<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
		<span style="color: #008000;">&#123;</span>
			<span style="color: #666666;">// Set the instance of the class</span>
			this<span style="color: #000040;">-</span><span style="color: #000080;">&gt;</span>setInstance<span style="color: #008000;">&#40;</span><span style="color: #0000dd;">this</span><span style="color: #008000;">&#41;</span><span style="color: #008080;">;</span>
                        ..........................
                <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span><span style="color: #008080;">;</span></pre></div></div>

<p>this is only a cut down version of the offending code &#8211; but it seems the same as what you have and I don&#8217;t know why it isn&#8217;t working.</p>
<p>Any ideas would be amazing.</p>
<p>&#8220;undefined reference to `cgvDrawWrap::instance&#8217;&#8221;</p>
<p>Regards,<br />
Richard</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on iPhone Player/Stage Remote Control by Paul Solt &#187; iPhone Remote Control Samples</title>
		<link>http://paulsolt.com/2009/08/iphone-playerstage-remote-control/comment-page-1/#comment-1752</link>
		<dc:creator>Paul Solt &#187; iPhone Remote Control Samples</dc:creator>
		<pubDate>Sat, 27 Feb 2010 16:37:17 +0000</pubDate>
		<guid isPermaLink="false">http://paulsolt.com/?p=329#comment-1752</guid>
		<description>[...] the link to my follow-up post: iPhone Player/Stage Sample Projects    Categories: Computer Science Tags: ImagineRIT, iPhone, player/stage, remote control, RIT, Robot  [...]</description>
		<content:encoded><![CDATA[<p>[...] the link to my follow-up post: iPhone Player/Stage Sample Projects    Categories: Computer Science Tags: ImagineRIT, iPhone, player/stage, remote control, RIT, Robot  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on iPhone Remote Control Samples by Mehdi Mahmoudi</title>
		<link>http://paulsolt.com/2009/08/iphone-remote-control-samples/comment-page-1/#comment-1749</link>
		<dc:creator>Mehdi Mahmoudi</dc:creator>
		<pubDate>Fri, 26 Feb 2010 07:11:42 +0000</pubDate>
		<guid isPermaLink="false">http://paulsolt.com/2009/08/iphone-remote-control-samples/#comment-1749</guid>
		<description>Hey Paul !
Great job, great website ! I found it while googling for people who got Player/Stage 3.0 working on Mac OS X. So far, I failed to install it both from MacPorts and manually through Cmake. Since Player/Stage switched to Cmake installation, a lot of people are having difficulties to install it on OS X. For now I&#039;ll just keep the 2.0.4 until the port is updated (soon apparently). I&#039;m a student at Polytechnique Montreal particularly interested in underwater robotics. I also do a lot of iPhone development for some of my courses at school, and I find your projects really cool ! I&#039;m already curious to read your pdf and how you installed P/S on the iphone :) Thanks again for sharing !
Cheers
Mehdi</description>
		<content:encoded><![CDATA[<p>Hey Paul !<br />
Great job, great website ! I found it while googling for people who got Player/Stage 3.0 working on Mac OS X. So far, I failed to install it both from MacPorts and manually through Cmake. Since Player/Stage switched to Cmake installation, a lot of people are having difficulties to install it on OS X. For now I&#8217;ll just keep the 2.0.4 until the port is updated (soon apparently). I&#8217;m a student at Polytechnique Montreal particularly interested in underwater robotics. I also do a lot of iPhone development for some of my courses at school, and I find your projects really cool ! I&#8217;m already curious to read your pdf and how you installed P/S on the iphone <img src='http://paulsolt.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thanks again for sharing !<br />
Cheers<br />
Mehdi</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on iPhone Development with OpenGL by Nick Campbell</title>
		<link>http://paulsolt.com/2009/12/iphone-development-with-opengl/comment-page-1/#comment-1745</link>
		<dc:creator>Nick Campbell</dc:creator>
		<pubDate>Tue, 23 Feb 2010 02:10:34 +0000</pubDate>
		<guid isPermaLink="false">http://paulsolt.com/?p=366#comment-1745</guid>
		<description>This is really interesting stuff. Going to have to pay attention to your stuff. Keep up the good work.</description>
		<content:encoded><![CDATA[<p>This is really interesting stuff. Going to have to pay attention to your stuff. Keep up the good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on iPad Revolution by Paul Solt</title>
		<link>http://paulsolt.com/2010/02/ipad-revolution/comment-page-1/#comment-1742</link>
		<dc:creator>Paul Solt</dc:creator>
		<pubDate>Thu, 18 Feb 2010 17:54:33 +0000</pubDate>
		<guid isPermaLink="false">http://paulsolt.com/?p=420#comment-1742</guid>
		<description>Good article on multi-tasking: http://www.appleinsider.com/articles/10/02/18/inside_apples_ipad_multitasking.html</description>
		<content:encoded><![CDATA[<p>Good article on multi-tasking: <a href="http://www.appleinsider.com/articles/10/02/18/inside_apples_ipad_multitasking.html" rel="nofollow">http://www.appleinsider.com/articles/10/02/18/inside_apples_ipad_multitasking.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on iPad Revolution by Paul Solt</title>
		<link>http://paulsolt.com/2010/02/ipad-revolution/comment-page-1/#comment-1741</link>
		<dc:creator>Paul Solt</dc:creator>
		<pubDate>Thu, 11 Feb 2010 00:16:53 +0000</pubDate>
		<guid isPermaLink="false">http://paulsolt.com/?p=420#comment-1741</guid>
		<description>&lt;a href=&quot;#comment-1739&quot; rel=&quot;nofollow&quot;&gt;@Ziyan Zhou &lt;/a&gt; 
If every app ran in the background, then nothing would be faster. You either put all your power in one app and make it fast, or you slow them all down. There is limited RAM on the device, so you can&#039;t keep everything in memory.</description>
		<content:encoded><![CDATA[<p><a href="#comment-1739" rel="nofollow">@Ziyan Zhou </a><br />
If every app ran in the background, then nothing would be faster. You either put all your power in one app and make it fast, or you slow them all down. There is limited RAM on the device, so you can&#8217;t keep everything in memory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on iPad Revolution by Paul Solt</title>
		<link>http://paulsolt.com/2010/02/ipad-revolution/comment-page-1/#comment-1740</link>
		<dc:creator>Paul Solt</dc:creator>
		<pubDate>Thu, 11 Feb 2010 00:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://paulsolt.com/?p=420#comment-1740</guid>
		<description>Until the application model on the iPhone OS I don&#039;t see significant changes to Apple&#039;s stance.  Maybe iPhone 4.0 will bring those types of changes. 

Based on other Flash discussions I have read, Apple is most likely avoiding Flash because they don&#039;t have control of the source code. If there are bugs then users will have crashing devices and Apple will not have the ability to fix the issue. It makes them rely on a third party to fix the offending code. Avoiding dependencies is a good thing from a software development perspective. 

In a similar fashion, background 3rd party applications could crash and render a mobile device very slow and unresponsive. Without the &quot;taskbar&quot; interface users would not have the ability to shut down and stop these applications. Thus third party background applications are a bad user experience. 

It&#039;s not that developers can&#039;t be trusted, it&#039;s that Apple would then have to wait for the developers to fix a bug or Apple would have to remotely disable the unstable application. Neither scenario is good for users.</description>
		<content:encoded><![CDATA[<p>Until the application model on the iPhone OS I don&#8217;t see significant changes to Apple&#8217;s stance.  Maybe iPhone 4.0 will bring those types of changes. </p>
<p>Based on other Flash discussions I have read, Apple is most likely avoiding Flash because they don&#8217;t have control of the source code. If there are bugs then users will have crashing devices and Apple will not have the ability to fix the issue. It makes them rely on a third party to fix the offending code. Avoiding dependencies is a good thing from a software development perspective. </p>
<p>In a similar fashion, background 3rd party applications could crash and render a mobile device very slow and unresponsive. Without the &#8220;taskbar&#8221; interface users would not have the ability to shut down and stop these applications. Thus third party background applications are a bad user experience. </p>
<p>It&#8217;s not that developers can&#8217;t be trusted, it&#8217;s that Apple would then have to wait for the developers to fix a bug or Apple would have to remotely disable the unstable application. Neither scenario is good for users.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on iPad Revolution by Ziyan Zhou</title>
		<link>http://paulsolt.com/2010/02/ipad-revolution/comment-page-1/#comment-1739</link>
		<dc:creator>Ziyan Zhou</dc:creator>
		<pubDate>Wed, 10 Feb 2010 19:48:32 +0000</pubDate>
		<guid isPermaLink="false">http://paulsolt.com/?p=420#comment-1739</guid>
		<description>If developers can be trusted (apparently they cannot be), they can write apps that consumes very little resource while they are &quot;inactive&quot;. The memory for the inactive apps can be paged out and the restart up time for an inactive app can be practically eliminated (staring at that splash screen for ~2 seconds between switching is still not good enough).

And this quote comes to mind: &quot;No one writes perfect code in the first time, except me ... but there is only one of me ...&quot;</description>
		<content:encoded><![CDATA[<p>If developers can be trusted (apparently they cannot be), they can write apps that consumes very little resource while they are &#8220;inactive&#8221;. The memory for the inactive apps can be paged out and the restart up time for an inactive app can be practically eliminated (staring at that splash screen for ~2 seconds between switching is still not good enough).</p>
<p>And this quote comes to mind: &#8220;No one writes perfect code in the first time, except me &#8230; but there is only one of me &#8230;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on iPad Revolution by Paul Solt</title>
		<link>http://paulsolt.com/2010/02/ipad-revolution/comment-page-1/#comment-1738</link>
		<dc:creator>Paul Solt</dc:creator>
		<pubDate>Tue, 09 Feb 2010 05:00:34 +0000</pubDate>
		<guid isPermaLink="false">http://paulsolt.com/?p=420#comment-1738</guid>
		<description>Thanks for the data. The next question would be what are these applications doing?</description>
		<content:encoded><![CDATA[<p>Thanks for the data. The next question would be what are these applications doing?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
