Running project with Visual D fails, with dub it succeeds

Begah via Digitalmars-d-ide digitalmars-d-ide at puremagic.com
Mon Aug 15 14:39:46 PDT 2016


I have a problem :
When i compile & run my application with Visual D, my application 
crashes ( It fails to load higher opengl versions ).
When i compile & run my application with dub, my application runs 
flawlessly.

To test what i am talking about :
   git clone https://github.com/Begah/Dominator.git
   cd Dominator
   dub // Works perfectly
   dub generate visuald

Then build & run solution with Visual Studio.

I get the following error when launching from visual studio ( 
from library derelict-gl3	) :
   First-chance exception: 
derelict.util.exception.SymbolLoadException Failed to load OpenGL 
symbol [glGetSubroutineUniformLocation] at 
..\..\..\AppData\Roaming\dub\packages\derelict-util-2.0.6\source\derelict\util\exception.d(35)

It happens when i call DerelictGL3.reload(). ( in file 
isolated/window, line 128).

Launching from Visual D, it seems my application can't load 
opengl properly but with dub ( and running the executable created 
by Visual D outside of Visual D ) works.

Why does Visual D gives my application a different environment 
than dub and just executing the executable manually ?



More information about the Digitalmars-d-ide mailing list