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

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

Ajain A.的头像

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.

 

4 帖子 / 0 new
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项
arjenmarkus的头像

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

Ajain A.的头像

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

Steve Lionel (Intel)的头像

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.

Steve

登陆并发表评论。