Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread.start enforces calling method with one argument #24893

Closed
Norrox opened this issue Jan 10, 2019 · 2 comments
Closed

Thread.start enforces calling method with one argument #24893

Norrox opened this issue Jan 10, 2019 · 2 comments

Comments

@Norrox
Copy link
Contributor

Norrox commented Jan 10, 2019

Godot version:
Godot 3.1 Beta 1

Issue description:
Is the function you are calling with myThread.start(self, "MyThreadFunc") supposed to always need an argument ? the thread wont start unless i provide the MyThreadFunc with one, even tho i'm not passing anything to it ?

996dcd1afe97b8bc00ee6ad330edf001

threadExample.zip

@ghost
Copy link

ghost commented Jan 11, 2019

Can confirm

ERROR: _start_func: Could not call function 'MyFirstThreadFunc'' starting thread ID: 5 Reason: Too Many Arguments
   At: core/bind/core_bind.cpp:2436.

@akien-mga akien-mga changed the title Thread calling method Thread.start enforces calling method with one argument Jan 11, 2019
@timoschwarzer
Copy link
Contributor

Duplicate of #9924

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants