[flokk-checkins] Dynamic casts aren't working and segfault.
Status: Pre-Alpha
Brought to you by:
dshipton
From: Daniel E. S. <dsh...@us...> - 2004-12-23 20:44:52
|
<html> <head> <style><!-- body {background-color:#ffffff;} .file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;} .pathname {font-family:monospace; float:right;} .fileheader {margin-bottom:.5em;} .diff {margin:0;} .tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;} .tasklist ul {margin-top:0;margin-bottom:0;} tr.alt {background-color:#eeeeee} #added {background-color:#ddffdd;} #addedchars {background-color:#99ff99;font-weight:bolder;} tr.alt #added {background-color:#ccf7cc;} #removed {background-color:#ffdddd;} #removedchars {background-color:#ff9999;font-weight:bolder;} tr.alt #removed {background-color:#f7cccc;} #info {color:#888888;} #context {background-color:#eeeeee;} td {padding-left:.3em;padding-right:.3em;} tr.head {border-bottom-width:1px;border-bottom-style:solid;} tr.head td {padding:0;padding-top:.2em;} .task {background-color:#ffff00;} .comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd} .error {color:red;} hr {border-width:0px;height:2px;background:black;} --></style> </head> <body> <table cellspacing="0" cellpadding="0" border="0" rules="cols"> <tr class="head"><td colspan="4">Commit in <b><tt>flokk/samples/fishbowl/src</tt></b><span id="info"> on MAIN</span></td></tr> <tr><td><tt><a href="#file1">ChaseProblem.cpp</a></tt></td><td align="right" id="added">+6</td><td align="right" id="removed">-4</td><td nowrap="nowrap" align="center"><a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples/fishbowl/src/ChaseProblem.cpp?rev=1.3&content-type=text/vnd.viewcvs-markup">1.3</a> <a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples/fishbowl/src/ChaseProblem.cpp.diff?r1=1.3&r2=1.4">-></a> <a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples/fishbowl/src/ChaseProblem.cpp?rev=1.4&content-type=text/vnd.viewcvs-markup">1.4</a></td></tr> <tr class="alt"><td><tt><a href="#file2">MoveProblem.cpp</a></tt></td><td align="right" id="added">+6</td><td align="right" id="removed">-4</td><td nowrap="nowrap" align="center"><a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples/fishbowl/src/MoveProblem.cpp?rev=1.5&content-type=text/vnd.viewcvs-markup">1.5</a> <a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples/fishbowl/src/MoveProblem.cpp.diff?r1=1.5&r2=1.6">-></a> <a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples/fishbowl/src/MoveProblem.cpp?rev=1.6&content-type=text/vnd.viewcvs-markup">1.6</a></td></tr> <tr><td></td><td align="right" id="added">+12</td><td align="right" id="removed">-8</td><td></td></tr> </table> <small id="info">2 modified files</small><br /> <pre class="comment"> Dynamic casts aren't working and segfault. </pre> <hr /><a name="file1" /><div class="file"> <span class="pathname"><a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk">flokk</a>/<a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples">samples</a>/<a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples/fishbowl">fishbowl</a>/<a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples/fishbowl/src">src</a><br /></span> <div class="fileheader"><big><b>ChaseProblem.cpp</b></big> <small id="info"><a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples/fishbowl/src/ChaseProblem.cpp?rev=1.3&content-type=text/vnd.viewcvs-markup">1.3</a> <a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples/fishbowl/src/ChaseProblem.cpp.diff?r1=1.3&r2=1.4">-></a> <a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples/fishbowl/src/ChaseProblem.cpp?rev=1.4&content-type=text/vnd.viewcvs-markup">1.4</a></small></div> <pre class="diff"><small id="info">diff -u -r1.3 -r1.4 --- ChaseProblem.cpp 15 Dec 2004 01:54:32 -0000 1.3 +++ ChaseProblem.cpp 23 Dec 2004 20:44:45 -0000 1.4 @@ -3,8 +3,8 @@ </small></pre><pre class="diff" id="context"> * * ----------------------------------------------------------------- * File: $RCSfile: ChaseProblem.cpp,v $ </pre><pre class="diff" id="removed">- * Date modified: $Date: 2004/12/15 01:54:32 $ - * Version: $Revision: 1.3 $ </pre><pre class="diff" id="added">+ * Date modified: $Date: 2004/12/23 20:44:45 $ + * Version: $Revision: 1.4 $ </pre><pre class="diff" id="context"> * ----------------------------------------------------------------- * * </pre><pre class="diff"><small id="info">@@ -48,7 +48,8 @@ </small></pre><pre class="diff" id="context"> { if ( !mHasSetPosition ) { </pre><pre class="diff" id="removed">- flokk::LocationalAgent * la = dynamic_cast< flokk::LocationalAgent *>( mAgent ); </pre><pre class="diff" id="added">+ <span id="addedchars">//</span>flokk::LocationalAgent * la = dynamic_cast< flokk::LocationalAgent *>( mAgent ); + flokk::LocationalAgent * la = (flokk::LocationalAgent *) mAgent; </pre><pre class="diff" id="context"> if ( la ) { mAgent->setDesiredPosition( mBox->getMax() - mBox->getMin() ); </pre><pre class="diff"><small id="info">@@ -69,7 +70,8 @@ </small></pre><pre class="diff" id="context"> bool ChaseProblem::isSolved( ) { </pre><pre class="diff" id="removed">- flokk::LocationalAgent * la = dynamic_cast< flokk::LocationalAgent *>( mAgent ); </pre><pre class="diff" id="added">+ <span id="addedchars">//</span>flokk::LocationalAgent * la = dynamic_cast< flokk::LocationalAgent *>( mAgent ); + flokk::LocationalAgent * la = (flokk::LocationalAgent *) mAgent; </pre><pre class="diff" id="context"> if ( la ) { </pre></div> <hr /><a name="file2" /><div class="file"> <span class="pathname"><a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk">flokk</a>/<a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples">samples</a>/<a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples/fishbowl">fishbowl</a>/<a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples/fishbowl/src">src</a><br /></span> <div class="fileheader"><big><b>MoveProblem.cpp</b></big> <small id="info"><a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples/fishbowl/src/MoveProblem.cpp?rev=1.5&content-type=text/vnd.viewcvs-markup">1.5</a> <a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples/fishbowl/src/MoveProblem.cpp.diff?r1=1.5&r2=1.6">-></a> <a href="http://cvs.sourceforge.net/viewcvs.py/flokk/flokk/samples/fishbowl/src/MoveProblem.cpp?rev=1.6&content-type=text/vnd.viewcvs-markup">1.6</a></small></div> <pre class="diff"><small id="info">diff -u -r1.5 -r1.6 --- MoveProblem.cpp 15 Dec 2004 01:54:33 -0000 1.5 +++ MoveProblem.cpp 23 Dec 2004 20:44:45 -0000 1.6 @@ -3,8 +3,8 @@ </small></pre><pre class="diff" id="context"> * * ----------------------------------------------------------------- * File: $RCSfile: MoveProblem.cpp,v $ </pre><pre class="diff" id="removed">- * Date modified: $Date: 2004/12/15 01:54:33 $ - * Version: $Revision: 1.5 $ </pre><pre class="diff" id="added">+ * Date modified: $Date: 2004/12/23 20:44:45 $ + * Version: $Revision: 1.6 $ </pre><pre class="diff" id="context"> * ----------------------------------------------------------------- * * </pre><pre class="diff"><small id="info">@@ -49,7 +49,8 @@ </small></pre><pre class="diff" id="context"> { if ( !mHasSetPosition ) { </pre><pre class="diff" id="removed">- flokk::LocationalAgent * la = dynamic_cast< flokk::LocationalAgent *>( mAgent ); </pre><pre class="diff" id="added">+ <span id="addedchars">//</span>flokk::LocationalAgent * la = dynamic_cast< flokk::LocationalAgent *>( mAgent ); + flokk::LocationalAgent * la = (flokk::LocationalAgent *) mAgent ; </pre><pre class="diff" id="context"> if ( la ) { la->setDesiredPosition( mPoint ); </pre><pre class="diff"><small id="info">@@ -72,7 +73,8 @@ </small></pre><pre class="diff" id="context"> bool MoveProblem::isSolved( ) { </pre><pre class="diff" id="removed">- flokk::LocationalAgent * la = dynamic_cast< flokk::LocationalAgent *>( mAgent ); </pre><pre class="diff" id="added">+ <span id="addedchars">//</span>flokk::LocationalAgent * la = dynamic_cast< flokk::LocationalAgent *>( mAgent ); + flokk::LocationalAgent * la = (flokk::LocationalAgent *) mAgent; </pre><pre class="diff" id="context"> if ( la ) { </pre></div> <center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -> email">CVSspam</a> 0.2.10</small></center> </body></html> |