<html>
<head>
</head>
<body>
The problem is still there, however, the results vary depending upon what
I do within the code. I believe that it has something to do with the way
the code is packed and aligned. If I remove a single line of code in a function
such as a comparison, the program may go into this infinite exception loop.
If I remove a line of code else where, the tasks may return that they have
started, but the tasks don't actually start running (I added some diag code
to show me when the actual task function is entered). I add a line of code
somewhere else, such as a cout, ant the program runs fine. It may have something
to do with the linking, causing the code to jump to an incorrect address.<br>
<br>
Joel Sherrill wrote:<br>
<blockquote type="cite" cite="mid:3CB5D91C.B58788B9@OARcorp.com">
  <pre wrap=""><br>Angelo Fraietta wrote:<br></pre>
  <blockquote type="cite">
    <pre wrap="">I forgot to say I am using pc386dx bsp<br><br>Angelo Fraietta wrote:<br><br></pre>
    <blockquote type="cite">
      <pre wrap="">What could be causing an exception 6. I have looked in cpu.h and it<br>saya it is an illegal instruction.<br>What causes this type of fault?<br><br></pre>
      </blockquote>
      </blockquote>
      <pre wrap=""><!----><br>I think this means invalid instruction which likely means you have<br>corrupt code or jumped somewhere wrong.<br><br>Was the reported address inside or outside your program?<br><br></pre>
      <blockquote type="cite">
        <pre wrap="">--<br>Angelo Fraietta<br><br>PO Box 859<br>Hamilton NSW 2303<br><br>Home Page<br><br><a class="moz-txt-link-freetext" href="http://www.users.bigpond.com/angelo_f/">http://www.users.bigpond.com/angelo_f/</a><br><br>There are those who seek knowledge for the sake of knowledge - that is CURIOSITY<br>There are those who seek knowledge to be known by others - that is VANITY<br>There are those who seek knowledge in order to serve - that is LOVE<br>    Bernard of Clairvaux (1090 - 1153)<br></pre>
        </blockquote>
        <pre wrap=""><!----><br></pre>
        </blockquote>
        <br>
        <pre class="moz-signature" cols="$mailwrapcol">-- 
Angelo Fraietta

PO Box 859
Hamilton NSW 2303

Home Page


<a class="moz-txt-link-freetext" href="http://www.users.bigpond.com/angelo_f/">http://www.users.bigpond.com/angelo_f/</a>

There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
    Bernard of Clairvaux (1090 - 1153)</pre>
        <br>
        </body>
        </html>