This project is read-only.

MemFree Plug?

Jun 20, 2011 at 8:18 PM

Hello,

I'm Currently working on a custom VFS (Windows 7 x64 | COSMOS MS4), I attempted to incorperate the Cosmos.Kernel.Heap class into it. I used a consturctor on my "File" class which would allocate a set memory amount for each file. (512 bytes) for that I used Cosmos.Kernel.Heap.MemAlloc(512); Now, I was going to place in the destructor code that could free that memory (Obviously I never set the return of MemAlloc to a pointer but I could) I noticed however that in the COSMOS kernel under the Heap.cs file there is no code for MemFree and no comment to say wether or not its plugged. So...Is it? Also if its not. do I have to manipulate the kernel by hand to have MemFree or is it handled by the GC? Thanks.

Jun 20, 2011 at 8:49 PM
On 6/20/2011 3:18 PM, blackfireize wrote:
> Cosmos.Kernel.Heap.MemAlloc(512); Now, I was going to place in the
> destructor code that could free that memory (Obviously I never set the
> return of MemAlloc to a pointer but I could) I noticed however that in
> the COSMOS kernel under the Heap.cs file there is no code for MemFree
> and no comment to say wether or not its plugged. So...Is it? Also if its
> not. do I have to manipulate the kernel by hand to have MemFree or is it
> handled by the GC? Thanks.

We dont have a GC or any real memory management yet.
Jun 21, 2011 at 11:22 AM
Blackfireize: why are you working on your own VFS, instead of joining our efforts? We almost have FAT working...


On Mon, Jun 20, 2011 at 9:49 PM, kudzu <notifications@codeplex.com> wrote:

From: kudzu

On 6/20/2011 3:18 PM, blackfireize wrote:
> Cosmos.Kernel.Heap.MemAlloc(512); Now, I was going to place in the
> destructor code that could free that memory (Obviously I never set the
> return of MemAlloc to a pointer but I could) I noticed however that in
> the COSMOS kernel under the Heap.cs file there is no code for MemFree
> and no comment to say wether or not its plugged. So...Is it? Also if its
> not. do I have to manipulate the kernel by hand to have MemFree or is it
> handled by the GC? Thanks.

We dont have a GC or any real memory management yet.

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jun 21, 2011 at 5:29 PM
mterwoord wrote:
Blackfireize: why are you working on your own VFS, instead of joining our efforts? We almost have FAT working...


On Mon, Jun 20, 2011 at 9:49 PM, kudzu <notifications@codeplex.com> wrote:

From: kudzu

On 6/20/2011 3:18 PM, blackfireize wrote:
> Cosmos.Kernel.Heap.MemAlloc(512); Now, I was going to place in the
> destructor code that could free that memory (Obviously I never set the
> return of MemAlloc to a pointer but I could) I noticed however that in
> the COSMOS kernel under the Heap.cs file there is no code for MemFree
> and no comment to say wether or not its plugged. So...Is it? Also if its
> not. do I have to manipulate the kernel by hand to have MemFree or is it
> handled by the GC? Thanks.

We dont have a GC or any real memory management yet.

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com



I would love to help but I have had really bad problems with the dev kit. (I cant find out how to set it up! xD)

