- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wrote this as a simple program and it works fine - although it prefere IFPORT - now as a routine in WLF I get an access code violaton on run Life is a long beach and the life guard is always at the other end ! **************************************************************** ! subroutine chdirA(i) ! ! **************************************************************** use IFPOSIX implicit none CHARACTER(len=255) :: path integer i,ilen, ierror CALL PXFGETCWD (path,ilen,ierror) WRITE(*,*) TRIM(path) call PXFCHDIR("C:\",3,i) call PXFCHDIR("users\macne\documents\Visual Studio 2013\Projects\Program070 - Beams\Lothurr",76,i) write(*,*)i CALL PXFGETCWD (path,ilen,ierror) WRITE(*,*) TRIM(path) return end subroutine
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It crashed in WULF as a subroutine - with access code violation at the first chdir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It seems evident to me that your WULF program has issues with stack corruption. I doubt this CHDIR routine is relevant. I can reproduce the stack corruption (from your other thread) but it may take me a while to track down.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page