GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 13-Jan-2018, 04:41
geekhui geekhui is offline
New Member
 
Join Date: Jan 2018
Posts: 2
geekhui is on a distinguished road

MFC C++ Visual Studio 2015, the output windows only stays for 1 second


Hi All,

I am currently using Visual Studio 2015 to develop a MFC project (written in C++ and graphics programming language) and running Windows 10 Pro.

There is no compilation errors and it is successfully built. However, when I press the "start debugging" button, the output window only shows for 1 second and then disappear. Anyone knows why? Do I miss any .dll files or other files?

The debug window shows the following results:

.

.

.

f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\oleinit. cpp(84) : {232} client block at 0x006EE008, subtype c0, 68 bytes long.f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dum pcont.cpp(23) : atlTraceGeneral - a CCmdTarget object at $006EE008, 68 bytes longObject dump complete.The program '[3208] FemursAnalysis.exe' has exited with code 1 (0x1).
  #2  
Old 13-Jan-2018, 13:33
TurboPT's Avatar
TurboPT TurboPT is offline
Senior Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 1,519
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: MFC C++ Visual Studio 2015, the output windows only stays for 1 second


"...no compilation errors" and "successfully built" is only one side of the picture. There IS a situation called "run-time errors", which appears to have happened.

Without seeing any code, there is likely misuse of a pointer somewhere (a pointer is null or some other matter like a missing initialization perhaps) or if arrays are used, mishandling with the indexing or an out-of-bounds situation are usually the causes. (however, there could be other reasons)

In visual studio, it might be worth setting "show all warnings" in case there may be other side affects to know at compile time that could be contributing to this issue.
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
  #3  
Old 14-Jan-2018, 20:16
geekhui geekhui is offline
New Member
 
Join Date: Jan 2018
Posts: 2
geekhui is on a distinguished road

Re: MFC C++ Visual Studio 2015, the output windows only stays for 1 second


Hi @TurboPT,

Thanks for the your reply.
Highly appreciated!

I have copied the warnings shown in the program. Do you have any advises for me that might caused the problems?

