Kiko
Sera que se hizo otra llamada a otro mensaje que usa el SO? entonces te
cambia el valor del
getLastError?
se me ocurren 2 cosas.
1) que lo setees si mal no recurdo setLastError:
2) que lo hagas dentro de un critical para q no te interrumpan
el el scheduler.
saludos
MDC
2010/8/25 Jose Gregoris <[email protected]>
> Hola
>
> En un ejemplo de OpenGL que estoy haciendo , tengo un error medio raro y no
> entiendo bien porque occurre.
> Para mejor entendimiento deberán mirar la captura que adjunto.
> El tema esta en este método:
>
> OpenGLLibrary>>createContext: aDCHandle
> "The wglCreateContext function creates a new OpenGL rendering context,
> which is suitable for drawing on the device referenced by
> hdc.
> The rendering context has the same pixel format as the device
> context.."
>
> | context error |
> context := self wglCreateContext: aDCHandle.
> error := KernelLibrary default getLastError.
> context ifNil: [^self error: 'Can''t Create A GL Rendering Context.
> Error: ' , error printString].
> ^context
>
>
> Luego de llamar a #wglCreateContext: este retorna un contexto no valido "
> nil" y luego chequeo si hay algun error para poder informar.
> Pasa que ese chequeo retorna "0" como si no pasara nada, pero en realidad
> algo paso por lo que fallo #wglCreateContext:
>
> Como se ve en la captura desde el debug intento de nuevo llamar a
> getLastError y hay si me retorna un error !!
>
> No tengo idea de porque pasa esto y me gustaría saber :)
>
> Es un error que parese ser de la librería Kernel, pero no sé.
> Alguna idea ?
>
> saludos kiko
>
>
>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<clubsmalltalk%[email protected]>
>
> http://www.clubSmalltalk.org
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
http://www.clubSmalltalk.org