Hi, thanks for the suggestion.
I have actually reset all the values (included "stopProcess = false;")
each time a Import is started.
Every Import process will start from this
void ImportFromTextReaderStream(TextReader tr, FileInfo fileInfo)
I reset all values inside this method:
stopProcess = false;
_lastError = null;
timeStart = DateTime.Now;
_currentBytes = 0L;
_sbImport = new StringBuilder();
_mySqlScript = new MySqlScript(Command.Connection);
currentProcess = ProcessType.Import;
processCompletionType = ProcessEndType.Complete;
_delimiter = ";";
if (ImportProgressChanged != null)
if (ImportInfo.TargetDatabase.Length > 0)
"stopProcess = false" is reset every time before an Import started.
Is this good enough to fix your problem?
If this is not good enough to meet your requirement,
then can you share with me why you need to reset "stopProcess = false" at "ReportEndProcess"?