示例#1
0
        private void iWizard_WizardClosedFromFinish(SymbianWizardLib.Engine.SymWizardClosureEvent aEventArgs)
        {
            string errorText = string.Empty;
            bool   isReady   = iPG_DebugEngine_Control.IsReadyToPrime(out errorText);

            if (isReady)
            {
                // Prime debug engine
                iPG_DebugEngine_Control.Prime();

                // Store the settings at this point as we are largely past the
                // initial configuration
                iPlugin.Settings.Store();

                // Also save debug engine configuration
                iPG_DebugEngine_Control.XmlSettingsSave();

                // Read NICD trace file
                string fileName = iFB_NICD_Trace.EntityName;
                CrashDebuggerUiLib.Dialogs.ParserProgressDialog.Read(iPlugin.CrashDebuggerInfo, fileName);

                DialogResult = DialogResult.OK;
            }
            else
            {
                MessageBox.Show(errorText, "Error");
                aEventArgs.CancelClosure = true;
            }
        }
        private void iWizard_WizardClosedFromFinish(SymbianWizardLib.Engine.SymWizardClosureEvent aEventArgs)
        {
            string errorText = string.Empty;
            bool   isReady   = iPG_DebugEngine_Control.IsReadyToPrime(out errorText);

            if (isReady)
            {
                // Create new engine with (optionally) any new prefix values
                iEngine.StackEngine.Prefixes.SetCustomPointer(iTB_PrefixCurrentStackPointer.Text);
                iEngine.StackEngine.Prefixes.SetCustomCodeSegment(iTB_PrefixCodeSegment.Text);
                iEngine.StackEngine.AddressInfo.Pointer = 0;

                // Check current stack pointer address is valid...
                long   currentStackAddress     = 0;
                string currentStackAddressText = iTB_CurrentStackPointerAddress.Text.Trim();
                NumberBaseUtils.TNumberBase numberBase;
                if (NumberBaseUtils.TextToDecimalNumber(ref currentStackAddressText, out currentStackAddress, out numberBase))
                {
                    iEngine.StackEngine.AddressInfo.Pointer = System.Convert.ToUInt32(currentStackAddress);
                }

                // Prime stack engine content
                iEngine.StackEngine.Primer.Prime(iTB_RawStackData.Lines);

                // If we still haven't obtained the stack pointer, then use the base address
                if (iEngine.StackEngine.AddressInfo.Pointer == 0)
                {
                    iEngine.StackEngine.AddressInfo.Pointer = iEngine.StackEngine.AddressInfo.Top;
                }

                // Prime debug engine
                iPG_DebugEngine_Control.Prime();

                // Store the settings at this point as we are largely past the
                // initial configuration
                iEngine.Settings.Store();

                // Also save debug engine configuration
                iPG_DebugEngine_Control.XmlSettingsSave();

                DialogResult = DialogResult.OK;
            }
            else
            {
                MessageBox.Show(errorText, "Error");
                aEventArgs.CancelClosure = true;
            }
        }
示例#3
0
 private void iWizard_WizardClosedFromFinish(SymbianWizardLib.Engine.SymWizardClosureEvent aEventArgs)
 {
     DialogResult = DialogResult.OK;
 }