i've pm'd Worm on this one as it's his plugin, but thought i'd ask here if anyone else has encountered this.....
i'm using Worms plugin to run a commandline tool that has 3 sets of parameters, i built the associated script i use with this tool in a seperate test application, then transfered it into my main project... so i know it works.
when i transferred it to the main project, it was in the OnClick event for one of the buttons (same as the test app).... and it failed spectacularly
so, i started going through what i did wrong transferring it in, did i change something, had i messed up and placed it in the middle of another block of code by mistake.... nope, i could see nothing wrong.
so, out of desperation, and in the hope of trying to work out what was clashing or stopping it from working, i moved the block of code in question to the OnStartup section.... low and behold it worked like a charm, ok... baffled i proceeded to turn off things like timers, disable plugins etc etc in the hope of finding the problem..... no good
Then.... by mistake i closed the main project without saving it, no problem, as all i was playing with was this one block of code...
so i placed it back in the OnStartup section, but... this time i placed it at the end of the script, and once again it failed
hhhmmm ... it turned out that the Folder.Create function seems to kill the RunSilent plugin...
place the RunSilent.Exec call before this section of my code and it works, place it directly after it and it fails
i disabled the Math.Random line and gave the nRandom variable a set value, and the RunSilent script still failed, disable the Folder.Create line and the RunSilent script works perfectly
i've also tested this by taking Worm's basic example apz and adding
Folder.Create(_TempFolder.. "\\Blah");
in front of his code, and sure enough it fails :(
anyone seen this before ?
i'm using Worms plugin to run a commandline tool that has 3 sets of parameters, i built the associated script i use with this tool in a seperate test application, then transfered it into my main project... so i know it works.
when i transferred it to the main project, it was in the OnClick event for one of the buttons (same as the test app).... and it failed spectacularly
so, i started going through what i did wrong transferring it in, did i change something, had i messed up and placed it in the middle of another block of code by mistake.... nope, i could see nothing wrong.
so, out of desperation, and in the hope of trying to work out what was clashing or stopping it from working, i moved the block of code in question to the OnStartup section.... low and behold it worked like a charm, ok... baffled i proceeded to turn off things like timers, disable plugins etc etc in the hope of finding the problem..... no good
Then.... by mistake i closed the main project without saving it, no problem, as all i was playing with was this one block of code...
so i placed it back in the OnStartup section, but... this time i placed it at the end of the script, and once again it failed
hhhmmm ... it turned out that the Folder.Create function seems to kill the RunSilent plugin...
place the RunSilent.Exec call before this section of my code and it works, place it directly after it and it fails
Code:
--- Generate a random number -- nRandom = Math.Random(1000000000); --- Create a temp folder in the user's Temp directory for decrypted files -- Folder.Create(_TempFolder.. "\\"..nRandom);
i've also tested this by taking Worm's basic example apz and adding
Folder.Create(_TempFolder.. "\\Blah");
in front of his code, and sure enough it fails :(
anyone seen this before ?
Comment