Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your feedback on a survey! Each completed response supports our community and gives you a chance to win a $25 Amazon gift card!


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