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

handle properties using DESCKIND_VARDESC (e.g. StdFont) #1

Open
davidm opened this issue Mar 13, 2011 · 0 comments
Open

handle properties using DESCKIND_VARDESC (e.g. StdFont) #1

davidm opened this issue Mar 13, 2011 · 0 comments

Comments

@davidm
Copy link
Owner

davidm commented Mar 13, 2011

This fails:

std=luacom.createobject("StdFont")
std.Name="Arial"
std.Size=26
Object.Font=std

Reported by Pablo Garcia. See http://lua-users.org/lists/lua-l/2010-12/msg00009.html :

The failure in your example seems to be a problem in LuaCOM. Here,
IDispatch::Invoke [1] with DISPATCH_PROPERTYPUT in tLuaCOM::call is
failing with error DISP_E_BADPARAMCOUNT. The reason is that
DISPPARAMS [2] is not being properly initialized because the
ITypeComp::Bind in tLuaCOM::getFUNCDESC is not returning a
DESCKIND_FUNCDESC but rather a DESCKIND_VARDESC, which we currently
are not handling. It's not clear to me why the type info of many
"properties" apparently are methods (FUNCDESC's), while others like in
StdFont are variables (VARDESC's), but we'll probably need to handle
this.

moteus referenced this issue in moteus/luacom Sep 29, 2016
Dont´ use undefined "g_NULL"
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

1 participant