[Cuis-dev] Primitive fail when:send:to:withArguments:

Hilaire Fernandes hilaire at drgeo.eu
Thu May 26 03:40:50 PDT 2022


Oh gosh,

You are my hero Juan! I was focusing on the list model been garbage 
collected, but it was the issue of the visitor. It was a local variable 
in a preference browser method so I tuned it as an instance variable and 
voilà!

Here is how looks like the Preference browser with the use of the widget 
and panel in cuis-smalltalk-UI:


Thanks



Le 26/05/2022 à 04:39, Juan Vuletich a écrit :
> Have you taken into account that receiver and arguments of 
> #when:send:to: and friends are only held weakly? This means that if 
> there is no other (strong) reference to them, they can be garbage 
> collected anytime and will become nil. This is not "corruption", but 
> how #when:send:to: works. I believe (not absolutely sure) it is the 
> same in other Smalltalk dialects.
>
> HTH,

-- 
GNU Dr. Geo
http://drgeo.eu
http://blog.drgeo.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220526/c6deffaa/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture%20d%E2%80%99%C3%A9cran%20de%202022-05-26%2012-36-19.png
Type: image/png
Size: 22098 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220526/c6deffaa/attachment-0001.png>


More information about the Cuis-dev mailing list