Пример #1
0
        public void LoadChildren()
        {
            if (m_childrenLoaded)
            {
                return;
            }

            //
            // Load modules.
            //
            Nodes.Clear();
            try
            {
                using (Native.ModuleEnumeration pe =
                           new Native.ModuleEnumeration(m_processId))
                {
                    Native.ModuleInfo info = new Native.ModuleInfo();

                    while (pe.NextItem(ref info))
                    {
                        Nodes.Add(new ModuleNode(new Module(info)));
                    }
                }
            }
            catch (Exception x)
            {
                Nodes.Add(new ErrorNode(x.Message));
            }
            m_childrenLoaded = true;
        }
Пример #2
0
        public void LoadChildren()
        {
            if (m_childrenLoaded)
            {
                return;
            }

            //
            // Load modules.
            //
            Nodes.Clear();
            try
            {
                using (Native.ModuleEnumeration pe =
                    new Native.ModuleEnumeration(m_processId))
                {
                    Native.ModuleInfo info = new Native.ModuleInfo();

                    while (pe.NextItem(ref info))
                    {
                        Nodes.Add(new ModuleNode(new Module(info)));
                    }
                }
            }
            catch (Exception x)
            {
                Nodes.Add(new ErrorNode(x.Message));
            }
            m_childrenLoaded = true;
        }