It is currently January 21st, 2018, 10:20 am


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Error when building 0.615
PostPosted: February 3rd, 2012, 5:57 pm 

Joined: May 26th, 2011, 2:15 pm
Posts: 279
After the 0.615 release, I've moved all my mods and such over to the new files, and when I build it, it gives an error which shouldn't have anything with what I've touched to do!
This is the error:

Cannot take the address of, get the size of, or declare a pointer to a managed type ('System.RuntimeTypeHandle') (...)\fCraft\Utils\ExtensionMethods.cs
Line: 588
Column: 34


I clicked it:
Code:
        public static int SizeOf( Type type ) {
            if( type.IsValueType ) {
                return System.Runtime.InteropServices.Marshal.SizeOf( type );
            } else {
                RuntimeTypeHandle th = type.TypeHandle;
                return *(*(int**)&th + 1);


The blue wiggly line is under "&th" in "return *(*(int**)&th + 1);"

What is this?


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Error when building 0.615
PostPosted: February 3rd, 2012, 6:43 pm 
fCraft Developer
User avatar

Joined: May 21st, 2011, 10:53 pm
Posts: 1386
That's a debugging method that works with .NET 3.5 / VisualStudio 2008. You are trying to build for .NET 4.0 / VisualStudio 2010, so you can just comment that part out.


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net