fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Different between Debug and Release in VS2017

Different between Debug and Release in VS2017 1 year 10 months ago #2342

  Frank Müßner's Avatar Topic Author Frank Müßner Offline Posts: 84
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.



Frank
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Frank Müßner.

Different between Debug and Release in VS2017 1 year 10 months ago #2344

  wriedmann's Avatar wriedmann Offline Posts: 1545
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
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

Please Log in or Create an account to join the conversation.

Different between Debug and Release in VS2017 1 year 10 months ago #2345

  Frank Müßner's Avatar Topic Author Frank Müßner Offline Posts: 84
Hi Wolfgang,

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

Frank

Please Log in or Create an account to join the conversation.

Different between Debug and Release in VS2017 1 year 10 months ago #2346

  Frank Müßner's Avatar Topic Author Frank Müßner Offline Posts: 84
I have customized the Build Settings from Debug to Release and all to X86 Plattform.

But i can not Start, i get:



I have try several settings, strange.
Any thoughts?

Frank
Attachments:

Please Log in or Create an account to join the conversation.

Different between Debug and Release in VS2017 1 year 10 months ago #2347

  Frank Müßner's Avatar Topic Author Frank Müßner Offline Posts: 84
I have customized the Build Settings from Debug to Release and all to X86 Plattform.

But i can not Start, i get:



I have try several settings, strange.
Any thoughts?

Frank

Please Log in or Create an account to join the conversation.

Different between Debug and Release in VS2017 1 year 10 months ago #2348

  wriedmann's Avatar wriedmann Offline Posts: 1545
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.info/forum/public-examples/340-error-handler-for-ported-vo-applications

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

Please Log in or Create an account to join the conversation.

Last edit: by wriedmann.

Different between Debug and Release in VS2017 1 year 10 months ago #2349

  Frank Müßner's Avatar Topic Author Frank Müßner Offline Posts: 84
Hi Wolfgang,

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

Frank

Please Log in or Create an account to join the conversation.

Different between Debug and Release in VS2017 1 year 10 months ago #2350

  wriedmann's Avatar wriedmann Offline Posts: 1545
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
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

Please Log in or Create an account to join the conversation.

Different between Debug and Release in VS2017 1 year 10 months ago #2351

  Frank Müßner's Avatar Topic Author Frank Müßner Offline Posts: 84
I have create a new Project and new Vulcan Test application. So that is not my Code.
I get error with Debug and Release.



Yesterday i install the VS2017 Update 26430.16

Perhaps that is a Problem?

Frank
Attachments:

Please Log in or Create an account to join the conversation.

Different between Debug and Release in VS2017 1 year 10 months ago #2352

  wriedmann's Avatar wriedmann Offline Posts: 1545
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
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

Please Log in or Create an account to join the conversation.

Different between Debug and Release in VS2017 1 year 10 months ago #2353

  Frank Müßner's Avatar Topic Author Frank Müßner Offline Posts: 84
Ok Wolfgang,

Thank you for your Help. I will look what Chris or Robert say.

Frank

Please Log in or Create an account to join the conversation.

Last edit: by Frank Müßner.

Different between Debug and Release in VS2017 1 year 10 months ago #2354

  Frank Müßner's Avatar Topic Author Frank Müßner Offline Posts: 84
here my Settings:





Frank
Attachments:

Please Log in or Create an account to join the conversation.

Different between Debug and Release in VS2017 1 year 10 months ago #2355

  FFF's Avatar FFF Away Posts: 565
Frank,
what Wolfgang probably meant: attach your new test app here, so that Chris/Robert may try directly...

Karl

Please Log in or Create an account to join the conversation.

Different between Debug and Release in VS2017 1 year 10 months ago #2356

  Frank Müßner's Avatar Topic Author Frank Müßner Offline Posts: 84
Hi Karl,
that is only the VulcanApplikation from X#. That run not in debug or release.
Perhaps someone can confirm this?

Frank
Attachments:

Please Log in or Create an account to join the conversation.

Different between Debug and Release in VS2017 1 year 10 months ago #2357

  wriedmann's Avatar wriedmann Offline Posts: 1545
Hi Frank,

I have now tried the sample application in VS 2015 Community, and there it works.

