[Seaside] WAProcess>>critical:ifError problem

Esteban A. Maringolo eMaringolo at smalltalking.net
Fri Nov 4 22:27:42 CET 2005


Hi,

I'm having problems with the following method in WAProcess, on a 
Dolphin 5 Smalltalk:

critical: aBlock ifError: errorBlock
   |value|
   mutex critical:[
	responseSem := Semaphore new.
	process := [
			[value := aBlock on: Error do: errorBlock]
			ensure: [responseSem signal]
		] fork.
	responseSem wait
   ].
   process := nil.
   ^ value


After evaluating aBlock value gets its contents (a WAResponse).
But when the mutex ends the critical evaluation, value is nil.

Perhaps it has something with the Continuations that happens inside 
the process, or something similar.

What can be causing this?


This message is cross posted  to Seaside list, and Dolphin newsgroup 
intentionally.

Best regards,

--
Esteban.




More information about the Seaside mailing list