Jun 21, 2011 at 5:57 PM
Well, just ask here (or if you're going to develop cosmos, best to join mailinglist..).

Most common problems getting devkit installed:
+ No VS2010 Standard or up
+ Innosetup QuickStart pack is not installed (double check it's the quickstart pack you have)
+ VSSDK isn't installed

if you double-checked the above, please give the output of the install.bat

On Tue, Jun 21, 2011 at 6:29 PM, blackfireize <notifications@codeplex.com> wrote:

From: blackfireize

mterwoord wrote:
Blackfireize: why are you working on your own VFS, instead of joining our efforts? We almost have FAT working...


On Mon, Jun 20, 2011 at 9:49 PM, kudzu <notifications@codeplex.com> wrote:

From: kudzu

On 6/20/2011 3:18 PM, blackfireize wrote:
> Cosmos.Kernel.Heap.MemAlloc(512); Now, I was going to place in the
> destructor code that could free that memory (Obviously I never set the
> return of MemAlloc to a pointer but I could) I noticed however that in
> the COSMOS kernel under the Heap.cs file there is no code for MemFree
> and no comment to say wether or not its plugged. So...Is it? Also if its
> not. do I have to manipulate the kernel by hand to have MemFree or is it
> handled by the GC? Thanks.

We dont have a GC or any real memory management yet.

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com



I would love to help but I have had really bad problems with the dev kit. (I cant find out how to set it up! xD)

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jun 21, 2011 at 6:01 PM

Alright I'll give that a shot! Thank you very much!

Jun 22, 2011 at 12:25 AM

Hmm, after the dev-kit was installed, I attempted to run VS 2010 Pro with the debug option on the COSMOS project.

It generated an error box that said:

"A project with an output type of class library cannot be started directly."

I'm sure that I am doing something wrong. I just don't know what xD.

Jun 22, 2011 at 2:21 AM
On 6/21/2011 7:25 PM, blackfireize wrote:
> Hmm, after the dev-kit was installed, I attempted to run VS 2010 Pro
> with the debug option on the COSMOS project.

How did you install the dev kit?
Jun 22, 2011 at 2:48 AM
kudzu wrote:
On 6/21/2011 7:25 PM, blackfireize wrote:
> Hmm, after the dev-kit was installed, I attempted to run VS 2010 Pro
> with the debug option on the COSMOS project.

How did you install the dev kit?


Using the install.bat, it says there were no errors or warnings. Then it pauses on "Creating setup.exe" it runs the userkit installer and then it stops. I closed install.bat and opened the COSMOS project and it prompts me for a login to "tfs.codeplex.com" I just exited the login and attempted to compile and well...the error box. Lmao, I probably did alot of things wrong.

Jun 22, 2011 at 2:51 AM
> Using the install.bat, it says there were no errors or warnings. Then it
> pauses on "Creating setup.exe" it runs the userkit installer and then it
> stops. I closed install.bat and opened the COSMOS project and it prompts
> me for a login to "tfs.codeplex.com" I just exited the login and
> attempted to compile and well...the error box. Lmao, I probably did alot
> of things wrong.

Its sounds right. You didnt see any red text flash by as it ran? You
have inno quick pack and vs sdk 2010 sp1 installed right?

If so try running the bat file a second time. On fresh machines I've
noticed it needs to be run 2x the first time.
Jun 22, 2011 at 2:57 AM
Edited Jun 22, 2011 at 3:06 AM

Hmm, I tryed to run BuildAll.bat, and got some fun output xD 

3 Errors:

  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\VSSDK\Microsoft.V
sSDK.Common.targets(102,9): error MSB4066: The attribute "AfterTargets" in elem
ent <Target> is unrecognized.


  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\VSSDK\Microsoft.V
sSDK.Common.targets(102,9): error MSB4066: The attribute "AfterTargets" in elem
ent <Target> is unrecognized.


"C:\Users\Peter\Desktop\COSMOS\source\Cosmos.sln" (default target) (1) ->
(Build target) ->
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\VSSDK\Microsoft.V
sSDK.Common.targets(102,9): error MSB4066: The attribute "AfterTargets" in elem
ent <Target> is unrecognized.

Jun 22, 2011 at 3:17 AM
> I ran into this problem before though with the userkit it only ran when
> I put it into the VS2010 integrated shell and ran the project. I have no
> idea, I'll keep trying :)

You've uninstalled the old user kit right?
Jun 22, 2011 at 3:59 AM

Yep, Its strange the userkit works flawlessly now, but the COSMOS source woln't compile..

Jun 22, 2011 at 8:52 AM
You need to convert your kernel to the new project structure. Best to start by creating a new kernel, and put your code in there.

Kernels now consist of 2 projects, a class library and a .cosmos project.

On Wed, Jun 22, 2011 at 4:59 AM, blackfireize <notifications@codeplex.com> wrote:

From: blackfireize

Yep, Its strange the userkit works flawlessly now, but the COSMOS source woln't compile..

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com