Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1

    Default C# process problem


    gud day to all of you uhm i have a question is it possible to merge two the same process names i tried to manipulate them using systems diagnostics but it's no use i can only get the names not entirely merging them

  2. #2
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    Quote Originally Posted by yondaime_kirlox View Post
    gud day to all of you uhm i have a question is it possible to merge two the same process names i tried to manipulate them using systems diagnostics but it's no use i can only get the names not entirely merging them
    what do you mean by merning two process names "entirely"?

    Did you mean by having like this

    MyProcess P1 = new MyProcess();
    MyProcess P2 = new MyProcess()

    P1.CollectFiles()
    P2.PrintFiles(P1)
    so instead of having that you wanted to run it as one? like

    MyProcess.CollectFiles().PrintFiles()
    Traditional Win32 Processes, is a set of resources, with at least 1 thread use by a running application. Failure one process does not affect the functioning of another process not unless they are connected (which you are trying to join?)

  3. #3
    Quote Originally Posted by MarkCuering View Post
    what do you mean by merning two process names "entirely"?

    Did you mean by having like this


    so instead of having that you wanted to run it as one? like



    Traditional Win32 Processes, is a set of resources, with at least 1 thread use by a running application. Failure one process does not affect the functioning of another process not unless they are connected (which you are trying to join?)

    For example:

    ive got a process name paint.exe in my task manager, then i run again a paint.exe process eventually in the task manager it will have two paint.exes right? how can i merge their process names? any suggestion thanks for the advice, in the last post i aprreciate it

  4. #4
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    Quote Originally Posted by yondaime_kirlox View Post
    For example:

    ive got a process name paint.exe in my task manager, then i run again a paint.exe process eventually in the task manager it will have two paint.exes right? how can i merge their process names? any suggestion thanks for the advice, in the last post i aprreciate it
    What's the reason why you want to merge? you want to merge but still allows to run more than one application? or you only want to run 1 paint program at a time? thus, disallowing any paint program to spawn if there is a pain program currently running.

    Windows process all have different PID, Allocated Memory, CPU Time (preempted), etc... but possible to have more than one Image Name or Application name, since a program can start another program, or spawn another process.

    take a look at Process Explorer from sysinternals, they can group same image name, eg. if you want to open 10 Paint application, you will only see a group box name "paint" yet, you can still pull it down to view its different pID's and more...

  5. #5
    Quote Originally Posted by MarkCuering View Post
    What's the reason why you want to merge? you want to merge but still allows to run more than one application? or you only want to run 1 paint program at a time? thus, disallowing any paint program to spawn if there is a pain program currently running.

    Windows process all have different PID, Allocated Memory, CPU Time (preempted), etc... but possible to have more than one Image Name or Application name, since a program can start another program, or spawn another process.

    take a look at Process Explorer from sysinternals, they can group same image name, eg. if you want to open 10 Paint application, you will only see a group box name "paint" yet, you can still pull it down to view its different pID's and more...

    Gud day!i tried sysinternals yet it cannot group the same process names.what will i do now?i mean do you have other suggestions?thank you.

  6. #6
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    gumawa ka nlng bro, tapos put ur process into dictionary, map the duplicate items.

  7. #7
    Quote Originally Posted by yondaime_kirlox View Post
    Gud day!i tried sysinternals yet it cannot group the same process names.what will i do now?i mean do you have other suggestions?thank you.
    I think you can't do that.

    Have you tried reading processes on an OS?

    As far as I know, every process has unique process ID(PID). Even you have execute two paint.exe, they had different PID's.
    Last edited by eax; 12-07-2009 at 07:57 PM.

  8. #8
    Quote Originally Posted by eax View Post
    I think you can't do that.

    Have you tried reading processes on an OS?

    As far as I know, every process has unique process ID(PID). Even you have execute two paint.exe, they had different PID's.



    but can i represent them into one like for example if there are two instances or more can I group them? or somewhat like a representation of the two the same process names? is it doable?

  9. #9
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    Quote Originally Posted by yondaime_kirlox View Post
    but can i represent them into one like for example if there are two instances or more can I group them? or somewhat like a representation of the two the same process names? is it doable?

    as far as presentation concerns, YES. Handle them via process name attribute.

  10. #10
    I think this is possible, observe what happen with Google chrome...

    they implement a Parent and Child concept...
    everything on the process is a child but there is 1 parent having an access to all attributes to all childs, attached or detached...

    for your application, at first execution, a parent and a child instance already created, at second execution a new child will just associate...

  11.    Advertisement

Page 1 of 2 12 LastLast

Similar Threads

 
  1. Replies: 8
    Last Post: 11-13-2012, 11:15 PM
  2. For Hire: birth Certificate Problems ? We can Help and process
    By philipzire in forum Specialty Services
    Replies: 33
    Last Post: 12-07-2011, 06:43 AM
  3. For Hire: process of birth certificate problem(error)
    By baseoverhaulshop in forum Specialty Services
    Replies: 8
    Last Post: 04-23-2011, 03:03 PM
  4. For Hire: problems with your birth certificate ? we can help & process?
    By philipzire in forum Everything Else...
    Replies: 13
    Last Post: 10-30-2008, 09:45 AM
  5. Generic host process for win32 problem
    By chillax in forum Software & Games (Old)
    Replies: 2
    Last Post: 04-18-2007, 07:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top