XScriptNG random issue

Help each other out

XScriptNG random issue

Postby VRS-1 on Wed Mar 21, 2007 4:39 pm

Hello!

I've got a strange one for ye -- especially if you've been using XScriptNG for a long time. I'm using C# scripts, and every so often (fairly often, but NOT repeatable), I get a "Input String was not in a correct format" error message that pops up. Now I don't expect anyone to debug my code, but to give you an idea of the strangeness:

1) - This only happens under WinXP, and never under WinMCE

2) - It happens running the same script with the same parameter. For instance, I have a script running at startup with the parameter "fullvidoff". About half the time it starts up to the menu without the error message, and the other half with it. ??

Has anyone seen anything similar to this? Is anyone aware of a difference between MCE and XP that would affect how C# scripts are run? Everything was functioning so beautifully under MCE... :cry:

Ah well -- any insights or random comments would be greatly appreciated. I really don't want to switch to MCE on all computers in question...

Thanks,

-VRS
VRS-1
 
Posts: 13
Joined: Wed Jan 03, 2007 5:32 pm

Postby tswhite70 on Wed Mar 21, 2007 6:00 pm

I haven't seen anything like that on XP and can't really imagine any .NET difference between XP & MCE that would be causing you issues. "Input string" doesn't neccessarily mean the parameter you're passing to the script - it only means that some fuction in the code doesn't like what "it" is getting as input. Not having any idea what your code is doing or how it is doing it my only suggestion is to put a Try\Catch block around the part of code you think is the culprit and then output your variables, stacktrace, etc and see if you can figure it out.

goo luck,
tsw
tswhite70
 
Posts: 318
Joined: Tue Jan 06, 2004 3:44 pm
Location: Houston, Tx