# Annoying debug messages

hi,
I would be grateful for any help.
I dont know why I've got these annoying debug messages every time I had compiled my fortran program though, I have'nt made any changes to the settings.

First-chance exception at 0x75E4C41F in UOD.exe: Microsoft C++ exception: std::exception at memory location 0x0014F428.
First-chance exception at 0x75E4C41F in UOD.exe: Microsoft C++ exception: std::exception at memory location 0x0014F428.
First-chance exception at 0x75E4C41F in UOD.exe: Microsoft C++ exception: std::exception at memory location 0x0014F7B8.
First-chance exception at 0x75E4C41F in UOD.exe: Microsoft C++ exception: std::exception at memory location 0x0014F7B8.
The thread 0x6ec has exited with code 0 (0x0).
The program '[7120] UOD.exe' has exited with code 0 (0x0).

Related Programming and Computer Science News on Phys.org
Mark44
Mentor
I'm guessing that most of the "Loading disabled..." messages are informational. The ones that seem more serious are these:
First-chance exception at 0x75E4C41F in UOD.exe: Microsoft C++ exception: std::exception at memory location 0x0014F428.
First-chance exception at 0x75E4C41F in UOD.exe: Microsoft C++ exception: std::exception at memory location 0x0014F428.
First-chance exception at 0x75E4C41F in UOD.exe: Microsoft C++ exception: std::exception at memory location 0x0014F7B8.
First-chance exception at 0x75E4C41F in UOD.exe: Microsoft C++ exception: std::exception at memory location 0x0014F7B8.

These suggest to me that your code is doing something it shouldn't. Please show us your code.

source codes

thank you very much for the reply Mark44.

the code consists of a main program and one subroutine attached also, the data file.

#### Attachments

• 1.8 KB Views: 69
I have compiled it using VS2012 and intel fortran xe2013 on windows 7 platform if that makes any difference.

Mark44
Mentor
It's much better to just paste code into the page (inside [ code ] and [ /code ] tags). I have done that below.
Here is TDMA.f90.
Code:
subroutine TDMA(N,aE,aW,aP,b,M1,M2,T)
!    integer M1,M2,N
!    parameter (N=10, Np1=N+1)
integer, intent(in) :: N,M1,M2
!    real, dimension(Np1), intent(in) ::aE,aW,aP,b
!    real, dimension(Np1), intent(out) ::T
!    real, dimension(Np1) ::Q,P
real, dimension(N), intent(in) :: aE, aW, aP, b
real, dimension(N), intent(out) :: T
!
!   Local Variables Decleration
!
real, dimension(N) :: Q, P
integer:: I, Np1
real:: den
!
!allocate (aE(N), aW(N), aP(N), b(N), T(N), Q(N), P(N))
!
!Solution
P(M1) = aE(M1)/aP(M1)
Q(M1) = b(M1)/aP(M1)
do I=M1+1,M2
den = aP(I)-aW(I)*P(I-1)
P(I) = aE(I)/den
Q(I) = (b(I)+Q(I-1)*aW(I))/den
enddo
T(M2) = Q(M2)
do I=M2-1,M1,-1
T(I) = P(I)*T(I+1)+Q(I)
enddo
end subroutine TDMA
Code:
!  Console1.f90
!
!  FUNCTIONS:
!  Console1 - Entry point of console application.
!

!****************************************************************************
!
!  PROGRAM: Console1
!
!  PURPOSE:  Entry point for the console application.
!
!****************************************************************************

program UnsOneDim

