Search found 83 matches: intermittant

Return to advanced search

Re: Intermittant xBrowse ADO error ( again )

Mr Rick I had earlier suggested a trick, which I don't think you tried till now. Please try this once. Instead of  oBrw:End()  oRsVEH:CLose()  substitute oBrw:lCreated := .f.oRsVEH:CLose()  What is happening now is, after closing the RecordSet, Browse is b...
by nageswaragunupudi
Fri Aug 07, 2009 5:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Intermittant xBrowse ADO error ( again )
Replies: 61
Views: 13212

Intermittant xBrowse ADO error ( again )

... advice on closing the browse .. there somewhere from line 957 in the xbrowse code .. the chain of events are still fireing that lead to this intermittant failure. Any Hints ?? Rick Lipkin
by Rick Lipkin
Fri Aug 07, 2009 4:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Intermittant xBrowse ADO error ( again )
Replies: 61
Views: 13212

Re: Intermittant ADO xBrowse error ( thread with Antonio )

James Here is the latest iteration of the setado method and the GetKeycount() trap for the recordset being nil. Upon a valid close .. for some reason the ::oRs becomes nil prematurely or ( perhaps ) the SetAdo method is being called after the recordset has been destroyed .. thus causing the error. T...
by Rick Lipkin
Sun Aug 02, 2009 5:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Intermittant ADO xBrowse error ( thread with Antonio )
Replies: 11
Views: 4167

Re: Intermittant ADO xBrowse error ( thread with Antonio )

Rick,

Did you find a solution for this? I find that intermitant errors like this are generally caused by lags in the event que, and are usually solved by a sysrefresh(). I didn't see any mention of sysrefresh() in the thread, did you try that? Also, you could try a timer if that doesn't work.

James
by James Bott
Sun Aug 02, 2009 4:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Intermittant ADO xBrowse error ( thread with Antonio )
Replies: 11
Views: 4167

Re: Intermittant ADO xBrowse error ( thread with Antonio )

Rao I have had the valid clause like that already and I continue to get the errors VALID ( IIF( !lOK, ( oBrw:End(), _VehClose(.T.) ), .F. )) Antonio made this suggestion so that the listbox does not repaint .. but for some reason the setado method still fires even after the oRs:Close() .. and that ...
by nageswaragunupudi
Wed Jul 22, 2009 11:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Intermittant ADO xBrowse error ( thread with Antonio )
Replies: 11
Views: 4167

Re: Intermittant ADO xBrowse error ( thread with Antonio )

Rick Lipkin wrote:Enrico, Rao

The data is on a SQL server and does not translate well to .dbf ( rdd ) nor to Access.mdb


I don't think that the SQL engine used has anything to do with your problem. Unfortunately is almost impossible (at least for me) to help you without a sample.

EMG
by Enrico Maria Giordano
Wed Jul 22, 2009 8:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Intermittant ADO xBrowse error ( thread with Antonio )
Replies: 11
Views: 4167

Re: Intermittant ADO xBrowse error ( thread with Antonio )

Rao I have had the valid clause like that already and I continue to get the errors VALID ( IIF( !lOK, ( oBrw:End(), _VehClose(.T.) ), .F. )) Antonio made this suggestion so that the listbox does not repaint .. but for some reason the setado method still fires even after the oRs:Close() .. and that i...
by Rick Lipkin
Wed Jul 22, 2009 6:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Intermittant ADO xBrowse error ( thread with Antonio )
Replies: 11
Views: 4167

Re: Intermittant ADO xBrowse error ( thread with Antonio )

VALID ( IIF( !lOK, ( oBrw:End(), _VehClose(.T.) ), .F. ))

This solves the entire problem
by nageswaragunupudi
Wed Jul 22, 2009 3:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Intermittant ADO xBrowse error ( thread with Antonio )
Replies: 11
Views: 4167

Re: Intermittant ADO xBrowse error ( thread with Antonio )

Enrico, Rao The data is on a SQL server and does not translate well to .dbf ( rdd ) nor to Access.mdb .. What sets this code apart from the usual .. since this table contains so many rows .. I use a wrapper to call _OpenUM() and the oRsVeh is actually defined static but not initialized until the pro...
by Rick Lipkin
Wed Jul 22, 2009 2:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Intermittant ADO xBrowse error ( thread with Antonio )
Replies: 11
Views: 4167

Re: Intermittant ADO xBrowse error ( thread with Antonio )

To All Antonio has been working with me on the above subject .. I contuinue to get intermittant ADO errors in the setado method of code .. Here is the thread and some of the suggested fixes .. if anyone would like to add their comments .. please feel free .. this ...
by Enrico Maria Giordano
Wed Jul 22, 2009 9:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Intermittant ADO xBrowse error ( thread with Antonio )
Replies: 11
Views: 4167

Re: Intermittant ADO xBrowse error ( thread with Antonio )

Mr Rick Will you please try this and see if you are still getting errors ? VALID ( oBrw:lCreated := .f., oRs:Close(), .t. ) If this works we can suggest a neater modification to XBrowse. Note: If oBrw:lCrated is false, XBrowse does not paint. I have a hunch that this should work. If ...
by nageswaragunupudi
Wed Jul 22, 2009 4:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Intermittant ADO xBrowse error ( thread with Antonio )
Replies: 11
Views: 4167

Re: Intermittant ADO xBrowse error ( thread with Antonio )

If( ::oRs != nil .and. ::oRs:RecordCount() > 0, ...

This check is not enough. oRs may not be nil, but it is closed.
The code should be :
If( ::oRs != nil .and. ::oRs:State > 0 , ...... )
by nageswaragunupudi
Wed Jul 22, 2009 4:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Intermittant ADO xBrowse error ( thread with Antonio )
Replies: 11
Views: 4167

Re: Intermittant ADO xBrowse error ( thread with Antonio )

This kind of problems come when the browse window is refreshed after the recordset is closed. This problem is not confined to ADO. This happens even for RDD, if the DBF is closed by the time the refresh takes place. Closing recordset or dbf should happen as the Very Last action before closing the wi...
by nageswaragunupudi
Wed Jul 22, 2009 3:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Intermittant ADO xBrowse error ( thread with Antonio )
Replies: 11
Views: 4167

Intermittant ADO xBrowse error ( thread with Antonio )

To All Antonio has been working with me on the above subject .. I contuinue to get intermittant ADO errors in the setado method of code .. Here is the thread and some of the suggested fixes .. if anyone would like to add their comments .. please feel free .. this ...
by Rick Lipkin
Tue Jul 21, 2009 11:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Intermittant ADO xBrowse error ( thread with Antonio )
Replies: 11
Views: 4167

Re: Intermittant ADO xBrowse error on valid close

I don't know why you didn't build a reduced and self-contained sample of the problem. It would be much easier to help you.

EMG
by Enrico Maria Giordano
Mon Jul 13, 2009 12:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Intermittant ADO xBrowse error on valid close
Replies: 8
Views: 1469
PreviousNext

Return to advanced search