Click here to Skip to main content
15,510,678 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiondirectx 9 ? Pin
bluatigro6-Sep-17 23:03
bluatigro6-Sep-17 23:03 
SuggestionRe: directx 9 ? Pin
Richard MacCutchan7-Sep-17 5:41
mveRichard MacCutchan7-Sep-17 5:41 
QuestionRe: directx 9 ? Pin
David Crow7-Sep-17 6:12
David Crow7-Sep-17 6:12 
AnswerRe: directx 9 ? Pin
leon de boer7-Sep-17 7:57
leon de boer7-Sep-17 7:57 
QuestionOnce Again Assert in Release and I am lost Pin
ForNow4-Sep-17 14:39
ForNow4-Sep-17 14:39 
QuestionRe: Once Again Assert in Release and I am lost Pin
David Crow4-Sep-17 16:45
David Crow4-Sep-17 16:45 
AnswerRe: Once Again Assert in Release and I am lost Pin
ForNow4-Sep-17 17:01
ForNow4-Sep-17 17:01 
GeneralRe: Once Again Assert in Release and I am lost Pin
leon de boer6-Sep-17 20:09
leon de boer6-Sep-17 20:09 
NDEBUG it is defined by C/C++ standards to control what assert does.
assert - cppreference.com[^]
Visual Studio will redirect it in release build to try and do something useful but probably wrong and you are welcome to override it.

Visual Studio itself uses it's own two macros to control build/release modes
Predefined Macros[^]
_DEBUG Defined as 1 when the /LDd, /MDd, or /MTd compiler option is set. Otherwise, undefined.

_DLL Defined as 1 when the /MD or /MDd (Multithreaded DLL) compiler option is set. Otherwise, undefined.


You seem to be getting confused between what is demanded by C/C++ standards and what VS does itself.
Assert functionality lies outside VS control as demanded by the C/C++ standard.

Now at a guess what you have a wrong DLL dependency like the console using msvcrd.lib rather than msvcr.lib. If you are dragging in other libraries you need to make sure those other libraries are also compiled in release mode. So what other libraries are you linking with and are they added in your project source list. AKA do you see them compile when you do a full build or are you just dragging in pre-compiled units.

There are a number of dependency walkers out there you can run on your exe to see what DLL's it calls hit your favourite search engine. You shouldn't need them and I don't use them (so can't recommend one) but they are out there.
In vino veritas


modified 7-Sep-17 1:46am.

AnswerRe: Once Again Assert in Release and I am lost Pin
Jochen Arndt4-Sep-17 22:13
professionalJochen Arndt4-Sep-17 22:13 
GeneralRe: Once Again Assert in Release and I am lost Pin
ForNow5-Sep-17 2:22
ForNow5-Sep-17 2:22 
GeneralRe: Once Again Assert in Release and I am lost Pin
Jochen Arndt5-Sep-17 2:39
professionalJochen Arndt5-Sep-17 2:39 
GeneralRe: Once Again Assert in Release and I am lost Pin
ForNow5-Sep-17 2:43
ForNow5-Sep-17 2:43 
GeneralRe: Once Again Assert in Release and I am lost Pin
ForNow7-Sep-17 7:00
ForNow7-Sep-17 7:00 
GeneralRe: Once Again Assert in Release and I am lost Pin
leon de boer7-Sep-17 7:39
leon de boer7-Sep-17 7:39 
GeneralRe: Once Again Assert in Release and I am lost Pin
ForNow8-Sep-17 11:09
ForNow8-Sep-17 11:09 
GeneralRe: Once Again Assert in Release and I am lost Pin
Rick York8-Sep-17 13:54
mveRick York8-Sep-17 13:54 
GeneralRe: Once Again Assert in Release and I am lost Pin
leon de boer8-Sep-17 19:07
leon de boer8-Sep-17 19:07 
GeneralRe: Once Again Assert in Release and I am lost Pin
ForNow9-Sep-17 16:03
ForNow9-Sep-17 16:03 
GeneralRe: Once Again Assert in Release and I am lost I finally figured out the bug .. My reflections Pin
ForNow10-Sep-17 13:50
ForNow10-Sep-17 13:50 
GeneralDeclaration Confuse Pin
Mr. Anup Roy31-Aug-17 7:38
professionalMr. Anup Roy31-Aug-17 7:38 
GeneralRe: Declaration Confuse Pin
leon de boer31-Aug-17 9:37
leon de boer31-Aug-17 9:37 
GeneralSum Multiple Value At a Time Pin
Mr. Anup Roy30-Aug-17 7:18
professionalMr. Anup Roy30-Aug-17 7:18 
GeneralRe: Sum Multiple Value At a Time Pin
jeron130-Aug-17 9:10
jeron130-Aug-17 9:10 
GeneralRe: Sum Multiple Value At a Time Pin
Mr. Anup Roy31-Aug-17 5:25
professionalMr. Anup Roy31-Aug-17 5:25 
GeneralRe: Sum Multiple Value At a Time Pin
jeron131-Aug-17 6:38
jeron131-Aug-17 6:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.