replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Access violation
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Access violation

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
PPPO



Joined: 04 Nov 2012
Posts: 6

PostPosted: Sun Jan 20, 2013 7:19 pm    Post subject: Access violation Reply with quote

Hi
Anyone seen this error?
It occurs when trying to call subroutine:





Code:
    SUBROUTINE PROPAGATION()

      USE VARIABLES

!.....WEST
!
   DO J=1,NJ
   DO I=1,NIM
   IF (.NOT.OBST1(I+1,J)) THEN
       FIN(3,I,J) = FOUT(3,I+1,J)
      ELSE
      X=(X_CYL-(R**2-(J-Y_CYL)**2)**0.5)
      Q=ABS(X-I)
      !FIN(3,I,J)=(1/(1+Q))*(Q*FOUT(1,I,J)+(1-Q)*FOUT(1,I-1,J)+Q*FOUT(3,I,J))
         IF (Q<0.5) THEN
         FIN(3,I,J)=(2*Q*FOUT(1,I,J))+(1-2*Q)*FOUT(1,I-1,J)
         ELSE
         FIN(3,I,J)=(1/(2*Q))*FOUT(1,I,J)+((2*Q-1)/(2*Q))*FOUT(3,I,J)
         END IF
      END IF
   ENDDO
   ENDDO

!
!.....NORTH-WEST
!
  DO J=NJ,2,-1
   DO I=1,NIM
   IF (.NOT.OBST1(I+1,J-1)) THEN
     FIN(6,I,J) = FOUT(6,I+1,J-1)
    ELSE   
    B=I+J-Y_CYL
    DELTA=(X_CYL+B)**2-2*(X_CYL**2+B**2-R**2)
    X=((B+X_CYL)-(DELTA**0.5))/2
    Q=ABS(X-I)
   ! FIN(6,I,J)=(1/(1+Q))*(Q*FOUT(8,I,J)+(1-Q)*FOUT(8,I-1,J+1)+Q*FOUT(6,I,J))
    IF (Q<0.5) THEN
    FIN(6,I,J)=(2*Q*FOUT(8,I,J)+(1-2*Q)*FOUT(8,I-1,J+1))
    ELSE
    FIN(6,I,J)=(1/(2*Q))*FOUT(8,I,J)+((2*Q-1)/(2*Q))*FOUT(6,I,J)
    END IF
      END IF
      ENDDO
   ENDDO
return
end
[/code]
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2615
Location: Sydney

PostPosted: Mon Jan 21, 2013 3:29 am    Post subject: Reply with quote

Try compile with /check or at least /debug and hope for a better error report.
I am not familiar with the IDE environment you are using, but there have been a few similar screen dumps like this lately. I compile, link and run in a cmd.exe box and usually get a much better error report. I have a simple .bat file to manage all this, resulting in an apparently much more robust outcome.
Why do you run your programs in these IDE's if the diagnostics are so poor ?

John
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8210
Location: Salford, UK

PostPosted: Mon Jan 21, 2013 8:47 am    Post subject: Reply with quote

When using the Silverfrost plug-in for Visual Studio (or Plato), uses should select Checkmate from the toolbar before testing their code.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group