System.Exception: Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation.

2,415 views
Skip to first unread message

Venkatu

unread,
Jun 16, 2010, 2:36:32 AM6/16/10
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
have this code


DataRow[] dr;
dr = dt.Select("stepid = '1' AND placeid = " +
Convert.ToInt32(h1.Value));



so dt -- contains so many Rows from that i am going to filtering the
data and add that row to the another DT - Finally bind the Dt to the
Dropdownlist .

Could anyone tell how to resolve this issue ?

But it shows error :


************** Exception Text **************
System.Exception: Function evaluation disabled because a previous
function evaluation timed out. You must continue execution to reenable
function evaluation.
at
Microsoft.VisualStudio.DebuggerVisualizers.DebugViewerShim.PrivateCallback.MaybeDeserializeAndThrowException(Byte[]
data)
at
Microsoft.VisualStudio.DebuggerVisualizers.DebugViewerShim.ManagedShim.DelegatedHost.CreateViewer(IntPtr
hwnd, HostServicesHelper hsh, SafeProxyWrapper proxy)

Raghupathi Kamuni

unread,
Jun 16, 2010, 3:56:02 AM6/16/10
to dotnetde...@googlegroups.com
 
Excerpts From the above link
=======================
 
Question
Couple more that come to mind (although again, I can only verify it's in 2005 and has been around for several versions);

1. The dreaded "Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation" debugger error. I currently get this on a small WinForms app I run every time an exception gets hit, so I have to kill program execution, put a try/catch around it that dumps out hte stack trace, and then re-run because the debugger is effectively dead at this point. I've gotten this before on other projects; once the IDE starts doing this, it doesn't stop and in fact gets worse and worse, even after rebooting the machien.


Reply:

In VS2005 (and earlier) the main cause of functions timing out in the debugger was thread switching (which could be triggered by something as simple as accessing a WinForms property in the wrong context).  Since all other threads were stopped, the system would hang until it timed out.  In VS2008 we eliminated this issue by hooking thread switching calls (when in debugger expression evaluation) and failing them immediately.  So the likelihood that you'll encounter that particular problem should be substantially reduced.

Unfortunately most applications, including VS, deal poorly with slow / unreliable network connections.  For now, the best you can do is either fix the lag or disconnect entirely from the network (both of which have their issues).  Long term, we need to do a better job of designing applications to deal with the wide ranges of network performance.

David Berg
Developer Division Performance Engineering Team

Troy International

unread,
Jun 16, 2010, 7:02:57 AM6/16/10
to dotnetde...@googlegroups.com
Hi , Thanks for your info..

I am working with .net 2.0 so how to resolve this issue.ie:

you can check my issue here.. in detail.

http://forums.asp.net/t/1524963.aspx

Any idea..

Raghupathi Kamuni

unread,
Jun 16, 2010, 8:28:56 AM6/16/10
to dotnetde...@googlegroups.com
I used your code to create products dropdown from northwind database, it works fine for me
 
http://dotnetdevelopment.pastebin.com/BGFVEZhc

Did you define the columns of Options_DataTable ?

Troy International

unread,
Jun 16, 2010, 9:15:16 AM6/16/10
to dotnetde...@googlegroups.com
hi its working on local ..and also i checked by having 500 rows on your Datatable , and use select whether you getting the value or not .. for me the dr shows 0

I checked on local ie: if the data in the Datatable has limited record i: 340 or something , i am getting the value at dr  but if there is more than 800 records  the dr shows 0 value..

I do no why ?

Stephen Russell

unread,
Jun 16, 2010, 9:38:26 AM6/16/10
to dotnetde...@googlegroups.com
On Wed, Jun 16, 2010 at 8:15 AM, Troy International <troy...@gmail.com> wrote:
> hi its working on local ..and also i checked by having 500 rows on your
> Datatable , and use select whether you getting the value or not .. for me
> the dr shows 0
>
> I checked on local ie: if the data in the Datatable has limited record i:
> 340 or something , i am getting the value at dr  but if there is more than
> 800 records  the dr shows 0 value..
>
> I do no why ?
---------------------------------

Considering that this array is to be used for a drop down list. If
you have 300 items are you already over the point of useful? I know
you can "present" it but can a user consume it?

Can you do a dataview from the dt?

--
Stephen Russell

Sr. Production Systems Programmer
CIMSgts

901.246-0159 cell

Stephen Russell

unread,
Jun 16, 2010, 8:53:06 AM6/16/10
to dotnetde...@googlegroups.com
On Wed, Jun 16, 2010 at 1:36 AM, Venkatu <troy...@gmail.com> wrote:
>  have this code
>
>
>  DataRow[] dr;
>  dr = dt.Select("stepid = '1' AND placeid = " +
> Convert.ToInt32(h1.Value));
>
>
>
> so dt -- contains so many Rows from that i am going to filtering the
> data and add that row to the another DT - Finally bind the Dt to the
> Dropdownlist .
>
> Could anyone tell how to resolve this issue ?
-----------------

Do another query against the db with the filter in place.

Or make a dataview off the dt.

Troy International

unread,
Jun 17, 2010, 5:03:24 AM6/17/10
to dotnetde...@googlegroups.com
hi.. previous i used to query on DB so as it takes some time so i just pass the DB recrod to XML file so from the xml i am going to get the Dataset or Datatable - from that i filter the data.

So why if the Datatable contains 500 or more records , while filtering the data it doesn't get the value it shows null is this bug ...... ??? or how to solve this issue..

On Wed, Jun 16, 2010 at 7:08 PM, Stephen Russell <sruss...@gmail.com> wrote:

Raghupathi Kamuni

unread,
Jun 18, 2010, 2:02:32 AM6/18/10
to dotnetde...@googlegroups.com
Apply the filter when you fill the DataSet or DataTable from XML and use it directly, so that you avoid filtering on DataTable (using DataTable.Select)

Troy International

unread,
Jun 18, 2010, 2:17:11 AM6/18/10
to dotnetde...@googlegroups.com
i Relsoved the issue but i have another problem
ie:

on page_load only one time ie: i written the code on isPostback so there i get the xml file to dataset -- here the dataset has been set has static  dataset on top of page Load


so while i use paging on Gridview so for each paging i am getting the data  from the dataset so if i going to 5 or 6 paging i got duplication ie : the same data binded 2 or 3 time i do no why it happen like that..
Reply all
Reply to author
Forward
0 new messages