Notifications
Clear all

[Closed] SME – Error during garbage collection

I was doing some very simple stuff with the Slate Material Editor:


sme.Open()
aview=sme.GetView sme.activeView
aview.CreateNode var_bitmaptexture [0,0]

This worked fine, but caused a very consistant “unexpected error during garbage collection” if I opened a new scene after running it. The error went away after changing it to this:


sme.Open()
(sme.GetView sme.activeView).CreateNode var_bitmaptexture [0,0]

presumably because I removed the local variable “aview” that must have been involved in the GC-problem, although I can’t explain why it should cause problems?

I don’t need a fix because it works fine now, just thought I’d post it in case someone experiences something similar (or someone can explain why it happened).