I have a method
public void splitXmlFile()
{
string[] line = Regex.Split(inputText.Text, "\n+");
progressStt.Maximum = line.Length;
progressStt.Step = 1;
foreach (string q in line)
{
progressStt.performStep();
if (Regex.IsMatch(q, "<[^>]*>"))
{
if (Regex.IsMatch(Regex.Split(q, "<[^>]*>")[0], @"\s"))
{
}
string[] gettag = Regex.Split(q, "(<.*?>)|(.+?(?=<|$))");
foreach (var gettag1 in gettag)
{
if (Regex.IsMatch(gettag1, "<[^>]*>"))
{
}
else
{
if (Regex.IsMatch(gettag1, @"\w"))
listXml.Add(gettag1);
}
}
}
else
{
if (Regex.IsMatch(q, @"\w"))
listXml.Add(q);
}
}
progressStt.Value = 0;
}
Create new thread:
Thread t1= new Thread(new ThreadStart(splitXmlFile)); t1.Start();
But when i start i had i exception in line:
string[] line = Regex.Split(inputText.Text, "\n+");
I think it can come in:
progressStt.Maximum = line.Length;
progressStt.Step = 1;
progressStt.performStep();
progressStt.Value = 0;
I can't fix it's, What should i do??