View Single Post
Old 05-03-2012, 11:38 PM   #50
jnif
Human being with feelings
 
jnif's Avatar
 
Join Date: Dec 2008
Posts: 2,111
Default

Quote:
Originally Posted by hopi View Post
please refer to this thread also... since it seems part of these very repeatable crashes:




I get them when running almost any of jnif's newest scripts... this did not used to happen a few versions of jnif scripts back with a few versions of reaper back as well.

[IMG]http://img823.**************/img823/6508/reapercrashlogscreen.jpg[/IMG]



Now also, shortly before that reaper crash, while trying to run one or more of the jnif py scripts, I now get this:

[IMG]http://img268.**************/img268/879/pycreatemultierror.jpg[/IMG]

jnif thinks it's something to do with the undo history ?????
I'm trying to guess here what could have caused this error in Playlist Scripts. One suspicious part of code is in config var reading functions.
Could someone check if this code is correct:
Code:
def getEnvAttach():
	offset = RPR_projectconfig_var_getoffs("envattach", 0)[0]
	var=RPR_projectconfig_var_addr(RPR_EnumProjects(-1, "", 0), offset)
	p=rpr_packp('void*',var)
	pp=cast(p, POINTER(c_int))
	return pp.contents.value
Is it OK to use rpr_packp outside reaper_python.py?
Is the cast done right?

jnif
jnif is offline   Reply With Quote