Esempio n. 1
0
        public ProfilerForm()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            _stackBack = new Stack();
            _stackForward = new Stack();
            _p = new Profiler();
            //_p.ProcessCompleted += new Profiler.ProcessCompletedHandler( OnProfileComplete );
            _p.Error += new Profiler.ErrorHandler( OnError );
            _piInitialProject = null;
        }
Esempio n. 2
0
        public ProfilerForm()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            _stackBack = new Stack();
            _stackForward = new Stack();
            _p = new Profiler();
            //_p.ProcessCompleted += new Profiler.ProcessCompletedHandler( OnProfileComplete );
            _p.Error += new Profiler.ErrorHandler( OnError );
            _piInitialProject = null;

            string strDirectory = Path.GetDirectoryName( Assembly.GetExecutingAssembly().Location );
            string strDLL = Path.Combine( strDirectory, "msvcr70.dll" );
            if ( LoadLibrary( strDLL ) == 0 )
                throw new Win32Exception( Marshal.GetLastWin32Error(), "Failed to load msvcr10.dll" );
        }