-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different exception behaviour between Debug and Release builds #454
Comments
And there are also no Xbim.Geometry.Engine64.pdb and Xbim.Geometry.Engine32.pdb in release build configuration. |
Is there any way to get the same behavior as debug build in release? |
Not really, short of using a debug (unoptimised) build. The /RTC (runtime checks) will only work in Debug/Un-optimised builds. https://learn.microsoft.com/en-us/cpp/build/reference/rtc-run-time-error-checks?view=msvc-170 What I'd hope the debug build willlet you do is identify the data / scenario that triggers the crash in Release. If you can track it down to a particular element others may be able to take a look. |
So one more question. |
I think it uses different C++ runtime/libs in DEBUG - and these won't be on machines without VS. Probably a good reason not to go down that route. Best approach is to get a fix for the actual problem - but will need your model (or a subset of it) to reproduce |
Hello, xBim team!
I've found very interesting moment.
I've changed Exceptions handling a little bit in XbimGeometryCreator.cpp. Strings 304-310.
Then I built debug version of XBim.Geometry. All my problems with geometry creation have disappeared!))
But if I build release version of the same code, it doesn't work correctly.
Also if I move debug-dlls of xBim, that I've built on my computer, to other machine it doesn't work.
I use master-branch.
It would be greate to fix this problem!
Thanks!
The text was updated successfully, but these errors were encountered: