|
|
||||||
|
#1
|
|
|
|
|
Dear all,
I am porting a compaq fortran project (version 6.x) over to the intel fortran compiler (version 8.0). However, crash always happens at the internal write statement under the intel fortran compiler. ========= project brief: ========= The soultion comprises two parts, one is the c++ project, which in charge of the user interface, the other project is a Fortran Dll project. The Fortran Dll is invoked by the C++ project. the problem I meet here is every simple, the C++ project is just a framework of the dialog based mfc win32 application. In the code response to the click OK button, it will invoke the fortran dll. The Fortran dll is built as the name of TestDll.dll. The core part of the C++ and Fortran code are shown as follows: ========= C++ code ========= .... typedef unsigned int (__stdcall *_FPTR_START_APP) ( void * ); .... if (nResponse == IDOK) ////code corresponding to the click OK button { CString fileName = "abc"; m_hSimDLL = LoadLibrary((LPCTSTR)"TestDll"); FARPROC fPtrStartApp = ::GetProcAddress( m_hSimDLL, "StartApp" ); void* pvSecurity = NULL; unsigned int* puiThrdAddr = NULL; m_hThread = (HANDLE) _beginthreadex( pvSecurity, 0, (_FPTR_START_APP)fPtrStartApp, (void *)(LPCTSTR)fileName.GetBuffer(0), 0, puiThrdAddr ); ....//idle or do something here so that the thread of the fortran Dll will run and can be debugged. } ========= Fortran code ========= Corresponding Fortran Dll is made of by the following code: ! --------------------------------------------------------------------- Subroutine StartApp(iAddressStrBuf) !DEC$ ATTRIBUTES DLLEXPORT::StartApp !DEC$ ATTRIBUTES ALIAS: 'StartApp'::STARTAPP !DEC$ ATTRIBUTES VALUE::iAddressStrBuf integer iAddressStrBuf integer i character*32 strTest i=555 write(strTest,'(i10.10)') i return end subroutine StartApp !----------end of the fortran dll project ---------------------------------- ========= Symnpton ========= Whenever the internal write statement is invoked, the program will crash and report the error of access violation occurred. If there is anyone knows the issue, could you please give me a hand. ========= Attached ========= It appears that I can not send the whole project sample files in zip format, I will send to those who responsed to this email either in person or to the newsgroup if needed. Best Regards, David |
|
|
|
#2
|
|
|
|
|
On Thu, 8 Apr 2004 10:22:12 +0100, "David" <ixuw> wrote:
>I am porting a compaq fortran project (version 6.x) over to the intel >fortran compiler (version 8.0). However, crash always happens at the >internal write statement under the intel fortran compiler. You also posted this in our user forum and got an answer there. >It appears that I can not send the whole project sample files in zip format, >I will send to those who responsed to this email either in person or to the >newsgroup if needed. The best place to submit suspected problems is Intel Premier Support. If you have "how to" questions, feel free to use our user forum. The comp.lang.fortran newsgroup is not supposed to be a substitute for vendor support. Steve Lionel Software Products Division Intel Corporation Nashua, NH User communities for Intel Software Development Products [url down] Intel Fortran Support http://developer.intel.com/software/products/support/ |
|
|
| Similar Threads | |
| how to run Fortran codes in Compaq Visual Fortran? I have a bunch of Fortran applications from my adviser and I need use them to create a executable program. My adviser gave me a makefile to do the job. But honestly, I don't... |
|
| Compaq Visual Fortran discontinued: upgrade to Intel Visual Fortran? Hi, I use the latest version of Compaq Visual Fortran on a Windows system. CVF development is being discontinued as of the end of this year. They offer an upgrade to Intel... |
|
| makefile from linux lahey fortran to intel visual fortran on windows Hello! I am new with programming in fortran and I need some help with compiling. I have this program that uses a makefile for linux lahey fortran, and I want to make the... |
|
| Building DLLs with Compaq Visual Fortran and Intel Visual Fortran Dear all, I have lately decided to upgrade from (CVF) Compaq Visual Fortran 6.6 to (IVF) Intel Visual Fortran 8.1 My main task is CFD where I usually built... |
|
| Compaq Visual Fortran or Intel Fortran Compiler? Hey As a C/C++ programmer (Fortran newbie) I need to port a Fortran-77 (with extensions for namelist/IO, long variable names and include files) source to MS Windows. The... |
|
|
All times are GMT. The time now is 01:30 AM. | Privacy Policy
|