Lua:attempt to call method ' XXXX ' (a nil value)

Source: Internet
Author: User
Tags lua

Just touch lua, blind.

Background: The project I took over was followed by someone else doing 90% things to continue, using the Cocos2d-x engine to invoke LUA resources from C + +.

When calling the class method, the error attempt to the call method ' XXXX ' (a nil value), the written format is not a problem, the class object is not a null value, but is not to find the method of this class, decode always reported that the method pointer is empty.

Later consult Gao, just know originally is Tolua generated interface file does not open this method interface. Dizzy Oh ~ ~ ~ In this interface file Add method interface is good. This interface file should be able to be generated automatically, I did not check the Tolua use method.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.