public void WriteOutput(string output)
{
try {
if(this.IsDisposed || !this.IsHandleCreated || this._isDisposed) {
return;
}
Invoke((Action)(() => {
if(this.IsDisposed || !this.IsHandleCreated || this._isDisposed) {
return;
}
if(string.IsNullOrEmpty(lastInput) == false &&
(output == lastInput || output.Replace("\r\n", "") == lastInput))
return;
this.OutputProcessor.Process(output);
Imports.SendMessage(richTextBoxConsole.Handle, Imports.WmVscroll, Imports.SbBottom, 0x0);
}));
} catch(ObjectDisposedException odex) {
// I don't know why it keeps throwing this but it does.
}
}