Generated a debug diagnostic dump file for a COM+ application. Upon analysis look like threads deadlocks at line OLE32!SwitchSTA. My symbol path is pointing to msdl.microsoft.com/download/symbols. Is there way to know what arguments were passed to this method?
In general, how does one use Windbg to find the input argument value to the method call?…
Hello
I'm trying to use an event dispatcher to allow a model to notify subscribed listeners when it changes. the event dispatcher receives a handler class and a method name to call during dispatch. the presenter subscribes to the model changes and provide a Handler implementation to be called on changes.
Here's the code (I'm sorry it's a bit…
Hi, is there anyway I can test if a method exist in Objective-C?
I'm trying to add a guard to see if my object has the method before calling it.
Thanks,
Tee
When logging in C#, how can I learn the name of the method that called the current method? I know all about System.Reflection.MethodBase.GetCurrentMethod(), but I want to go one step beneath this in the stack trace. I've considered parsing the stack trace, but I am hoping to find a cleaner more explicit way, something like…
I have a REST web method in .NET 3.5:
[OperationContract]
[WebInvoke(UriTemplate = "", Method = Verbs.Get)]
public string GetBar()
{
return "foo";
}
The response gets formatted as <string>foo</string> while I would prefer <bar>foo</bar> instead. Does anyone know how to do that? I feel I am…
Is there any technique available in Java for intercepting messages (method calls) like the method_missing technique in Ruby? This would allow coding decorators and proxies very
easily, like in Ruby:
:Client p:Proxy im:Implementation
------- ---------- …
Why is the setContextClassLoader() method placed on thread ?
What different thread have different classloaders?
The question is what if i extended a classloader , loaded there some new classes. to the my custom classloader.
Now , I want it to be the context classloader , so I call the method…
When a method is defined with an out parameter, why do I have to specify the out keyword when calling it. Its already there in the method definition, and the runtime should know that any parameter passed will be an out parameter.
It would make sense if the compiler will accept the argument with…
Is there a way to tell to VS2005 to get compiler error when using "some defined" method?
It probably sounds strange, but I do not want to compile when using Decimal.Round().
Reason:
CF does not round by "awayfromzero", so I created a method to do this job.
But sometimes I (and team) forget…
I use sql server 2005 and asp.net C#.
Is there any two-way encryption method for int column of a table?
It can be user-defined-function in sql server 2005 or C# method.
It is possible to reference a generic method using a Lambda Expression Object?
For example, having:
TheObject:
public abstract class LambdaExpression : Expression
TheMethod (an extension method of LINQ):
public static TSource Last<TSource>( this IEnumerable<TSource> source )
…
I've read that all stl containers provide a specialisation of the swap algorithm so as to avoid calling the copy constructor and two assignment operations that the default method uses. However, when I thought it would be nice to use a queue in some code I was…
Hi,
In an extension method how do a create an object based on the implementation class. So in the code below I wanted to add an "AddRelationship" extension method, however I'm not sure how within the extension method I can create an Relationship object? …
I have a C# class method that return a xml document not file.
How to read C# method output from javascript???
I don't wont to use script manager.
Any ideas?
JAVA - NETBEANS
This is an IDE question
I am always working with collapsed methods, because I want to be able to see my methods all together. This is a little time consuming because I have to use the mouse to scroll up to the declaration of the method…
This is a question about tidyness. The project is already working, I'm satisfied with the design but I have a couple of loose ends that I'd like to tie up.
My project has a plugin architecture. The main body of the program dispatches work to the…
Is there any way to query the name of the current method if you've obfuscated your code? I'm asking because there are times when I want to log a message with the executing method as a prefix.
Is it possible to get the parameter names of a method ?
Example with:
def method_called(arg1, arg2)
puts my_method.inspect
end
I would like to know what method (my_method) should I call to get the following output:
["arg1", "arg2"]
Hi,
Suppose that I have created a method like this
private void Test<t>(t str)
{
}
Now from another method i call it
private void BtnClick()
{
string a = "";
test<Here I Want To assign The Type what ever the type of 'a'…
I know that ArrayDeque offers both ends of processing (head and tail) but what i don't understand why the method offerlast() is equivalent to offer() method of Queue interface. Why not offerfirst()? Pleae advice. Thanks
I'm just a newbie to ruby. I've seen a string method (String).hash .
For example, in irb, I've tried
>> "mgpyone".hash
returns
=> 144611910
how does this method works ?
Hi,
I'm faced with a big old stack of method calls in some legacy code, one or some of which is creating a bottleneck and really slowing things down. Is there any quick way I can get a report on which method calls are taking the time, short of…