Hi everyone!
My plugin have problem in chrome, but not have in Firefox and Opera.

When NPN_Evaluate return 0.

Code:
NPString str = { 0 };
str.UTF8Characters = "alert(\"success?\")";
str.UTF8Length = strlen(str.UTF8Characters);

NPN_Evaluate(m_Npp, &window, &str,  NULL))
It's code crash Chrome, and i have replaced it on:

Code:
NPString str = { 0 };
	 
str.UTF8Characters = "alert(\"success?\")";
str.UTF8Length = strlen(str.UTF8Characters);

NPObject window;

NPN_GetValue(m_Npp, NPNVWindowNPObject, &window);
	
if(NPN_Evaluate(m_Npp, &window, &str, &result))
          NPN_ReleaseVariantValue(&result);
And it's code not crash Chrome, but NPN_Evaluate return false, and alert not run...

Please help me)