View Single Post
Old 29 June 2020, 13:42   #1
Sim085
Registered User
 
Join Date: Apr 2009
Location: N/A
Posts: 830
Why printf in hook function freezes everything?

I have another question with regards to hooks. I have added a hook to a STRING_KIND gadget. Everything works fine if I handle the input from as IDCMP_GADGETUP message. However if I put a printf in the hook function everything will freeze up (even mouse pointer, need to restart). Why does this happen? Do I need to use some command before and after the printf so that this does not happen.
Sim085 is offline  
 
Page generated in 0.04765 seconds with 11 queries