Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29276 Discussions

What is this error - Native has exited with code 3 (0x3).

Ajain_A_
Beginner
3,219 Views

HELLO All,

 

I am debugging fortran code files, While I am doing it is is exiting with following message


Native has exited with code 3 (0x3)


Can somebody please tell me what it is mean????????

Tools I am Using:

Visual Studio 2008

Fortran Compiler 11.1

Thank you.

 

0 Kudos
3 Replies
Arjen_Markus
Honored Contributor II
3,219 Views

Does this happen while debugging interactively or does it happen if you run the program in a DOS-box? In a DOS-box you should be able to see a stacktrace. That may not always be so in the interactive debugger. It could mean some runtime error terminated your program.

Another possibility is that the program itself calls STOP with an error code (or some C equivalent) You will have to tell us more.

Regards,

Arjen

0 Kudos
Ajain_A_
Beginner
3,219 Views

Dear Arjen,

Thanks you very much for the useful reply. It is happening while I am interactivly doing
the debugging. I am putting the 3 code line blocks where F11 moves. I want clarity on this error, if
you can, please help me

1)main.90
-------

call call_mg1g1_load(Mg1g1FileStr) ! batch file path


2)fputs.c
-----

VALIDATE_RETURN((string != NULL), EINVAL, EOF);
_VALIDATE_RETURN((stream != NULL), EINVAL, EOF);
_VALIDATE_STREAM_ANSI_RETURN(stream, EINVAL, EOF);


3)chkstk.asm
-----------

_chkstk proc

_alloca_probe    =  _chkstk

push    ecx

0 Kudos
Steven_L_Intel1
Employee
3,219 Views

This is not an error. SImilar to your other post, the program has exited and returned a status value of 3 from the main program (which is probably in C). The chkstack code is simply a utility routine used to check stack allocations - F11 steps into any routine calls. This call is not meaningful to you.

As we wrote in your other thread, you need to step through the program and see what it is doing.  I recommend using F10 to step over statements once you get into the main program. If you are positioned at a call to one of your routines,  go ahead and use F11, but be aware that the compiled code may call utility routines such as chkstack before calling your routine.

0 Kudos
Reply