473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Error with SOS while debugging a method with more than 64 parameters

missshaikh
Rick Byers : Func-eval can fail while stopped in a non-optimized managed method that pushes more than 256 argument bytes

check the above URL i have same error

"Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code is optimized."

how can i solve this???


if i extension C:\Windows\Microsoft.NET\Framework\v2.0.50727\sos. dll loaded
this on my VS immediate window
then its says

SOS not available while Managed only debugging. To load SOS, enable unmanaged debugging in your project properties.

Please help me out this.
i m very worried :'(
Jan 4 '09 #1
12 4115
Bassem
344 100+
Hello Missshaikh,

I think your problem is,
You are using sos.dll unmanaged library which you must set your solution properties to allow ummanaged code in debugging, do this:

from the solution explorer on left window or from view, RightClick on the solution icon -> Properties -> Debug
mark on "enable unmanaged code debugging" check box.
then Save.

I hope this will help you.
Regards,
Bassem
Jan 4 '09 #2
Thank you for reply,

i try to do this
solution icon -> Properties -> Debug
after this i can not find "enable unmanaged code debugging" check box.

i have this screen.
check my Image

Jan 5 '09 #3
Bassem
344 100+
Hi Missshaikh,
You only clicked on the wrong icon.
Your solution has the name click2city, Right Click on it.
It's the second icon not the first one on top.
Jan 5 '09 #4
Frinavale
9,735 Expert Mod 8TB
@missshaikh

When you get this error, are you "Debugging" the website or does it appear after you've published the website to a web server?

Have you tried publishing your site and seeing if it works there?
Jan 5 '09 #5
@Frinavale
yes this error come when i Debugging.not after the published .
:(
Jan 6 '09 #6
@Bassem

1st of all thanks for reply ..

the second icon is rebuild solution.and you said the click on Property.that is very last in Right Click on solution.
please can you give me snap shot for this?
Jan 6 '09 #7
Bassem
344 100+
So sorry for this mistake !
I was talking about windows-forms application not web.
I'm sorry Missshaikh, I may confuse you.

Hoping my apology to be accepted,
Bassem
Jan 6 '09 #8
Frinavale
9,735 Expert Mod 8TB
Yesterday I did a bit of research on your error and the best explanation that I found for what's going on is the debugger is having problems determining when it is appropriate to call the garbage collector while your DLL is running.

It doesn't appear to be anything wrong with your code but is rather a bug in the Visual Studio debugger.

I didn't find the answer to fixing this problem yesterday... I was hoping that Bassem had the answer.

Have you tried skipping over the error?
Or does the error stop the application completely?
Could you catch it and ignore it for now while you need to do debugging?
Jan 6 '09 #9
when this error comes my all other logic that based on that not runing.so it must to run . after the error it not stop my web application bcoz i catch this error.but try catch is not a rite solution i need a rite solution bcoz i need to run my all code.

Rick Byers : Func-eval can fail while stopped in a non-optimized managed method that pushes more than 256 argument bytes

check this link please and see this it is same as my error.
Jan 7 '09 #10
Frinavale
9,735 Expert Mod 8TB
Does your code push more than 256 bytes of arguments onto the stack (are you passing large amounts of data between functions)?

Do you have a function that has 64 (or more) arguments?

What are you trying to debug?

Have you seen this article?
Jan 7 '09 #11
yes my functionis more then 64 arguments...
can you give me the URL or help for this?

i have a function that have more then 64 arguments.
can'nt i create the function more then 64 arguments???
why?
Jan 18 '09 #12
Frinavale
9,735 Expert Mod 8TB
According to that article that you linked us to, you cannot have a method with more than 64 parameters because it pushes too much data onto the stack.

You need to re-think your function so that it uses less parameters.

Consider grouping the data into an Object and passing this data as a single Object instead of a whole bunch of individual values. When you pass ByVal, it pushes a copy of the item onto the stack, but when you pass an Object ByVal you are only passing a reference to the Object.

-Frinny
Jan 19 '09 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
6
by: jason | last post by:
I am picking up an error message on a straightforward INSERT - do I need an optimistic-type to get this working....here is is the error: Microsoft JET Database Engine error '80004005' Operation...
9
by: Eddie J | last post by:
I'm getting an intermittent error when calling a .NET web service from a .NET console application. Both are using v.1.1.4322 of the framework. Any ideas on what could be causing this? It can...
7
by: Spacen Jasset | last post by:
The main two desirable things I feel error handling should provide are these: 1) Debugging and diagnostic aid 2) User feedback One method that is used a fair amount it to 'say' that all...
6
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by...
7
by: Brett | last post by:
I'm not sure why I keep getting this error, "Object reference not set to an instance of an object". Private Function somefunction() as string Dim MyCurrentClass As New Class1 Try For i As...
6
by: miky | last post by:
Hi, I'm trying to get custom gridview paging working and I'm getting the following error: "ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'count' that has parameters:...
5
by: Omer | last post by:
Hi, I am using C# 2.0 along with MS Access database. All my queries are working perfectly fine, but one inner join query is ocntinously throwing. I ahve tried it both from code and running...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.