Different between Debug and Release in VS2017

This forum is meant for questions and discussions about the X# language and tools
Frank Müßner
Posts: 280
Joined: Sat Dec 12, 2015 2:22 pm
Location: Germany

Different between Debug and Release in VS2017

Post by Frank Müßner »

Hi Guys,

what is the Different when i Build a Project

1: with configuration DEBUG -> i get no Errors
2: with configuration RELEASE - > i get much Errors.

for the compiler?

Configuration from Debug and Release seems same.
vsrelease.png
vsrelease.png (182.81 KiB) Viewed 675 times
Frank
Last edited by Horst on Wed Aug 09, 2017 9:21 am, edited 1 time in total.
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Different between Debug and Release in VS2017

Post by wriedmann »

Hi Frank,

maybe in the Debug version some warnings are supressed?

Please check the compiler options - for sure they are different between Debug and Release.

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Frank Müßner
Posts: 280
Joined: Sat Dec 12, 2015 2:22 pm
Location: Germany

Different between Debug and Release in VS2017

Post by Frank Müßner »

Hi Wolfgang,

oh yes, i have not see that this can be set different. Thanks for the hint.

Frank
Frank Müßner
Posts: 280
Joined: Sat Dec 12, 2015 2:22 pm
Location: Germany

Different between Debug and Release in VS2017

Post by Frank Müßner »

I have customized the Build Settings from Debug to Release and all to X86 Plattform.

But i can not Start, i get:
er1.png
er1.png (66.31 KiB) Viewed 675 times
I have try several settings, strange.
Any thoughts?

Frank
Frank Müßner
Posts: 280
Joined: Sat Dec 12, 2015 2:22 pm
Location: Germany

Different between Debug and Release in VS2017

Post by Frank Müßner »

I have customized the Build Settings from Debug to Release and all to X86 Plattform.

But i can not Start, i get:
er1.png
I have try several settings, strange.
Any thoughts?

Frank
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Different between Debug and Release in VS2017

Post by wriedmann »

Hi Frank,

it seems you have a runtime error and Visual Studio tries to load the debugging information for the Vulcan runtime that is not present (the Vulcan runtime you have was not compiled with debugging informations).

Try to start the application in debug mode (i.e. Debug, not Run) to see where the error is occurring.

Do you have set a try/catch block? Or see here:
https://www.xsharp.eu/forum/public-examples/340-error-handler-for-ported-vo-applications

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Frank Müßner
Posts: 280
Joined: Sat Dec 12, 2015 2:22 pm
Location: Germany

Different between Debug and Release in VS2017

Post by Frank Müßner »

Hi Wolfgang,

with Debug the Applikation start and run. And yes, i have the Error handler implemented.

Frank
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Different between Debug and Release in VS2017

Post by wriedmann »

Hi Frank,

strange.... Unfortunately I have no VS 2017 installed (only 2015). Maybe you can post a screenshot of the different settings....

Wolfgang

P.S. I deliver all my applications compiled with debug and dbg files to have meaningful error messages with line numbers
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Frank Müßner
Posts: 280
Joined: Sat Dec 12, 2015 2:22 pm
Location: Germany

Different between Debug and Release in VS2017

Post by Frank Müßner »

I have create a new Project and new Vulcan Test application. So that is not my Code.
I get error with Debug and Release.
er2.gif
er2.gif (18.24 KiB) Viewed 675 times
Yesterday i install the VS2017 Update 26430.16

Perhaps that is a Problem?

Frank
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Different between Debug and Release in VS2017

Post by wriedmann »

Hi Frank,

this seems a normal runtime error. But since I have no VS 2017 installed I have to leave it to Robert or Chris - but maybe put your solution in a message here so the support is able to reproduce the issue easily.

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Post Reply