Normal Topic Error While executing Following (Read 717 times)
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Error While executing Following
Jul 1st, 2008 at 7:59pm
Print Post Print Post  
I am getting error after following code every time.

if vStr1 = "Print Recall Letters" then
           {
                 vRSHandle = @XResultSetSearch(@FN, "Index", SEARCH_MODE_AND, SEARCH_SYNTAX_QA, "!Print_Recall_Letters=1")
                    
                 If(vRSHandle > -1)
                       {
                             ClientLocalValue ("Print_Recall", "Go For IT")      
                             XResultSetSort (vRSHandle, "DateEntered:1")
                             XResultSetOpenForm(vRSHandle, "Recall")            
                                         
                       }
                 xResultSetClose (vRSHandle)
           

           }


After executining,  XResultSetOpenForm(vRSHandle, "Recall"), the focus goes to the newly opened Recall form and I believe, xResultSetClose (vRSHandle) is not executed.  Am I doing anything wrong?      
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Error While executing Following
Reply #1 - Jul 1st, 2008 at 11:33pm
Print Post Print Post  
The XResultSetClose should be inside the check for handle > -1 right after the XResultSetOpenForm call. Other than that, it looks ok at a quick look.

What error do you get?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Error While executing Following
Reply #2 - Jul 2nd, 2008 at 6:01am
Print Post Print Post  
It does not give the error message but the system crashes and when I open the DETAILED button, it gives pretty long window error message.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Error While executing Following
Reply #3 - Jul 2nd, 2008 at 12:40pm
Print Post Print Post  
Does the part of my sample that does this crash for you?
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Error While executing Following
Reply #4 - Jul 2nd, 2008 at 12:46pm
Print Post Print Post  
After re-booting the computer, it did not crash a couple times that I tried. I guess, it was Windows issue and may be memory issue but I do have 2Gig of Operating memory.  Your Sample program worked fine and it did not crash. Thanks. I will let you know if it crashes again regularly.
  
Back to top
 
IP Logged