implicit none
! Constants
integer N,Np1
parameter (N = 4)
parameter (Np1 = N+1)
! Variables
integer:: I,Nt,it
real:: k,A,h,L,P,th,W,Nu,hp,hL,f,Tinf
real:: ts,tf,tim,rho,Cp
real, dimension(Np1):: x,Dx,dxe,T
real, dimension(Np1):: aE,aW,aP,Sp
real, dimension(Np1):: Sc,b,Told,ap0,apo
character*11:: inputFile
character*10:: outputFile
real, allocatable:: dt(:)
inputFile='datainU.txt'
!
! File Operations
!
!k = 100
!h = 10
!W = 0.1
!th = 0.001
!L = 0.2
!f = 1               !implicit scheme
allocate (dt(Nt))
close(8)
! Initialization
Dx = 1.0/N   !  non dimensionalized
dxe = Dx
Dx(1) = Dx(2)/2
Dx(Np1) = Dx(2)/2  ! equal sized volumes
dxe(Np1)=0          ! no nodes exist beyond the last one
A = W*th
P = 2*(W+th)
Nu = h*L/k
hp = h*P*L**2
hL = h*L*A
Sp = -hp*Dx
Sc = 0
tim = 0
ap0 = rho*cp*L**2*A*Dx
! Half sized boundary volumes
!    Sp(1) = Sp(1)/2.0
!    Sp(Np1) = Sp(Np1)/2.0
! Boundary Conditions
T(1) = 1     ! specified bc at x=0 and normalized
open(unit=7,file=outputFile,mode='write')
write(7,'(''Initial Values at Time = 0'')')
write(7,'(f10.4)') Told

! Coefficients
aE = 0
aW = 0
aE(1:N) = k*A/dxe(1:N)
aW(2:Np1) = aE(1:N)
do it=1,Nt
tim = tim + dt(it)
apo = ap0/dt(it)
b = Sc+apo*Told
aP = aE+aW-Sp+apo
! Bondary Conditions Application
b(2) = b(2)+aW(2)*T(1)
aP(Np1) = aP(Np1)+hL
call TDMA(Np1,aE,aW,aP,b,2,Np1,T)
! Body of Console1
!    print *, 'Hello World'
write(7,'(''Coefficients at Time = '',f10.4)') tim
write(7,'(''Dt = '', f10.4,//)') dt(it)
write(7,'(4x,''aE'',10x,''aW'',10x,''aP'',10x,''Sp'',10x,\)')
write(7,'(''Sc'',10x,''b'')')

do I=1,Np1
write(7,10) aE(I),aW(I),aP(I),Sp(I),Sc(I),b(I)
enddo
write(7,*)
write(7,'(f10.4)') T
Told = T
enddo

10  format(6(f10.4,2x))

close(7)
deallocate(dt)
end program UnsOneDim
Here is the data:
data2.dat
100 10 20 0.2 0.1 0.001
500 300
1 0 50 3
20 30 50
0 0 0 0 0

Mark44
Mentor
I see problems right at the beginning. In the first line of executable code in your main program, you are attempting to open a file whose name is an uninitialized variable, inputFile. That's a problem.

but why?
I have put this statement above the open statement

inputFile='datainU.txt'

why this would'nt work?

or should I put the file name directly into the open statement?

Mark44
Mentor
but why?
I have put this statement above the open statement

inputFile='datainU.txt'

why this would'nt work?
I missed that statement.
or should I put the file name directly into the open statement?
No, what you did should work.

Maybe your input file is not in the right place. It needs to be in the same directory as the exe file, probably a directory named Debug. If it's not there, you need to provide the full path to that file.

thanks alot Mark44 for your kindly help.

If you look at the documentation for VS2012 and for Intel FORTRAN xe 2013 is there perhaps a list of "command line options" that you may not be aware of that can turn on or off all sorts of diagnostic testing and messages?

Sometimes there is something of the nature "-Quiet" that just turns off all the warnings, urgent, critical, important and just annoying, but you need to find out if there is such an option and how you tell it to provide only mostly what you want. (I did a couple of quick Google searches and didn't find any list or anything else)

but these messages suddenly showed up without any intervention of me.
the problem is I have'nt changed any settings, and my programs kept working well before that
I am frustrated.
I have tried the advice of Mark44 but it still appears.
I dont know what to do?

describes how someone, perhaps you?, had VS 2102 working just fine and now gets a stream of warning messages that are some of the exact same warnings and diagnostic information you are getting.

Part way down that page someone with what sounds like some experience offers a mouse click that may switch off some of the diagnostic output that you are seeing.

Perhaps you could try some of the things recommended on that page and see if it solves your problem.

He also has some other problems that are not related to what you are describing and can perhaps be ignored.

thank you Bill for your kindly help
I am grateful.