--- In [email protected], "Sheri" <sheri...@...> wrote: > Regrettably, although comPluginDemoScriptFileSysObjDotSyntaxForEach.powerpro > runs fine, use of the service > local sDesc = appref.get_object_description("f") and > local sDesc = appref.get_object_description("fdn") > > crash Powerpro is my script (and leave powerpro entries in task manager > process)
That's kinda hard to debug without being able to create your appref. Got any other scripts you can try it on? I'll try both get_object_description and unicode stuff on all my other sample scripts when I get around to it. > > > myselect.contents continues to debug as ANSI despite enabling > > > unicode returns, and any high characters show as question marks. > > Still? > > Yes, still fails. Also unicode arguments still fail. Haven't tried ansi > arguments with this one. Try comPlugin0.72_091202_2.zip in usual place. Might have fixed unicode returns. Also you can try dispensing with *_typed services: this version of plugin should figure out the type of each parameter all by itself, providing it ain;t anything weird (e.g. it will find BSTRs and BOOLs just fine, but will punt on e.g. user-defined VARIANT type. > > Yeah, misunderstood. But try this; > > > > local xvec = funcTest() > > win.debug(xVec[0], "length: ", xVec.length, "exists: ", xVec.exists) > > quit > > > > Function funcTest() > > local bVec = vec.create(50) > > bVec[0] = "23" > > quit(bVec) > > > > Same problem, yeah? If so, take it up with Bruce: he may be able > > to prevent locals from getting deleated if they're mentioned in a > > quit statement. This works okay: Function funcTest() local bVec = vec.create(50) bVec[0] = "23" bVec = bVec.localcopy quit(bVec) _but_ the caller will have to explictly destroy the handle it receives back, cause it's marked as a local copy, and will not go poouf on exit from caling function.
