
Finding out number of threads or number of open windows in the app
This is what I had to do:
NumThreads Signed
J Signed
W1 &Window
W2 &Window
! check to see that no other procedures are running
SetTarget(,1) !main window
W1 &= System{PROP:Target}
NumThreads = 1 !counts as one
! loop thru to see how many threads are active
loop J = 2 to 64
SetTarget(,J)
W2 &= System{PROP:Target}
if not W2 &= W1 !if it's not the same as the main window
NumThreads += 1
end
end !loop
SetTarget() !restore the current thread
HTH,
Lisa Daugherty
Quote:
> How can I find out the number of threads that are currently running in
> the app? Or alternatively, how can I find out how many windows it has
> open? This is C55 PE patch G.
> Thanks,
> ----------------------------------------------------------------
> Steve and Roberta Rothkin
> Dancemasters Disc Jockey Entertainers--WE MAKE YOUR PARTY FUN!
> 22A Hawkes Close
> Ossining, NY 10562
> Voice: (914) 762-4565
> Fax: (914) 762-4566
> World Wide Web: http://www.dancemasters.net
> Member American Disc Jockey Association