These are the compiler options:



and these the build options:



Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it
Attachments:

Please Log in or Create an account to join the conversation.

Different between Debug and Release in VS2017 1 year 10 months ago #2358

  Frank Müßner's Avatar Topic Author Frank Müßner Offline Posts: 84
Hi Wolfgang

Exact the same here!

:-(but with errors

And i have new virtual install fresh VS2017 and X#
The same Error.

Frank

Please Log in or Create an account to join the conversation.

Different between Debug and Release in VS2017 1 year 10 months ago #2359

  wriedmann's Avatar wriedmann Offline Posts: 1545
Hi Frank,

if I remember correctly, you don't have Vulcan installed, so the Vulcan runtime DLLs are not in the GAC.

The Vulcan runtime needs not only the VulcanRT.DLL and the VulcanRTFuncs.dll, but also the VulcanMacroCompiler.dll.

Try to put this DLL in your bin folder. And if this does not work, try with the eventlog (Eventviewer). Often errors are visible only there.

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

Please Log in or Create an account to join the conversation.

Different between Debug and Release in VS2017 1 year 10 months ago #2360

  Frank Müßner's Avatar Topic Author Frank Müßner Offline Posts: 84
Hi Wolfgang,

yes, ok that solves the behavior from the Sample Vulcan.

Not my App, that work in Debug and not in Release. Eventviewer show when Release Version start:

Name der fehlerhaften Anwendung: AWINKASSE_ORG_NEU!!!!!!!!!!!!!!!.exe, Version: 0.0.0.0, Zeitstempel: 0x598b1826
Name des fehlerhaften Moduls: mscorlib.ni.dll, Version: 4.7.2101.1, Zeitstempel: 0x59326962
Ausnahmecode: 0xc00000fd
Fehleroffset: 0x003a8193
ID des fehlerhaften Prozesses: 0x2c40
Startzeit der fehlerhaften Anwendung: 0x01d31119c6a0c9a6
Pfad der fehlerhaften Anwendung: E:\Visual Studio 2017\WinQuick\Release\AWINKASSE_ORG_NEU!!!!!!!!!!!!!!!.exe
Pfad des fehlerhaften Moduls: C:\Windows\assembly\NativeImages_v4.0.30319_32\mscorlib\aff328835c74ccf06c928da8cc8caa0a\mscorlib.ni.dll
Berichtskennung: 3fa053aa-aeef-43bf-9d99-1d3afd0ef9f0
Vollständiger Name des fehlerhaften Pakets:
Anwendungs-ID, die relativ zum fehlerhaften Paket ist:



Fehlerbucket 129528060615, Typ 5
Ereignisname: CLR20r3
Antwort: Nicht verfügbar
CAB-Datei-ID: 129744407356

Problemsignatur:
P1: AWINKASSE_ORG_NEU!!!!!!!!!!!!!!!
P2: missing
P3: 598b1826
P4: mscorlib
P5: 4.7.2101.1
P6: 59326962
P7: 111c
P8: 0
P9: System.StackOverflowException
P10:



Frank

Please Log in or Create an account to join the conversation.

Last edit: by Frank Müßner.

Different between Debug and Release in VS2017 1 year 10 months ago #2361

  wriedmann's Avatar wriedmann Offline Posts: 1545
Hi Frank,

in the errormessage is something I don't like:
Ereignisname: CLR20r3

This seems to call the .NET Framework 3.x and not the 4.x. Try to search in your options if there is something strange with the framework settings.

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

Please Log in or Create an account to join the conversation.

Different between Debug and Release in VS2017 1 year 10 months ago #2364

  Chris's Avatar Chris Offline Posts: 1137
Hi Frank,

I think Wolfgang spotted this well, seems there's some kind of mixup in the project with framework version. Could it be you have added references to the .Net 2 versions of the vulcan dlls? There are 2 sets, one for .Net < 4.0 and one for .Net >= 4.0, you must make sure you use the later ones.

Also what about the target framework version, you can see the selected option in project properties, General page. Is this something like ".NETFramework,Version=v4.5.1"?

In any case, please zip and send me the solution, might be something more that's very difficult to spot from distance. I suspect that also has to do with the other issue you see with loading the solution.

Chris
XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2