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

Issue creating a MemoryBlock based on a size #31

Closed
dobo365 opened this issue Aug 16, 2016 · 2 comments
Closed

Issue creating a MemoryBlock based on a size #31

dobo365 opened this issue Aug 16, 2016 · 2 comments

Comments

@dobo365
Copy link

dobo365 commented Aug 16, 2016

Hi atom,
getting error messages (sometimes crash) when trying to create a MemoryBlock of a given size...
I tried in a function within a method, in a method and just in the console. Same stuff.
Using last version 5.4.2 x64.
Thx for looking at this when you have time...

>>> mbTiti=MemoryBlock(10,true)
ERROR: No matching overload found, candidates:
void __init(luabind::argument const&,String const&)
void __init(luabind::argument const&,luabind::object const&)
void __init(luabind::argument const&,JMemoryBlock const&)
void __init(luabind::argument const&,custom [unsigned __int64] const,bool)
void __init(luabind::argument const&)

>>> mbTiti=MemoryBlock(10,1)
ERROR: No matching overload found, candidates:
void __init(luabind::argument const&,String const&)
void __init(luabind::argument const&,luabind::object const&)
void __init(luabind::argument const&,JMemoryBlock const&)
void __init(luabind::argument const&,custom [unsigned __int64] const,bool)
void __init(luabind::argument const&)

>>> mbTiti=MemoryBlock(10,0)
ERROR: No matching overload found, candidates:
void __init(luabind::argument const&,String const&)
void __init(luabind::argument const&,luabind::object const&)
void __init(luabind::argument const&,JMemoryBlock const&)
void __init(luabind::argument const&,custom [unsigned __int64] const,bool)
void __init(luabind::argument const&)
@RomanKubiak
Copy link
Owner

You can always try:
v=MemoryBlock()
v:setSize(33,false)
console("size: "..v:getSize())

but i'll check why the constructor is failing.

@dobo365
Copy link
Author

dobo365 commented Jan 12, 2019 via email

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

No branches or pull requests

2 participants