[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Passing binary data to dll
- From: "Robert G. Jakabosky" <bobby@...>
- Date: Tue, 14 Aug 2012 23:12:18 -0700
On Tuesday 14, Digital wrote:
> PS when I run it as "somevar*:*testfunc(data)" it says "string expected,
> got table".
I was trying to make sure that the userdata value wasn't coming from
"somevar". Since your C function only takes one parameter it should be called
using a "." instead of ":". You need to find out where the userdata value is
coming from "data" shouldn't be a userdata value.
For debugging you can check the type of "data" before calling "testfunc" with
this:
print("type(data) == ", type(data))
--
Robert G. Jakabosky