[NXC] Memory Manager

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
timpattinson
Posts: 224
Joined: 30 Oct 2010, 04:10
Location: 127.0.0.1
Contact:

Re: [NXC] Memory Manager

Post by timpattinson »

When I tried them, they both gave File error -1
But i'm having problems with BricxCC connecting to my NXT so I couldn't investigate further
-Tim
Commit to Lego Mindstorms StackExchange Q&A http://area51.stackexchange.com/proposals/4105
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: [NXC] Memory Manager

Post by muntoo »

Hmmm... This means it's an error in MM_new(). Possibly in pushing/popping off the MM_mem stack, although there's a small chance it may be in MM_searchGarbage(), though I doubt it.

I'll investigate later. In the meantime, try this:
v0_4.zip
(39.06 KiB) Downloaded 269 times
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
nxtboyiii
Posts: 366
Joined: 02 Oct 2010, 07:08
Location: Everywhere

Re: [NXC] Memory Manager

Post by nxtboyiii »

I really don't get what this program is supposed to do...
Thanks, and have a nice day,
nxtboy III

programnxt.com
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: [NXC] Memory Manager

Post by muntoo »

nxtboyiii wrote:I really don't get what this program is supposed to do...
You're supposed to tell me the output on the NXT's screen. Perhaps via a NeXTScreen screenshot or screencapture.

They're just tests of mine to see what's working and what's not.
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: [NXC] Memory Manager

Post by muntoo »

I set up a repository.

The following screenshot shows how to download the files:
Image
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: [NXC] Memory Manager

Post by muntoo »

New Test File

Please test MM-Demo.rxe and MM-Demo_2.rxe, and tell me what the outputs are. (Or post NXT screenshots/screencaptures.)

Thanks.
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
nxtboyiii
Posts: 366
Joined: 02 Oct 2010, 07:08
Location: Everywhere

Re: [NXC] Memory Manager

Post by nxtboyiii »

The MM-Demo says:(attachment)


later, it says "Deleting Memory"
Attachments
Picformuntoo.jpg
Picformuntoo.jpg (2.82 KiB) Viewed 6172 times
Thanks, and have a nice day,
nxtboy III

programnxt.com
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: [NXC] Memory Manager

Post by muntoo »

Thanks. :) What does MM-Demo_2.rxe say?
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest