Results 1 to 3 of 3

Thread: MultiTasking

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    2

    Cool

    Hi everyone,

    I'm trying to make an application that will be able to perform few tasks in the same time. To keep it simple, let's say filling 2 listboxes with 10000 items each. Since filling them will take time, I'd like them bote to be filled the same time. I tried using timers with the DoEvents command which each one called a procedure for filling one listbox. But, when the second timer is activated, filling of the first listbox is paused until filling of the second listbox is completed, and then filling of the first one is resumed.
    Anyway to make it work ? Any other ideas ?

    Thanks
    Ben

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Why don't you fill them in the same procedure? I see multithreading can be done under vb7 but i'm not sure if it can be done with timer events, possibly if one of them triggers the other in some way
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Addicted Member
    Join Date
    Jan 2000
    Location
    BC, Canada
    Posts
    142
    I was facing multithread problem in VB before, What I did is to use ActiveX exe to fire another process to perform multithread. This might be overkilling but it worked fine for me.

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