program.exe trigerred a breakpoint

program.exe trigerred a breakpoint

after running a Fortran program, i got this output

'RADIATION NEW.exe' (Win32): Loaded 'C:\Users\Ojaytee\Documents\Visual Studio 2012\Projects\RADIATION NEW\RADIATION NEW\Debug\RADIATION NEW.exe'. Symbols loaded.
'RADIATION NEW.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.
'RADIATION NEW.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'RADIATION NEW.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'RADIATION NEW.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imagehlp.dll'. Symbols loaded.
'RADIATION NEW.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'RADIATION NEW.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.
'RADIATION NEW.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'RADIATION NEW.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'RADIATION NEW.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'RADIATION NEW.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'RADIATION NEW.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dbghelp.dll'. Symbols loaded.
RADIATION NEW.exe has triggered a breakpoint.
The program '[75508] RADIATION NEW.exe' has exited with code 29 (0x1d).

hw do i solve this

36 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Please provide more technical details. Also, regarding error code 29:

>>...
>>The program '[75508] RADIATION NEW.exe' has exited with code 29 (0x1d).
>>...

If code 29 is a Win32 error code than it means:

The system cannot write to the specified device

the program triggers a breakpoint at line:

1   READ (1,101,END=500) NW,NP,NR,BK

then it brings out the output i pasted above

pls, i need help

Was unit-1 opened explicitly (if so, please show the OPEN statement) or are you relying upon an implicit connection between the unit and a file? Does the file that is intended to be read exist? What does the file contain?

mecej4, please, how do i create unit 1, i dont know how to create it?

Can you post call stack of failed application?Regarding the exception the context is accessed with .ecxr debugger command.

There is almost certainly another window, probably behind the VS window, with the real error message, and it might give the file path too.

Steve - Intel Developer Support

yes, there is, this is what the message in it

forrtl: severe (29): file not found, unit 1, file C:\Users\Ojaytee\documents\vis
ual studio 2012\Projects\RADIATION NEW\RADIATION NEW\fort.1
Image PC Routine Line Source
RADIATION NEW.exe 002F1B60 Unknown Unknown Unknown
RADIATION NEW.exe 0025A7B6 Unknown Unknown Unknown
RADIATION NEW.exe 00241ED2 Unknown Unknown Unknown
RADIATION NEW.exe 00241214 Unknown Unknown Unknown
RADIATION NEW.exe 00247418 Unknown Unknown Unknown
RADIATION NEW.exe 0023ADC1 _MAIN__ 443 RADIATION NEW.f90
RADIATION NEW.exe 002F3763 Unknown Unknown Unknown
RADIATION NEW.exe 002F375B Unknown Unknown Unknown
RADIATION NEW.exe 0029854C Unknown Unknown Unknown
RADIATION NEW.exe 0029869D Unknown Unknown Unknown
kernel32.dll 761133AA Unknown Unknown Unknown
ntdll.dll 77489EF2 Unknown Unknown Unknown
ntdll.dll 77489EC5 Unknown Unknown Unknown

yes, there is, this is what the message in it

forrtl: severe (29): file not found, unit 1, file C:\Users\Ojaytee\documents\vis
ual studio 2012\Projects\RADIATION NEW\RADIATION NEW\fort.1
Image PC Routine Line Source
RADIATION NEW.exe 002F1B60 Unknown Unknown Unknown
RADIATION NEW.exe 0025A7B6 Unknown Unknown Unknown
RADIATION NEW.exe 00241ED2 Unknown Unknown Unknown
RADIATION NEW.exe 00241214 Unknown Unknown Unknown
RADIATION NEW.exe 00247418 Unknown Unknown Unknown
RADIATION NEW.exe 0023ADC1 _MAIN__ 443 RADIATION NEW.f90
RADIATION NEW.exe 002F3763 Unknown Unknown Unknown
RADIATION NEW.exe 002F375B Unknown Unknown Unknown
RADIATION NEW.exe 0029854C Unknown Unknown Unknown
RADIATION NEW.exe 0029869D Unknown Unknown Unknown
kernel32.dll 761133AA Unknown Unknown Unknown
ntdll.dll 77489EF2 Unknown Unknown Unknown
ntdll.dll 77489EC5 Unknown Unknown Unknown

and i dont know what it means?

I think that you need to read the I/O chapter of a Fortran text-book or the Intel Fortran manual.

You need to use the OPEN statement to associate unit-1 with the formatted file that you want your program to read.

