Results 1 to 3 of 3

Thread: calling same function before it done...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    431

    calling same function before it done...

    Just wondering if this is possible, ex:

    mainfunction, function1, function2, function3, function4

    mainfunction calls function1, which calls 2, which calls 3, which calls 4.

    This chain of event can take a long time... is it possible to have mainfunction start function1 (lets say) three times with 3 different sets of data. Once the first one of those 3 ends, it re-start function1 with a new set of data.... it would basically loop thru all of this data until done.

    Dont know if this falls in multi threaded or not. I suppose this could be done with a array of a class, but then again, you run into the same problem as telling the code to "continue"....

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: calling same function before it done...

    You may compile your functions into a class and then using timer create new instance of a class that will do what you want.
    Timer allows asynchronous execution which is what you want I think.
    Compiling a dll based on that class could even be better.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    431

    Re: calling same function before it done...

    how does a timer allows asynchronous?

    either way, if this is possible, then that is good news... I might need this down the road...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width