Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Winsock activex breaks other activex events

Status
Not open for further replies.

taiska

Programmer
Sep 3, 2007
2
LT
I have some independent forms with winsock control. Then i do some job with one form and release it, in other form in cycle

do while .t.
doevents
enddo

winsock control do not catch DataArrival event and other activex controls do not catch events...
Any suggestions?
thnx
 
Do you have the phrase:
Code:
_VFP.AutoYield = .F.
somewhere in your application?
Do you have the controls' RThreshold property set to something more than 0?

Also, you may need force the app or OS to slow down processing a bit. Here's how I do it in the OnComm event of the Winsock control:
Code:
STORE '' TO cInString
IF (THIS.CommEvent == 2) .AND. (THIS.InBufferCount > 0)
   DO WHILE THIS.InBufferCount > 0
      cInString = THIS.INPUT
      DOEVENTS
      INKEY(.1, 'HM')
      *... concat the buffer
      THISFORM.cInString = THISFORM.cInString + cInString
   ENDDO
ENDIF


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
_VFP.AutoYield is .f. program nade by gfamous example from dataarrival problem i solve by check getdata(), but i have opos contro witch read magnetic card data and on this cycle it lose events
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top