I am using a simple NPAPI example from https://github.com/mikma/npsimple. When I try to pass arguments from javascript to the NPAPI invoke function, the parameters recieved by the NPAPI function is garbage, though argument count is passed correctly. Following is the function where I am trying to print "args" array after converting them to char* invoke(NPObject* obj, NPIdentifier methodName, const NPVariant *args, uint32_t argCount, NPVariant *result) Am I missing something here?