View unanswered posts | View active topics It is currently Wed Oct 01, 2014 7:51 pm






Reply to topic  [ 13 posts ] 
How can I solve this error?? (including source code) 
Author Message
Rookie

Joined: Wed Aug 27, 2008 8:11 am
Posts: 5
Post How can I solve this error?? (including source code)
Hello :)

I am suffering with an error.

I don't know how to solve this error, so I want you to help me some :)

The error message is: Not all prime temporaries were released

How can I solve it?

I'm waiting your good solutions!

Thx


Last edited by saberre on Wed Aug 27, 2008 9:49 am, edited 1 time in total.



Wed Aug 27, 2008 8:15 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post Re: How can I solve this error??
saberre wrote:
Hello :)

I am suffering with an error.

I don't know how to solve this error, so I want you to help me some :)

The error message is: Not all prime temporaries were released

How can I solve it?

I'm waiting your good solutions!

Thx

I don't have any good solutions, will a half-baked one do? Seriously, though, could you provide us with some more details.
* When does the error occur?
* What version of RobotC are you using? 1.40 is out and you can get it here. If you're not using this version, please upgrade and tell us if you still have the problem.
* What OS are you using? Vista or XP?

Hope this helps you to help us help you!

Edit: NOTE: Uninstall all previous versions of ROBOTC for Mindstorms before installing latest version.

Regards,
Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Wed Aug 27, 2008 8:44 am
Profile WWW
Rookie

Joined: Wed Aug 27, 2008 8:11 am
Posts: 5
Post Re: How can I solve this error??
Thx!

I'm using Windows Vista (No Service Packs)

I'm using RobotC for Mindstorms 1.40 (Trial)

and

Code:
    nMotorEncoder[motorB] = angle = 0; // Initializing the Encoder Value of Motor Port B

Code:
    nMotorEncoder[motorA] = angle = 0;

Code:
      nxtDisplayCenteredTextLine(1,"Turning Left...");


Those source code causes the error: Not all prime temporaries were released


Wed Aug 27, 2008 8:58 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post Re: How can I solve this error??
Does this error occur when you compile or when you run it?

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Wed Aug 27, 2008 9:02 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post Re: How can I solve this error??
If the code is not too big, could you paste it? I can see no obvious fault with those lines of code.

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Wed Aug 27, 2008 9:04 am
Profile WWW
Rookie

Joined: Wed Aug 27, 2008 8:11 am
Posts: 5
Post Re: How can I solve this error??
It occurs when I compile the program, but the program runs! I think this error is not exactly "error," kind of "warning."

I cannot show you source code. Sorry :(

Can you explain me when the error "Not all prime temporaries were released" occurs?


Wed Aug 27, 2008 9:21 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post Re: How can I solve this error??
Well I don't see it with the following code:
Code:
task main()
{
   int angle;
   nMotorEncoder[motorB] = angle = 0; // Initializing the Encoder Value of Motor Port B
   nMotorEncoder[motorA] = angle = 0;
   nxtDisplayCenteredTextLine(1,"Turning Left...");
}

So I'm afraid I am out of ideas. Perhaps someone else will read your post later. It would really help if you showed us the code that causes you these problems but I understand that is not always an option.

Regards,
Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Wed Aug 27, 2008 9:27 am
Profile WWW
Rookie

Joined: Wed Aug 27, 2008 8:11 am
Posts: 5
Post Re: How can I solve this error??
I uploaded two snapshots of source code

Those red X signs are the errors.

Thx.


Attachments:
error_02.jpg
error_02.jpg [ 131.07 KiB | Viewed 2045 times ]
error_01.jpg
error_01.jpg [ 145.8 KiB | Viewed 2045 times ]
Wed Aug 27, 2008 9:39 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post Re: How can I solve this error??
saberre wrote:
I uploaded two snapshots of source code

Those red X signs are the errors.

Thx.

There are a few other problems with your code as far as I can see. You are re-using the variable i on 109 and 128 within the same scope but for diff purposes. This will cause a conflict. Also on line 109, there is something wrong with the 2nd argument of your for loop. That can't be 0, surely?

Please paste real code next time, I can't compile screenshots :)

Regards,
Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Wed Aug 27, 2008 10:18 am
Profile WWW
Rookie

Joined: Wed Aug 27, 2008 8:11 am
Posts: 5
Post Re: How can I solve this error?? (including source code)
I changed for loops, but the error still occurs.

But I think this error doesn't effect the program.

Thanks for your answer!

Have a good day! :)


Wed Aug 27, 2008 10:25 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Jan 31, 2007 3:39 am
Posts: 299
Location: San Diego, California. USA
Post Re: How can I solve this error?? (including source code)
Hi Saberre,

For future not, we really wish you would post the actual code that is giving you problems, or a snippet of similar code that causes the same problem :-)

I'm not sure you can get away with this:
nMotorEncoder[motorB] = angle = 0;
I think it would be better to do this:
angle= 0;
nMotorEncoder[motorB] = angle;
Its only another line of code :-)

As for the nxtDisplayCenteredTextLine, I think I remember someone else bringing this up, looks like a bug, its a new feature. make sure this is posted in the bug tracker. Thanks B-)

Scott B-)

_________________
Mmmm Legos B-)

My Robot Projects:
http://www.freewebs.com/robotprojects/


Wed Aug 27, 2008 4:19 pm
Profile WWW
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: How can I solve this error?? (including source code)
starwarslegokid wrote:
I'm not sure you can get away with this:
nMotorEncoder[motorB] = angle = 0;
I think it would be better to do this:
angle= 0;
nMotorEncoder[motorB] = angle;

hi,
I've done sort of this before in my codes several times without causing an error.

But above that I think, without having the complete source (and no interest of the thread opener solving this problem) it's not worth while wasting our time with this :?

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Wed Aug 27, 2008 4:29 pm
Profile
Creator
Creator

Joined: Fri Feb 09, 2007 9:21 am
Posts: 615
Post Re: How can I solve this error?? (including source code)
Please repost if this error still persists in the latest 1.43 release.


Wed Sep 17, 2008 10:57 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 13 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.