For example, would it be somehow possible to force an error whenever the main 
thread blocked more than some specified timeout amount (e.g., for more than 3 
secs). I would wish there would be, e.g., some compiler flag to set such 
behaviour, and the error message would then pinpoint where the blocking 
occurred.

Again, what are your strategies for fixing blocking programs? Thanks a lot! 

Best wishes,
Torsten


On 7 Jun 2012, at 17:48, Torsten Anders wrote:

> Dear fellow Oz programmers,
> 
> I guess that it already happened to many of you that your program blocks 
> without any error message (e.g., the program performs some operation on a 
> free variable and just waits for more information to be bound to that 
> variable before it can continue). This ability is clearly a strength of the 
> language.
> 
> On the other hand, accidental blocks are also particularly frustrating bugs 
> for the programmer, because the language gives no feedback about the cause of 
> the problem. I often have spend hours identifying some trivial cause, because 
> it took so long to isolate the bug. Quite likely, this is the single kind of 
> bug on which I spend by far most time fixing them.
> 
> Question: what are your strategies for fixing blocking programs? Thanks a 
> lot! 
> 
> Best wishes,
> Torsten
> 
> --
> Dr Torsten Anders
> Course Leader, Music Technology
> University of Bedfordshire
> Park Square, Room A315
> http://www.torsten-anders.de

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to