Quote:
Severity Code Description Project File Line Suppression State
Warning C4305 '=': truncation from 'double' to 'GLfloat' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 298
Warning C4305 '=': truncation from 'double' to 'GLfloat' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 299
Warning C4305 '=': truncation from 'double' to 'GLfloat' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 300
Warning C4305 '=': truncation from 'double' to 'GLfloat' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 302
Warning C4305 '=': truncation from 'double' to 'GLfloat' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 303
Warning C4305 '=': truncation from 'double' to 'GLfloat' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 304
Warning C4244 '=': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 802
Warning C4244 '=': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 803
Warning C4244 '=': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 804
Warning C4244 '=': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 807
Warning C4244 '=': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 866
Warning C4244 '=': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 867
Warning C4244 '=': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 868
Warning C4244 '=': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 1038
Warning C4244 'argument': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 1195
Warning C4244 '=': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 1195
Warning C4244 '=': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 1201
Warning C4244 '=': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 1202
Warning C4244 '=': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 1252
Warning C4244 '=': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 1253
Warning C4305 '=': truncation from 'double' to 'GLfloat' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 1260
Warning C4244 '=': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 1262
Warning C4305 '=': truncation from 'double' to 'GLfloat' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 1265
Warning C4244 '=': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 1267
Warning C4244 '=': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 1270
Warning C4244 '=': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 1271
Warning C4477 'fprintf' : format string '%d' requires an argument of type 'int', but variadic argument 1 has type 'GLfloat *' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glm.cpp 1511
Warning C4091 'static ': ignored on left of 'color' when no variable is declared FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glf.cpp 40
Warning C4091 'static ': ignored on left of 'one_symbol' when no variable is declared FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glf.cpp 57
Warning C4091 'static ': ignored on left of 'glf_font' when no variable is declared FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glf.cpp 65
Warning C4091 'static ': ignored on left of 'coord_rect' when no variable is declared FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\glf.cpp 100
Warning C4305 '=': truncation from 'double' to 'float' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 107
Warning C4838 conversion from 'double' to 'float' requires a narrowing conversion FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 232
Warning C4305 'initializing': truncation from 'double' to 'float' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 232
Warning C4838 conversion from 'double' to 'float' requires a narrowing conversion FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 233
Warning C4305 'initializing': truncation from 'double' to 'float' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 233
Warning C4838 conversion from 'double' to 'float' requires a narrowing conversion FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 234
Warning C4305 'initializing': truncation from 'double' to 'float' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 234
Warning C4838 conversion from 'double' to 'float' requires a narrowing conversion FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 238
Warning C4305 'initializing': truncation from 'double' to 'float' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 238
Warning C4244 'argument': conversion from 'double' to 'GLclampf', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 248
Warning C4305 'argument': truncation from 'double' to 'float' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 297
Warning C4305 'argument': truncation from 'double' to 'float' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 298
Warning C4244 'initializing': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 399
Warning C4244 'initializing': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 400
Warning C4244 'initializing': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 401
Warning C4305 'initializing': truncation from 'double' to 'float' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 478
Warning C4305 '=': truncation from 'double' to 'float' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 481
Warning C4244 'argument': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 483
Warning C4305 'argument': truncation from 'double' to 'GLfloat' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 486
Warning C4244 'argument': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 491
Warning C4244 'argument': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 506
Warning C4305 'argument': truncation from 'double' to 'GLfloat' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 509
Warning C4244 'argument': conversion from 'double' to 'GLfloat', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 514
Warning C4018 '<': signed/unsigned mismatch FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 627
Warning C4018 '<': signed/unsigned mismatch FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 660
Warning C4018 '<': signed/unsigned mismatch FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 669
Warning C4018 '<': signed/unsigned mismatch FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 681
Warning C4018 '<': signed/unsigned mismatch FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 712
Warning C4018 '<': signed/unsigned mismatch FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 774
Warning C4018 '<': signed/unsigned mismatch FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 798
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 813
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 934
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 935
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 936
Warning C4244 'argument': conversion from 'double' to 'GLclampf', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 1319
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 1359
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 1374
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 1388
Warning C4305 '*=': truncation from 'double' to 'float' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 1399
Warning C4305 '/=': truncation from 'double' to 'float' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 1405
Warning C4305 '/=': truncation from 'double' to 'float' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 1411
Warning C4305 '*=': truncation from 'double' to 'float' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 1418
Warning C4305 '/=': truncation from 'double' to 'float' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 1425
Warning C4305 '*=': truncation from 'double' to 'float' FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\femursanalysisview.cpp 1431
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 243
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 247
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 248
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 249
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 408
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 409
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 410
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 419
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 420
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 421
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 430
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 431
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 432
Warning C4244 'return': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 581
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 720
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 721
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 722
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 751
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 752
Warning C4244 '=': conversion from 'double' to 'float', possible loss of data FemursAnalysis n:\1_saw seow hui\research\3d_femur_analysis\femursanalysis\femu rsanalysis\3dstruct.cpp 756

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HostForLIFE.eu - Best, Cheap Visual Studio 2017 hosting Only Є3.49/month WindowsHosting Web Hosting Advertisements & Offers 0 26-Feb-2017 21:43
HostForLIFE.eu – Cheap Windows & Visual Studio 2017 hosting WindowsHosting Web Hosting Advertisements & Offers 0 04-Dec-2016 21:05
Cheap Windows Dedicated Cloud Server Start from $18.00/month | 5 minutes ready Portal88 Web Hosting Advertisements & Offers 0 08-May-2014 02:28
LiveServerSolution.com - Windows VPS | 512MB RAM, 20GB HD, 1TB BW - Only $11.99 liveserver Managed / Dedicated Servers 0 02-Dec-2013 03:51
Recover Windows 8 password in easy ways fancy51 Computer Software Forum - Windows 1 03-Oct-2013 00:11

Network Sites: GIDNetwork · GIDApp · GIDBlog · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 09:31.


vBulletin, Copyright © 2000 - 2018, Jelsoft Enterprises Ltd.