Page 1 of 1

[5.70LTSB3] rare visualC++ message

Posted: Fri Dec 07, 2018 10:28 pm
by Psychophanta
I get time to time this message when run a 3D program with debugger off:
https://mega.nz/#!5xYWySZA!_70g5rp9RLFk ... 6jrMsjEDxc

Re: [5.70LTSB3] rare visualC++ message

Posted: Mon Dec 10, 2018 8:20 pm
by Fred
We need the code to reproduce it.

Re: [5.70LTSB3] rare visualC++ message

Posted: Mon Dec 10, 2018 9:10 pm
by Psychophanta
:? Sorry, I understand. I tried but just happened 2 times here and never more with the same code. So, if i send the code you will probably not able to reproduce it never.
At the moment i propose Lets think it was driver issue or so...

Re: [5.70LTS] rare visualC++ message

Posted: Thu Jan 03, 2019 10:19 pm
by Psychophanta
Damn! My worries!
I got again the message.

I have cleaned a lot of code to leave you here a tip which cause it.
...
...
...
Finally got it.
Look:

Code: Select all

RX.u=1024:RY.u=768
InitEngine3D()
InitSprite():InitKeyboard():InitMouse()
OpenWindow(0,0,0,RX,RY,"tip",#PB_Window_BorderLess|#PB_Window_ScreenCentered)
OpenWindowedScreen(WindowID(0),0,0,RX,RY,0,0,0,#PB_Screen_WaitSynchronization)
Add3DArchive(#PB_Compiler_Home + "examples/3d/Data/Textures", #PB_3DArchive_FileSystem)
Parse3DScripts()
CreateLight(0,$EEEEEE,4,4,2,#PB_Light_Point)
CreateCamera(0,0,0,100,100)
MoveCamera(0,0,0,3,#PB_Absolute)
LoadTexture(0,"soil_wall.jpg")
CreateMaterial(0,TextureID(0))
CreateCube(0,1)
CreateEntity(0,MeshID(0),MaterialID(0),0,0,0)
Repeat
  ExamineKeyboard()
  RotateEntity(0,0,NaN(),0)
  RenderWorld()
  FlipBuffers()
Until KeyboardPushed(#PB_Key_Escape)
The issue happens when a NaN value is passed as parameter for some 3D commands.

Re: [5.70LTSB3] rare visualC++ message

Posted: Thu Jan 03, 2019 11:28 pm
by Zebuddi123
Image