When the ntdll.dll and kernel32.dll functions are not resolved it seem that you do not have the symbols installed.IIRC in VS you can use microsoft debug symbols download server.
It is impossible to interpret the call stack without the correct symbols installed.I would like to advise you to follow the instructions from experienced fortran developers on this forum.

The call stack into the system DLLs is not important here.  This is a simple "file not found" error.  It is very unlikely that a Fortran developer would need the debug symbols for Windows system DLLs.

Steve - Intel Developer Support

how can i get the intel Fortran manuaal

Zitat:

how can i get the intel Fortran manual
The manual is usually installed on your PC when you install the compiler. You can also find it onlinehttp://software.intel.com/sites/products/documentation/doclib/stdxe/2013... .

>>...how can i get the intel Fortran manual...

For a digital one please take a look at:

[ Visual Studio ] -> Help menu item -> Intel Visual Fortran Composer XE 2013 menu item

Thanks,

mecej4, i have created the unit 1;

this is the OPEN ststement that i used;

OPEN(UNIT=1,FILE="Text1.txt",STATUS='OLD')

abd this is what text1 contained;

NW=1
NP=25
NR=1
BK=6.283184
PX,PY,PZ
LL(1)=1
LR(1)=1
RAD(1)=0.00337
NL=1
LP=6
ZL=0.0 + j100.0
NF=1
FP=3
V=1.0 + j0.0

but the program keep saying;

forrtl: severe (64): input conversion error, unit 1, file C:\Users\Ojaytee\docum
ents\visual studio 2012\Projects\RADIATION NEW\RADIATION NEW\Text1.txt
Image PC Routine Line Source
RADIATION NEW.exe 01131C10 Unknown Unknown Unknown
RADIATION NEW.exe 0109F3E6 Unknown Unknown Unknown
RADIATION NEW.exe 01081FA2 Unknown Unknown Unknown
RADIATION NEW.exe 010812E4 Unknown Unknown Unknown
RADIATION NEW.exe 0108D7E1 Unknown Unknown Unknown
RADIATION NEW.exe 0108B0CB Unknown Unknown Unknown
RADIATION NEW.exe 0107AE29 _MAIN__ 445 RADIATION NEW.f90
RADIATION NEW.exe 01133813 Unknown Unknown Unknown
RADIATION NEW.exe 0113380B Unknown Unknown Unknown
RADIATION NEW.exe 010D862C Unknown Unknown Unknown
RADIATION NEW.exe 010D877D Unknown Unknown Unknown
kernel32.dll 761133AA Unknown Unknown Unknown
ntdll.dll 77489EF2 Unknown Unknown Unknown
ntdll.dll 77489EC5 Unknown Unknown Unknown

Samuel,

You need to look at the documentation for the Radiation program so that you set up the input file in the correct format.  The contents of the file, with variable names included are not consistent with the Read statement shown earlier for these variables.

According to the read statement, the first line of the input file should contain 4 values, something like

1 25 1 6.283184

If the format statement 101 specifies widths for the inputs, then the values will need to be spaced out accordingly.

You need to make similar changes for the other inputs in the file.

Regards,

David

 

 

i dont understand, nw the program is bringing this out

Fortran Pause - Enter command<CR> or <CR> to continue.

so somewhere in the program is a Pause statement (maybe at statement 500 since that is where the program routes on END=500). Also provide format statement 101 since that will demonstrate how the program reads unit 1. better yet provide Radiation New.f90 since that must have the open, input and pause staements.

thank you. the program is running, but there is no output. it says

The program '[3300] Console2.exe' has exited with code 0 (0x0).

how can i see/view the output

here is the prrgram, i've zipped it and uploaded it. i am still getting this output;

The program '[3300] Console2.exe' has exited with code 0 (0x0).

how can i see/view the programs output

Attachments: 

AttachmentSize
Download console2.zip1.35 MB

>>>The program '[3300] Console2.exe' has exited with code 0 (0x0).>>>

Error code 0x0 means that operation completed successfully.

i am expecting an output, the program writes to 3 i.e ;

WRITE (3,117) J,U1,GM,GP

but i cant find the output

Samuel,
You didn't use OPEN on unit 3 to give it a name.
So the system will use a default name for the file.
I believe it would be called fort.03 and written in the directory from where you ran the program.

Les

you have issues with your read statement. format 101 is

1   READ (1,101,END=500) NW,NP,NR,BK
    
