Page 1 of 1

MemGraph Tool v1.1

Posted: Fri Aug 13, 2010 7:30 pm
by nicodega
Hi, I'm new to the forums, but I not to OS programming.

Yesterday I was bored and decided to check my 4 years old microkernel and OS (sartoris Microkernel), and as I did I found out I couldn't follow how memory was layed out. In order to help me do it I've created a simple application on which you can input memory ranges with names, and it'll create a memory image as the one attached.

It's really a simple application, and I won't be updating it probably, but I thought it might help other OS developers and decided to post it.

The application requires .NET Framework 2.0 to run.

Let's hope someone find's it useful.

Nico.

Version 1.1 Changes:

- You can now place one break on the memory image. A break will hide that portion of the image.
- New Center button. Will center the start address of the selected region on the drawing.
- Small Bugfixes.

Version 1.0 Changes:

- Now horizontal layout can be selected.
- Full image save has been removed.
- "Save Image" option now will save the complete memory drawing, if the upper part is visible, and memory height is bigger than the image.

Version 0.3. Changes are:

- Added scroll to the memory regions list.
- Now memory can be moved in any direction.
- You can now specify the memory region Height on the drawing.

Version 0.2. Changes are:

- Fixed anoying bugs (mostly when viewing the memory).
- Now the window can be Resized.
- Dragging the Memory image to the sides will move it.
- x64 memory values should be supported now.
- Now the clear button only clears the memory being displayed.

I've also uploaded the sources which I place on the Public domain. In case anyone wants to use them.

Re: MemGraph (don't get lost on the memory layout of your OS

Posted: Fri Aug 13, 2010 7:50 pm
by thepowersgang
It looks like quite a useful tool, just needs a bit of polish.

When I tried to open it on my laptop (running at 1024x768) it didn't resize the window correctly and hence the Colour and range end controls were unusable. Also, it would be nice if it supported 64-bit addresses (it shouldn't be too hard to add those).

Re: MemGraph (don't get lost on the memory layout of your OS

Posted: Fri Aug 13, 2010 7:59 pm
by nicodega
thepowersgang wrote:It looks like quite a useful tool, just needs a bit of polish.

When I tried to open it on my laptop (running at 1024x768) it didn't resize the window correctly and hence the Colour and range end controls were unusable. Also, it would be nice if it supported 64-bit addresses (it shouldn't be too hard to add those).
It really is an app to help me see the memory layout better, it has no resize code and probably won't have.

Maybe I'll change it to support 64bits (I should use longs instead of ints).

This is the source code, I place it on the public domain.

Re: MemGraph (don't get lost on the memory layout!) V0.2

Posted: Fri Aug 13, 2010 9:33 pm
by nicodega
I've uploaded a new version.

Re: MemGraph (don't get lost on the memory layout!) V0.2

Posted: Sat Aug 14, 2010 2:43 am
by Karlosoft
Nice! Now I can say goodbye to my draws on paper ;) This will be surely better.

Re: MemGraph (don't get lost on the memory layout!) V0.2

Posted: Sat Aug 14, 2010 3:46 am
by Creature
Is there any license or copyright related to the 'works' we can produce with it (I assume not, but it's always nice to make sure)?

Also, a feature suggestion: Maybe you could implement a second, horizontal lay-out (for in case people want a horizontal bar rather than a vertical one). Rotating the vertical bar works, but it might be handier to have the labels horizontal as well instead of vertically 'perpendicular' to the horizontal bar.

Third note: If I press 'Add' with no values in the fields, it says "Error en campos" ;).

Re: MemGraph (don't get lost on the memory layout!) V0.2

Posted: Sat Aug 14, 2010 9:52 am
by nicodega
Creature wrote:Is there any license or copyright related to the 'works' we can produce with it (I assume not, but it's always nice to make sure)?

Also, a feature suggestion: Maybe you could implement a second, horizontal lay-out (for in case people want a horizontal bar rather than a vertical one). Rotating the vertical bar works, but it might be handier to have the labels horizontal as well instead of vertically 'perpendicular' to the horizontal bar.

Third note: If I press 'Add' with no values in the fields, it says "Error en campos" ;).
Haha I'm from Argentina, my native tonge is spanish :) (I've changed the error message now and uploaded the zip again).

I've also uploaded the sources, in case anyone wants to modify it.. you can do as you please with them since I'm releasing them to the public domain.

Oh and you can also do what you want with the images/files generated with the app.

Re: MemGraph Tool V0.3

Posted: Sat Aug 14, 2010 3:22 pm
by tharkun
berkus wrote:There is no public domain in some countries, like Germany. Releasing under a non-restrictive non-sticky license like BSD, MIT X11 or BOOST license might be a better idea. JFYI.
Or Solar's PDCLib licence.

Re: MemGraph Tool V0.3

Posted: Sat Aug 14, 2010 3:26 pm
by nicodega
berkus wrote:There is no public domain in some countries, like Germany. Releasing under a non-restrictive non-sticky license like BSD, MIT X11 or BOOST license might be a better idea. JFYI.
Truth is I really don't care what anyone might do with the code. It's not a tool I've developed and I'm proud of it, but a tool I developed for myself, and thought I could share.

BTW, there's a new version (this is probably the last one).

Re: MemGraph Tool V0.3

Posted: Sun Aug 15, 2010 12:38 am
by Andr3w
berkus wrote:There is no public domain in some countries, like Germany. Releasing under a non-restrictive non-sticky license like BSD, MIT X11 or BOOST license might be a better idea. JFYI.
I prefer WTFPL. It's really free :P

P.S The app is great! Thanks!

Re: MemGraph Tool V0.3

Posted: Sun Aug 15, 2010 2:42 am
by Owen
berkus wrote:There is no public domain in some countries, like Germany. Releasing under a non-restrictive non-sticky license like BSD, MIT X11 or BOOST license might be a better idea. JFYI.
Doesn't matter. He lives in a country which recognizes PD and PDs it? Its public domain.

Rule of the shorter term applies

Re: MemGraph Tool V0.3

Posted: Sun Aug 15, 2010 2:58 am
by f2
Hm... this is a very useful tool. Keep up the good work. If one day I write some informations about internals of my OS,
I could use this tool to describe the (complex) memory map :) .