I want to update some widget's state (like progress bar) periodically, I started a new thread for the job but sbcl reports "nil is not a stream". It seems ltk's using a dynamic binding for its stream output which is not inherited in a new thread. how to solve that problem?

kpreid

pebblestone: I don't know ltk, but gui libraries often don't like being accessed from more than one thread.if that's the case for ltk, you should have the new thread send messages to the main thread which updates the progress bar

pebblestone

kpreid: hmm. what do you mean by send message?

kpreid

just that. implement it however you like

pebblestone

kpreid: the 'normal' way of updating some state periodicaly is to create a timer and dispatch on the timer's event, right? I tried that but the event loop blocked.the event loop of ltk.

kpreid

I don't understand that.

fax

how do you get past barriers in programming?

z3r0_d

barriers... as in "coding blocks" where you can't think of the solution?

fax

well sort of yesI could write a solution but it would be badits the kind of situation I am in(often)

z3r0_d

make a diagram, sleep on it, then take a shower in the morning...dunno

ayrnieu

ask questions about your specific situation on nice places like #lisp

fax

I can knock the keyboard & write a program but its written badly & should never have been writtenim trying to find how you can write things wellIll probably buy some books

trontos

I'd suggest doing it the best you can and then improving on itsomething, even if done poorly is going to be better than nothing and getting it out gives you experienceyou can think too much and you can think too little, somewhere in between is action 8)

fax

ah

trontos

or my favourite japanese proverb, planning without action is day dreaming, but action without planning is a nightmare

fax

:)

action

fax saves

fax

saves

trontos

that's from one of my XP booksthe first one I claim wholely as a trontos original 8)