pharo-users@lists.pharo.org

Any question about pharo is welcome

View all threads

AthensCairoSDLSurface P8 Error

AP
Alvaro Piorno
Fri, Sep 18, 2020 8:07 PM

Hello,

This code that worked for P6 and P7 is now failing in P8.

AthensCairoSDLSurface fromSDLSurface: self window handle handle getWindowSurface.

the window is created like this:

window := OSWindow createWithAttributes: (OSWindowAttributes new resizable: false; yourself).

The exception is Error: Could not coerce arguments

from cairo lib.

Cheers

Hello, This code that worked for P6 and P7 is now failing in P8. *AthensCairoSDLSurface fromSDLSurface: self window handle handle getWindowSurface.* the window is created like this: *window := OSWindow createWithAttributes: (OSWindowAttributes new resizable: false; yourself).* The exception is Error: Could not coerce arguments from cairo lib. Cheers
SD
Stéphane Ducasse
Sun, Oct 11, 2020 2:57 PM

Hello alvaro

can you try with P9 because we got many improvements.

S

On 18 Sep 2020, at 22:07, Alvaro Piorno alvaropiorno100@gmail.com wrote:

Hello,

This code that worked for P6 and P7 is now failing in P8.

AthensCairoSDLSurface fromSDLSurface: self window handle handle getWindowSurface.

the window is created like this:

window := OSWindow createWithAttributes: (OSWindowAttributes new resizable: false; yourself).

The exception is Error: Could not coerce arguments

from cairo lib.

Cheers


Stéphane Ducasse http://stephane.ducasse.free.fr / http://www.pharo.org 03 59 35 87 52 Assistant: Aurore Dalle FAX 03 59 57 78 50 TEL 03 59 35 86 16 S. Ducasse - Inria 40, avenue Halley, Parc Scientifique de la Haute Borne, Bât.A, Park Plaza Villeneuve d'Ascq 59650 France

Hello alvaro can you try with P9 because we got many improvements. S > On 18 Sep 2020, at 22:07, Alvaro Piorno <alvaropiorno100@gmail.com> wrote: > > Hello, > > This code that worked for P6 and P7 is now failing in P8. > > AthensCairoSDLSurface fromSDLSurface: self window handle handle getWindowSurface. > > the window is created like this: > > window := OSWindow createWithAttributes: (OSWindowAttributes new resizable: false; yourself). > > The exception is Error: Could not coerce arguments > > from cairo lib. > > > Cheers -------------------------------------------- Stéphane Ducasse http://stephane.ducasse.free.fr / http://www.pharo.org 03 59 35 87 52 Assistant: Aurore Dalle FAX 03 59 57 78 50 TEL 03 59 35 86 16 S. Ducasse - Inria 40, avenue Halley, Parc Scientifique de la Haute Borne, Bât.A, Park Plaza Villeneuve d'Ascq 59650 France
AP
Alvaro Piorno
Wed, Oct 14, 2020 7:12 PM

HI Stéphane,

It works fine in P9 changing for the new implementors of handle.

Thanks

El dom., 11 oct. 2020 a las 11:57, Stéphane Ducasse (< stephane.ducasse@inria.fr>) escribió:

Hello alvaro

can you try with P9 because we got many improvements.

S

On 18 Sep 2020, at 22:07, Alvaro Piorno alvaropiorno100@gmail.com wrote:

Hello,

This code that worked for P6 and P7 is now failing in P8.

AthensCairoSDLSurface fromSDLSurface: self window handle handle getWindowSurface.

the window is created like this:

window := OSWindow createWithAttributes: (OSWindowAttributes new resizable: false; yourself).

The exception is Error: Could not coerce arguments

from cairo lib.

Cheers


Stéphane Ducasse http://stephane.ducasse.free.fr / http://www.pharo.org 03 59 35 87 52 Assistant: Aurore Dalle FAX 03 59 57 78 50 TEL 03 59 35 86 16 S. Ducasse - Inria 40, avenue Halley, Parc Scientifique de la Haute Borne, Bât.A, Park Plaza Villeneuve d'Ascq 59650 France

HI Stéphane, It works fine in P9 changing for the new implementors of handle. Thanks El dom., 11 oct. 2020 a las 11:57, Stéphane Ducasse (< stephane.ducasse@inria.fr>) escribió: > Hello alvaro > > can you try with P9 because we got many improvements. > > S > > On 18 Sep 2020, at 22:07, Alvaro Piorno <alvaropiorno100@gmail.com> wrote: > > Hello, > > This code that worked for P6 and P7 is now failing in P8. > > *AthensCairoSDLSurface fromSDLSurface: self window handle handle > getWindowSurface.* > > the window is created like this: > > *window := OSWindow createWithAttributes: (OSWindowAttributes new > resizable: false; yourself).* > > The exception is Error: Could not coerce arguments > > from cairo lib. > > > Cheers > > > -------------------------------------------- > Stéphane Ducasse > http://stephane.ducasse.free.fr / http://www.pharo.org > 03 59 35 87 52 > Assistant: Aurore Dalle > FAX 03 59 57 78 50 > TEL 03 59 35 86 16 > S. Ducasse - Inria > 40, avenue Halley, > Parc Scientifique de la Haute Borne, Bât.A, Park Plaza > Villeneuve d'Ascq 59650 > France > >