Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Seeking advice on OnScreenDisplay
#5
Dear Gintaras,

I have analysed the situation, but I still have some difficulty in formulating a smart solution. Specifically :

osd_close :

Code:
Copy      Help
int h
if(len(osdid))
    h=win(osdid "QM_OSD_Class")
    if(h) clo h; err
else
    rep
        h=win("" "QM_OSD_Class")
        if(!h) break
        clo h; err

should wait before exiting, namely after statement
Code:
Copy      Help
if(h) clo h; err


for OSD_Main to cnclude the execution of the relevant thread, before entering into a new one, indeed with the same name. Therefore, OSD_Main, right after MessageLoop, it should send a message to OSD_Main for the relevant thread :

Code:
Copy      Help
v.created=1
MessageLoop
err+ ;;out _error.line

I tried to use the method of setting events. It worked partially. My problem is that I do not know how to communicate the thread name (namely "osd_inm" and/or "osd_sub") between these two routines.


Any advice is mostly appreciated.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)