Thread overview
Running project with Visual D fails, with dub it succeeds
Aug 15, 2016
Begah
Aug 19, 2016
Begah
Aug 19, 2016
Rainer Schuetze
Aug 20, 2016
Begah
August 15, 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 ?

August 19, 2016
I did some more testing and it seems that my application only crashes when I launch it in debug mode ( from Visual Studio ).
If i launch my application from visual studio ( ctr + F5 ) without debugging my application works flawlessly.
August 19, 2016

On 19.08.2016 13:33, Begah wrote:
> I did some more testing and it seems that my application only crashes
> when I launch it in debug mode ( from Visual Studio ).
> If i launch my application from visual studio ( ctr + F5 ) without
> debugging my application works flawlessly.

That sounds like a problem with the debug engine. You might want to try switching to another engine in the project debug settings.
August 20, 2016
On Friday, 19 August 2016 at 18:38:25 UTC, Rainer Schuetze wrote:
>
>
> On 19.08.2016 13:33, Begah wrote:
>> I did some more testing and it seems that my application only crashes
>> when I launch it in debug mode ( from Visual Studio ).
>> If i launch my application from visual studio ( ctr + F5 ) without
>> debugging my application works flawlessly.
>
> That sounds like a problem with the debug engine. You might want to try switching to another engine in the project debug settings.

Thanks. Switched from Mango to Visual Studio and i no longer get the error.
Thanks!