On 22 May 2012 05:19, Javier Pimás <[email protected]> wrote:
>
>
> On Tue, May 22, 2012 at 12:05 AM, chadwick <[email protected]> wrote:
>>
>>
>>
>> On Tue, May 22, 2012 at 12:17 PM, Javier Pimás
>> <[email protected]> wrote:
>>>
>>> Then probably the visualInfo has some problem. The symptom is that
>>> printOn: (inherited from NBExternalStructure) crashes while trying to show
>>> the fields. Now try niling the visualInfo visual field with code (visualInfo
>>> visual:nil) to see if it keeps crashing.
>>
>>
>> I can't - I tried moving self halt to after the creation of visualInfo,
>> and then self halt is never executed and the image progressively slows as
>> before, indicating that visualInfo was never initialized.
>>
>> What I also neglected to add before was that in visualInfo :=
>> NBXLibVisualInfo fromPointer: it goes into handleFailureIn: nativeCode: from
>> NBFFICallout cdelc: emitCall: options: in NativeBoostLinux32 and eventually
>> hangs
>>
>>
>>
>>>
>>>
>>> Also, what is the contents of NBXLibVisualInfo class>>#fieldsDesc ?
>>
>>
>> fieldsDesc
>>     "
>>     self initializeAccessors
>>     "
>>     ^#(
>>     NBXLibVisual "Visual*" visual;
>>     VisualID visualid;
>>     int screen;
>>     uint depth;
>>     int class;
>>     ulong red_mask;
>>     ulong green_mask;
>>     ulong blue_mask;
>>     int colormap_size;
>>     int bits_per_rgb
>>     )
>>
>
> this is good news! change "int class" to "int klass" and it'll probably
> start working. It's creating an accessor named "class", which breaks
> everything. It's a problem we saw before, I'll have to check because I
> thought I had uploaded the latest versions of monticello and the
> configuration. How did you load the code?
>

Hehe.. and i trapped myself with this too..
spent halt an hour trying to figure out why it goes into infinite
recursion when generating the code,
until recalled that we had this issue before ! :)

Name: NBXLib-Core-JavierPimas.5
Author: JavierPimas
Time: 16 April 2012, 10:54:45 am
UUID: 94ca7907-d790-4740-8a63-51b1a2ec4a48
Ancestors: NBXLib-Core-JavierPimas.4

Rename field "class" in NBXLibVisualInfo to be klass so it doesn't
break in pharo 1.4

> Cheers!
>
>>
>>>
>>>
>>> You can send me the image via yousendit (I'll may look at it if I get
>>> some free time).
>>
>>
>> yes will do that later..
>
>
>
>
> --
> Lic. Javier Pimás
> Ciudad de Buenos Aires



-- 
Best regards,
Igor Stasenko.

Reply via email to