Page 1 of 1

V4 - Ventuz Closed With C# Script

Posted: 26 May 2015, 12:09
by MrTompkins
Hello Ventuzians,
I have a "small" problem with my C# script which I don't want to share yet.
I'm sure it's my fault why it's not working and I want to find the mistake by myself BUT
I want to know from you guys why Ventuz is closing automatically.

There must be a log file which tells me why Ventuz shut down completely and asked me to "debug/close program".
I hope someone can help me.

I will share the script in case I don't find a solution and maybe someone can explain me what I wrote wrong.
Btw the script is working fine and shows no error...only Ventuz doesn't want to work anymore after 10-90 minutes.
I tested it couple of times, just opened the scene and kept running it in the background.

Note:
I'm using now the latest version and used before 4.04.01. It doesn't matter which version...same problem.

thx for help

Re: V4 - Ventuz Closed With C# Script

Posted: 26 May 2015, 18:13
by lerou
Hi,

make sure to catch all exceptions in your code. If you don't, you can crash Ventuz. I don't know what you're doing, but many C# API methods throw exceptions for common errors (like listing a directory with an invalid path). Make sure you're code is exception safe. Especially with accessing external resources from code you may get that behavior - crashes after an undefined time.

rou