private void loadELFFileToolStripMenuItem_Click(object sender, EventArgs e) { try { OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.Filter = "ELF Files|*.elf"; openFileDialog1.Title = "Select a File"; if (openFileDialog1.ShowDialog() == DialogResult.OK) { string fileName = openFileDialog1.FileName; byte[] fileBytes = File.ReadAllBytes(fileName); if (OrbisDbg.InjectELF(fileBytes, fileBytes.Length) == 0) { string message = "Orbis Debugger could not load the selected ELF\n" + "Please make sure you are attached to the desired process"; MessageBox.Show(message, "Error Loading ELF"); } } } catch (Exception) { MessageBox.Show("Unable to open File Dialog"); } }