all groups > dotnet clr > july 2006
SOS.dll: How to do recursive objects enumeration - e.g. Get IPAddress from ArrayList of Socket objects
Posted by Loy at 7/30/2006 7:27:28 AM
Copied from:
http://groups.google.com/group/microsoft.public.windbg/browse_thread/thread/2c5ad160dd22be7f?
In VS you can expand the collection and then expand the sub objects
(and so on)
How can I do it in windbg + sos.dll
Consider the following cacses
If I have:
1. Socket[]
2. Arr... more >>
Determining executable code type
Posted by ebucis NO[at]SPAM gmail.com at 7/29/2006 5:29:17 AM
Hi,
I am developing an application that loads at runtime executable
code, investigates it and catalogs it (stores some information about
it).
When the executable is managed code, using reflection i can obtain the
metadata information and add it to the catalog. But when the executable
(exe ... more >>
std::transform with template function fails with /clr
Posted by Richard B68 at 7/27/2006 4:00:01 AM
Hello,
I'm porting some existing C++ code to VS2005 C++/CLI.
When I compile the following code with "No CLR support" it behaves as
expected (1 + 2 = 3) in all cases. When I compile it with /clr then
transform call using addFunc<int> suggests that 1 + 2 = 8b001cc4.
Anyone know what's goin... more >>
Unbox IL instruction question
Posted by Ben R. at 7/26/2006 12:08:02 PM
Thought this was a better forum for this question:
Hi,
I'm referring to:
http://msdn2.microsoft.com/en-us/library/system.reflection.emit.opcodes.unbox.aspx
There's a lot of stuff here that doesn't make sense to me. This page states:
A value type has two separate representations within ... more >>
Pointless IL Instructions?
Posted by Ben R. at 7/26/2006 12:07:02 PM
Thought this was a better forum for this question:
I've got a simple console app which just assigns 6 to an int and prints out
the value. The IL looks like:
..method public static void Main() cil managed
{
.entrypoint
.custom instance void [mscorlib]System.STAThreadAttribute::.ctor()... more >>
Efficiency of Adding References
Posted by Naveen at 7/24/2006 12:12:01 PM
1) Could someone tell me what are the steps invloved when the CLR loads
private assemblies on application startup (The assemblies are added to a
VS2005 Windows project using the Add References dialog).? Is it JIT loaded or
is it all done at app start up?
2) I guess this is related to question... more >>
which .NET assembly/class has 'using' inside
Posted by Michael Nemtsev at 7/23/2006 7:19:17 PM
Who knows, which .NET assembly/class has 'using' inside?
I've tried to check several classes with Reflector but found nothig.
I wonder whether .net FW classes use 'using' or everything realized with
try...finaly statements by hand?
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com... more >>
Thread Practices
Posted by dkisting NO[at]SPAM dankisting.com at 7/21/2006 6:16:21 AM
Hello,
What is the best way to recycle threads (and/or increase the number
allotted threads) from the thread pool. I have c# chat service which
many users connect. I have implemented some better thread managment
because I was seeing tons of "Not enough threads in thread pool to
complete ope... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DatePart result discrepancies when calculating ISO8601 week
Posted by Scienter at 7/20/2006 11:18:59 PM
Hi,
I was looking for a CLR and T-SQL solution to calculate ISO8601 week code
when I ran into a post your team has made here:
http://blogs.msdn.com/sqlclr/archive/2005/11/11/491981.aspx
Since we are still using SQL2000 and have not yet made the immediate
decision to switch to SQL2005... more >>
Building an array type by Reflection.Emit
Posted by Edgile at 7/20/2006 6:27:01 AM
The aim of my app is to auto-generate classes by System.Reflection.Emit.
Let's say that the targeted auto generated class should look like this:
public class MyClass
{
public static MyClass GetInstance(string id)
{
...
}
public static MyClass[] GetInstances()
{
..... more >>
Updated version of sos.dll for 2.0?
Posted by KerryJenkins NO[at]SPAM gmail.com at 7/19/2006 11:01:10 AM
Does anyone know the status of an updated version of sos.dll for .NET
2.0?
A new version of Debugging Tools for Windows was released on July 18th.
The faq on the new clr10/sos.dll says to use the original sos.dll that
ships with .NET 2.0. I would like to have the functionality available
in ... more >>
Match GetHashCode between .NET 1.1 app and non-.NET app
Posted by ALV at 7/18/2006 7:36:01 PM
Within a native C++ app , I need to be able to generate a hash for a given
string that matches the hash that the same string returns from the .NET 1.1
String.GetHashCode().
The .NET framework may not be on the machine, so I can't rely on it in any
way.
Does anyone know what the .NET 1.1 ... more >>
Feedback ID 115267
Posted by AndrewEames at 7/17/2006 8:43:01 AM
I filed a bug report and got the very unhelpful response that I should ask
here in the newsgroups for a workaround so here I am. If someone from
Microsoft could explain the cause of the bug I filed and offer a workaround,
I would be most grateful
Thanks
Andrew Eames
http://connect.mi... more >>
MFC exe Crashes with /clr option
Posted by Jacquie at 7/14/2006 10:50:52 AM
I have a MFC app that was developed with VC++ 2003 7.1 . I have now
upgraded to VC++ 2005 8.0. Eventually I plan on using a Windows Form
Control and hosting it on existing dialog.
1) First I compiled the project in 2005 and fixed a few errors and am
able to compile/run with seemingly no proble... more >>
application failed to initialize properly(0x80000003).
Posted by Deepanshu.Sandhuria NO[at]SPAM gmail.com at 7/13/2006 1:32:56 PM
I created a small application that does nothing other than bringing a
process up when ever it fails. It needs clr support. I compiled and
created the executable in windows 2000 with visual studio 2005. Now I
deployed the application on server 2003 and it displayed errors for
some missing dlls. I... more >>
C++, unmanaged code
Posted by Bill S. at 7/6/2006 3:20:19 PM
Dear programmers, I'm experimenting with a simple unmanaged template class.
The problem is that it won't except managed types. Any suggestions?
void MyFunc()
{
//This works fine.
XStack<int>* uc = new XStack<int>();
//This doesn't work!
XStack<ManagedClass*>* uc = new XSt... more >>
OptionalFieldAttribute not needed with BinaryFormatter in .net v2.
Posted by asanford at 7/6/2006 2:45:01 PM
The MSDN documentation, along with various articles online, such as this one
http://msdn.microsoft.com/msdnmag/issues/04/10/AdvancedSerialization/
claim that the BinaryFormatter will throw an exception if you try to
deserialize a stream that has missing members in it, and that the new
Opti... more >>
Bug in HttpWebRequest/Response Dispose() implementation?
Posted by Vagif Abilov at 7/5/2006 9:29:47 PM
Hello,
We have a simple piece of code that exchanges data using HTTP
request/reponse. It uses "using" statement to guarantee that the
communication channel is properly closed on completion. However, if the code
is executed multiple times, the first execution attempt works fine, but the
se... more >>
Sending Window Messages from an MFC app to a Windows Firm tray application
Posted by Janiv Ratson at 7/4/2006 1:50:37 PM
Hello,
I have an MFC MDI application and a Windows Forms (2.0) Tray Icon
application.
I want to run a command on the tray application via my MFC application.
There is a "Register" context menu command on the tray icon application.
I want to call the Register command from my MFC MDI applicati... more >>
Fixed string concatenation
Posted by Glenn at 7/4/2006 11:51:36 AM
Hi
I realise StringBuilder is generally better for building strings
dynamically, but for a fixed string built over a number of lines, would the
compiler recognise that the following could be represented as a single
string and optimise out reallocations?
Example
string myString = "Blah... more >>
Starting a process "cmd.exe" from within a service...
Posted by Marius at 7/3/2006 9:16:01 AM
I'm running a serice under a local admin account. The service runs specific
DOS commands (eg. "dir c:\") upon request using "cmd.exe". I create a
ProcessStartInfo and enter the user credentials in the UserName, Password and
Domain fields. The start the process using the ProcessStartInfo. Howev... more >>
|