Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Xifos

Member Since 19 May 2013
Offline Last Active Oct 06 2014 10:52 AM

Topics I've Started

Memory leak in virtual properties

30 June 2013 - 05:24 AM

First of all, thanks for creating such wonderfull library. When adding a virtual property in a class IE:

    int mInt
    {
        get
        {
            return 0;
        }
    }

visual studio 2012 detects a memory leak on the following new statement:

asCParser::ParseVirtualPropertyDecl() => asCParser::SuperficiallyParseStatementBlock() => asCParser::CreateNode(eScriptNode type)

 

I am using the latest version (angelscript 2.26.3)
.

Thanks


Most secure authentication system ever

21 May 2013 - 05:00 AM

Saw this thing of beauty in the javascript on a website I have to maintain, it shouldn't need any explanation smile.png

	

    function submitentry()
    {
            password = document.password1.password2.value.toLowerCase()
            username = document.password1.username2.value.toLowerCase()
            passcode = 1
            usercode = 1
            for(i = 0; i < password.length; i++)
            {
                    passcode *= password.charCodeAt(i);
            }
            for(x = 0; x < username.length; x++)
            {
                    usercode *= username.charCodeAt(x);
            }
            if(usercode==17094266689500000 && passcode==5.69355164929536e+25)
            {
                    window.location=password+".html"
            }
            else
            {
                    alert("You used the wrong credentials.")
            }
    }


 


PARTNERS