Hi Fujiy,
I run SV bot and when bot crash abnormal due to offline-detection from bot activate or other thing else.
Co Speed will cause quit it's self also.
I think some process may be waiting or null return such as,
COSpeed.COSpeed.ReadProcessMemory(IntPtr, IntPtr, Byte[], UInt32, IntPtr&) : Int32
COSpeed.COSpeed.ReadProcessMemoryLite(IntPtr, UInt32, Int32&) : Byte[]
COSpeed.COSpeed.WriteProcessMemory(IntPtr, IntPtr, Byte[], UInt32, IntPtr&) : Int32
That is kernel32.dll process. May be need to handle error when can't read/write process memory.
I found in some instance when I run speed hack ON for all and start new CO2. It's cause new CO crash due to timer1_tick check memory.
private void timer1_Tick(object sender, EventArgs e)
{
this.ReadProcess = Process.GetProcessesByName("Conquer");
if (this.ReadProcess.Length > 0)
{
if (this.ReadProcess.Length != this.chars.Items.Count)
{
this.refreshButton_Click(new object(), new EventArgs());
}
if (this.chars.GetSelected(this.x) || this.selecionartodos.Checked)
{
IntPtr lpNumberOfBytesWrite;
this.m_hProcess = OpenProcess(0x38, 1, (uint) this.ReadProcess[this.x].Id);
this.buffer[0] = 0x80;
WriteProcessMemory(this.m_hProcess, (IntPtr) 0x512066, this.buffer, 4, out lpNumberOfBytesWrite);
}
this.x = (this.x + 1) % this.ReadProcess.Length;
}
}
and from your coding, Maximum CO2 can play is 15 ,right?