0

I am going through OpenTK (opentk-2010-10-06.exe) sample code which is provided with the OpenTK installation. I am interested on picking example, but it crashes. but other samples are working. What is the problem? Does anybody come across this problem. Please help

I couldn't post the image here, but the exception is about OpenTK.Graphics.GraphicsErrorException

RobinAtTech
  • 1,299
  • 3
  • 22
  • 48
  • Try the latest SVN version and the this github repo: https://github.com/andykorth/opentk The 2010 release is really old, latest SVN version is still very stable, and the github should also be stable. And if you could post the entire stack trace that would be helpful – Robert Rouhani Apr 18 '13 at 01:09
  • @RobertRouhani A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> OpenTK.Graphics.GraphicsErrorException: InvalidEnum at OpenTK.Graphics.OpenGL.ErrorHelper.CheckErrors() in C:\Users\PNPAHM\Documents\OpenTK\1.0\Source\OpenTK\Graphics\OpenGL\ErrorHelper.cs:line 118 at OpenTK.Graphics.OpenGL.ErrorHelper.Dispose() in C:\Users\PN\Documents\OpenTK\1.0\Source\OpenTK\Graphics\OpenGL\ErrorHelper.cs:line 129 – RobinAtTech Apr 18 '13 at 01:25
  • Looks like an invalid enum... the examples should have a debug log somewhere that will tell you exactly when this invalid enum error occurs. – Robert Rouhani Apr 18 '13 at 01:38
  • @RobertRouhani, It is great that OpenTK is continued by somebody. I have downloaded the code and compiled it . It crashed and gave a message that "vshost-clr2.exe has stopped working" Is it because I am using 32 bit operating system?. I will look in to the enum problem and p[ost an answer here. It may be useful for others – RobinAtTech Apr 18 '13 at 02:06
  • @RobertRouhani I have found something interesting. One time it displayed in my machine same as this in opentk forum http://www.opentk.com/node/2913 – RobinAtTech Apr 18 '13 at 03:08
  • I am using Intel graphic card, and the problem from graphic card seems. Please update me if anybody knows the answer – RobinAtTech Apr 18 '13 at 04:14
  • From that thread, it looks like the picking example is using a trick that either causes a driver bug in the Intel implementation or simply is not supported by the card... – Robert Rouhani Apr 18 '13 at 18:18
  • @RobertRouhani Yes Exactly :-) – RobinAtTech Apr 18 '13 at 21:52

1 Answers1

0

This thread give the answer (opentk.com/node/2913 ). If you want to develop a sample/ or tryout picking mechanism, select the redbook sample (from Tao) and change it to OpenTK commands, It is very simple and direct :-)

RobinAtTech
  • 1,299
  • 3
  • 22
  • 48