replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - error 359
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 

error 359

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



Joined: 11 Jul 2010
Posts: 6
Location: Australia

PostPosted: Mon Aug 02, 2010 1:51 am    Post subject: error 359 Reply with quote

Repeated calls to an integer function causes error 359 the function supplied as argument 2 is corrupt.

I can not find any help for this condition.

Any help would be appreciated.

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


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

PostPosted: Mon Aug 02, 2010 7:46 am    Post subject: Reply with quote

Can you provide a short, fully working program that illustrates the problem?
Back to top
View user's profile Send private message AIM Address
peterk



Joined: 11 Jul 2010
Posts: 6
Location: Australia

PostPosted: Tue Aug 03, 2010 5:41 am    Post subject: Reply with quote

program form_test
! select form
implicit none
integer i, formmain
external formmain
i=winio@('%ca[SCREEN 1]&')
i=winio@('%6nl%`^bt[SELECT FORM]',formmain
end

integer function formmain()
! enter details
impliit none
integer i,formok,formend
external formok,formend
i=winio@('%ca[screen 2]&')
i=winio@('%6nl%`^bt[ENTER DETAILS]&',formok)
i=winio@('%2ta%`^bt[ EXIT ]',formend)
formmain = 2
end function

integer function formok()
formok = 2
end function

integer function formend()
formend = 0
end function

press select form
press enter details 3 times
press exit
repeat (if possible)
Back to top
View user's profile Send private message
peterk



Joined: 11 Jul 2010
Posts: 6
Location: Australia

PostPosted: Tue Aug 03, 2010 5:42 am    Post subject: Reply with quote

program form_test
! select form
implicit none
integer i, formmain
external formmain
i=winio@('%ca[SCREEN 1]&')
i=winio@('%6nl%`^bt[SELECT FORM]',formmain
end

integer function formmain()
! enter details
impliit none
integer i,formok,formend
external formok,formend
i=winio@('%ca[screen 2]&')
i=winio@('%6nl%`^bt[ENTER DETAILS]&',formok)
i=winio@('%2ta%`^bt[ EXIT ]',formend)
formmain = 2
end function

integer function formok()
formok = 2
end function

integer function formend()
formend = 0
end function

press select form
press enter details 3 times
press exit
repeat (if possible)
Back to top
View user's profile Send private message
Wilfried Linder



Joined: 14 Nov 2007
Posts: 314
Location: D�sseldorf, Germany

PostPosted: Tue Aug 03, 2010 6:28 am    Post subject: Reply with quote

Peter, I made three changes:

i=winio@('%6nl%`^bt[SELECT FORM]',formmain) --> final bracket was missing

implicit none --> character "c" was missing

i=winio@('%2ta%^bt[ EXIT ]',formend) --> remove ` [accent grave] / only one is allowed within a winio@ window

After that, everything runs properly.

Regards,
Wilfried
Back to top
View user's profile Send private message
peterk



Joined: 11 Jul 2010
Posts: 6
Location: Australia

PostPosted: Thu Aug 05, 2010 2:09 am    Post subject: Reply with quote

Sorry about the typos. Thanks the information.

peterk
Back to top
View user's profile Send private message
peterk



Joined: 11 Jul 2010
Posts: 6
Location: Australia

PostPosted: Fri Aug 06, 2010 2:05 am    Post subject: Reply with quote

PROGRAM form_test
!
! Select Form
!
IMPLICIT NONE
INTEGER i,formmain
EXTERNAL formmain
I=WINIO@('%ca[SCREEN 1]&')
I=WINIO@('%2NL%`^BT[SELECT FORM]',formmain)
END


INTEGER FUNCTION formmain()
!
! Enter Details
!
IMPLICIT NONE
INTEGER i,formok,formend
EXTERNAL formok,formend
I=WINIO@('%ca[SCREEN 2]&')
I=WINIO@('%6NL%`^BT[ ENTER DETAILS ]&',formok)
I=WINIO@('%2TA%^BT[ EXIT ]',formend)
formmain = 2
END FUNCTION


INTEGER FUNCTION formok()
!
! Record Details
!
formok = 2
END FUNCTION

INTEGER FUNCTION formend()
formend = 0
END FUNCTION

I corrected the program as you recommended but the error still occurs.
Back to top
View user's profile Send private message
Wilfried Linder



Joined: 14 Nov 2007
Posts: 314
Location: D�sseldorf, Germany

PostPosted: Fri Aug 06, 2010 7:21 am    Post subject: Reply with quote

That's funny... I compiled + linked + ran the programme with and without checkmate. No errors, no warnings, everything works as it should do. I used the latest version of FTN95 under Windows 7 / 64 bits. Then "select form", after that "enter details" two or three or four or ... times, "exit", repeat it etc. No more idea, sorry...

Regards, Wilfried
Back to top
View user's profile Send private message
peterk



Joined: 11 Jul 2010
Posts: 6
Location: Australia

PostPosted: Sat Aug 07, 2010 1:31 am    Post subject: Reply with quote

I am using Silverfrost Exress version 1.0.0.0. Maybe that is causing the problem.

I have checked and the program will run OK if compiled and linked via Plato. I would appear that the problem is Silverfrost Express. Where do I get help with this type of problem?

Thanks for your help

peter
Back to top
View user's profile Send private message
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