101 FORMAT (3I3,E14.7)

whereas your input file includes variable names.

so first need to fix either the read statement or the input file 'TEXT1'

next if and when you start to get output it will be as Les said fort.03 unless you use an open statement.

bmchenry, please i still dont understand waht u mean, what is wrong with the input file

This is what i am still getting

The program '[74180] Console2.exe' has exited with code 0 (0x0).

i still cant find my output, pls help me

Samuel,
you have

READ (1,101,END=500) NW,NP,NR,BK
101 Format(3I3,E14.7)

Which means you are expecting 3 integers and 1 floating point number. But you stated that the input file is
NW=1    etc.
Which is 3 text characters and 1 integer so your READ statement will fail.
This is why you are not getting any output.

If your Text1.txt file really does contain the data you showed in your earlier post then you need to modify how it is read. Otherwise I would suggest that you attach the actual Text1.txt file to a post here so we can see exactly what it contains and how it should be read.

Have you tried running your program through the debugger stepping one statement at a time? This would show you what is happening.
Les

This is what is in the text file;

NW=1
NP=25
NR=1
BK=6.283184
PX,PY,PZ
LL(1)=1
LR(1)=1
RAD(1)=0.00337
NL=1
LP=6
ZL=0.0 + j100.0
NF=1
FP=3
V=1.0 + j0.0

There are a number of ways that you can read this data. But to illustrate that you need to read each line seperately then
after the OPEN statement you need to something like
101 FORMAT(3x,i)
102 FORMAT(3x,F12.0)
READ(1,101,END=500) NW
READ(1,101,END=500) NP
READ(1,101,END=500) NR
READ(1,102,END=500) BK

If your program goes on to read the other data then you will need to do similar processing for each line.

Note : An alternative is to use what is called "internal i/o" by reading the data into a character variable and searching for the = sign, then getting the variable name and the value and making the appropriate assignments. But it would seem your Fortran knowledge is beginners level and this may be more complicated for you.

CHARACTER(80) line
open the file
DO
    read(1,'(a)', end=500) line
    read(line(4:), *) value
    if (line(1:2) .eq. 'NW') NW = value
    if (line(1:2) .eq. 'NP') NP = value
and so on for each variable  NOTE this will not work for the complex values, they need different processing.
ENDDO

500 continue   ! end of file

Les

Thanks for the help,

the program is nw asking for a data edit descriptor to match data item in the I/O list

Zitat:

Samuel O. schrieb:

This is what i am still getting

The program '[74180] Console2.exe' has exited with code 0 (0x0)

This message means that the program exited successfully. If you are starting the program with the "Start with debugging" button or option, and you haven't set a breakpoint, the output window will go away when the program exits.  Use "Start without debugging", instead, to keep the output window visible until you press a key. As an alternative, you can put:

READ (*,*)

just before the END statement to wait for Enter to be pressed.

Steve - Intel Developer Support

Steve, thanks for ur help, i really appreciate it.

The program is nw asking for a data edit descriptor to match data item in the I/O list

which is confusing me

OK lets simplify things a little.
Going back to your original code there are the following read statements (omitting the intervening code) :

1   READ (1,101,END=500) NW,NP,NR,BK 
    READ (1,107) (LL(I),I=1,NW)                           
    READ (1,107) (LR(I),I=1,NR)
    READ (1,107) NL
    READ (1,119) LP,ZL
    READ (1,107) NF
    READ (1,119) J1,V

This means (in the simplest instance) there should be seven lines of data in your input file Text1.txt.
The lines PX,PY,PZ and RAD(1)=0.00337 are not to be read!
Try changing your input file as follows :

1,25,1,6.283184
1
1
1
6, 0.0, 100.0
1
3, 1.0, 0.0

Les

Les, Thank you, this has really helped

i think the program has now read the input data, but there is a problem at;

41  WRITE (3,118) NL

the program says "there is no data-edit-descriptor to match a data-item in the I/O list, unit 3"

this statement is confusing.

meanwhile, i can now find the output, but as from that point "41  WRITE (3,118) NL", there is no more data output.

how can i solve this. thanks a lot

Samuel,
Look carefully at the 118 format statement.
It has within it 13 (i.e the number thirteen) I think this should be I3 ("eye"3)
There is another problem with other formats e.g.    119, 120, 112, 122, 123, 114, 117
(Missing commas;  1 instead of I and so on)

Les

Leave a Comment

Please sign in to add a comment. Not a member? Join today