Kiko: Por las dudas manda el valor al Transcript porque una vez abierto el debugger pasaron miles de cosas ya.
Saludos GallegO El 25 de agosto de 2010 14:08, Jose Gregoris <[email protected]>escribió: > 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
