all groups > dotnet clr > october 2006
Need clarification on Mutex.WaitOne method.
Posted by Ken Varn at 10/31/2006 4:49:31 PM
If I have a thread that calls WaitOne() on a Mutex object with no arguments,
is the Mutex owned by the calling thread once the WaitOne() call returns?
The documentation states that when no arguments are passed to WaitOne() that
it translates to a WaitOne(-1,false) call.
I am confused about... more >>
ToolboxItemFilter - can't get it to work!
Posted by AJ at 10/30/2006 10:34:45 PM
Why oh why can't I get the following working :-) (Studio2005)
I'm trying to use ToolboxItemFilter to restrict what controls are
available when desiging a custom control. So I've a trivial example
application:
[ToolboxItemFilter("Test",ToolboxItemFilterType.Require)]
public class MyDes... more >>
GetMethod AmbiguousMatchException in VB but not in C# - Need Help
Posted by De Roeck at 10/29/2006 4:01:24 PM
I want to launch an application by reflection and get his handle
back.
But when I run this code in C# then it's handled correctly.
The application(-path) is started on a new thread and obj is the hwnd
of the started application.
private static BindingFlags allFlags = BindingFlags.Public |
... more >>
Exception on Application.Exit()
Posted by Armin Prosch at 10/29/2006 1:54:02 PM
Hello,
when my application shuts down via Application.Exit() I get a message box
with the text ["unknown software exception" 0x80000003 on .....]. In the
application I use DirectShow (via directshow.net) and managed DirectX.
Besides that I start a tcp listener in a seperate thread but grace... more >>
ManualResetEvent.Set throws :"The handle is invalid."
Posted by John Aldrin at 10/26/2006 4:30:02 PM
Hi,
Anyone know why the Set method would throw a System.IO.IOException w/a
message of "The handle is invalid."?
I have used Windbg to examine the ManualResetEvent object and it appears to
be valid (handle > 0 value, safeWaitHandle private var agress w/handle, state
of 4)
Following out... more >>
Question about file write bufferring.
Posted by Ken Varn at 10/26/2006 2:48:45 PM
I have used the FileStream class to write to a file, however I have some
questions concerning disk i/o buffering.
I come from the C++ world where there is a little more control over file
buffering and it would appear that some of this control is masked out when
using the .NET File I/O class... more >>
Is there a way to find what objects are referencing another object
Posted by Scythen at 10/25/2006 8:49:02 AM
I am writing a class library to be used with native C++ programs and I need
to ensure all of the managed objects in the library have been freed. Some of
my managed objects hold unmanaged interfaces provided by the application.
Some of these interfaces are unmanaged D3D interfaces.
The syste... more >>
Confusion about distribution
Posted by Bilz at 10/25/2006 7:24:47 AM
All,
I have been developing in VS2005 (C# .NET 2.0) for some time now. We
use the Microsoft MSHTML control, so my application binds to version
7.0.3300.0 of Microsoft.mshtml.dll (the default MSHTML dll in VS2005).
This is a problem, it seems, because on a machine that does not install
VS2005... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Regex: trying to retrieve a specific value
Posted by Marco Shaw at 10/23/2006 11:10:42 AM
I wasn't sure if .clr was the best .Net group to post to...
My original posting was in the powershell group. It seems the solution will
require some .Net magic, so I'm posting here.
In the original message below, I have a string, and am trying to match a
specific grouping of "<b>...</b>".... more >>
Compiling .NET assembly to equivalent native code
Posted by LOST at 10/21/2006 4:43:15 AM
I need to compile .NET assembly to native code. Microsoft's utility
NGEN does not produce an executable file. Instead of this, it places
the precached image to WinDir\Prefetch.This image is not a PE file.
I need the one producing PE or equivalent code in C or C++ native. Can
anybody help?
... more >>
Side-By-Side Assembly Loading -- Same App Domain -- 2 versions of same Assembly
Posted by Howard Hoffman at 10/20/2006 10:05:42 AM
I have an ASP.NET application that uses an assembly 'A'. 'A' is strongly
named, culture-neutral and is at version 1.1.2.444.
I have another assembly 'P' that is built against version 1.2.3.22 of
assembly 'A'.
Is it possible for me to dynamically load assembly 'P' in my application
such th... more >>
Environment-specific config files
Posted by kh at 10/19/2006 1:08:01 AM
As with all projects, our config files need to be edited as the application
is migrated through it's various environments (e.g. connection strings for
DEV, UAT, etc.) We also have sections that are specific to particular
developers (e.g. logging paths, etc) and some sections which are owned by... more >>
Conditional Breaks
Posted by McWawa at 10/17/2006 12:24:10 PM
Hi people,
Q: Is there a way to add a conditional break, so that execution breaks if
the value of a variable changes.
A: Yes there is, silly.
Q: But I want execution to halt whenever that variable changes, in ANY line
throughout my code, without having to set a gazillion breakpoints in ev... more >>
Calling Managed functions from unmanaged class
Posted by Amit Dedhia at 10/11/2006 4:16:35 PM
Hi All
I have a VC++ 2005 MFC application with all classes defined as
unmanaged classes. I want to write my application data in xml format.
Since ADO.NET has buit in functions available for this, I want to use
it. Is it possible to call Managed class functions from Unmanaged
class? How to do ... more >>
Emit.Call failing on non-value types
Posted by Johannes Hansen at 10/11/2006 3:29:02 AM
Im currently updating my dynamic comparer class (which you can read about on
codeproject) but I've run into a slight problem which I hope you guys can
help me with...
My current emit code looks similar to this:
il.EmitCall(OpCodes.Call, member.DefaultComparerProperty.GetGetMethod(),
null... more >>
GAcutil.exe for dotnet 2.0 ?
Posted by SenthilVel at 10/10/2006 12:00:00 AM
hi ,
Where can we physically see gacutil.exe for dotnet2.0 version ?
i saw in my machine and its not appearing in
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727.
Is this gacutil.exe present in some other folder for .Net 2.0 ?
thanks
Senthil
http://dotnetcrunch.blogspot.com
... more >>
Anonymous delegates and events
Posted by ewolfman at 10/9/2006 3:36:35 PM
Hi,
I have a weird situation and I was wondering if anyone can help out.
In my WinForms application, I have several UserControls which contain
other UserControls. Some of the "inner" UserControls raise events,
which are handled by the "parent" UserControls. The event handling is
performed u... more >>
removed per user request
Posted by Fernando Vasconcelos Mendes at 10/6/2006 3:48:12 PM
Encoding difference in Vista breaks my app :(
Posted by Tim_Mac at 10/6/2006 3:15:07 PM
hi,
just getting Vista up and running now for some dev testing, seems great so
far.
i have an app that uses MD5 hashing on the passwords. when i run the app in
Vista, the hashing code below gives a different result to what XP/Server
2003 computes, it is probably because i'm using GetString ... more >>
writing a compiler
Posted by David Bellot at 10/5/2006 12:20:27 PM
Hi,
as an exercise, I'd like to write a compiler for .net for a very small
language. I'd like to know where I could find documents about CIL/CLR
and how to start such a project. I already wrote compilers for real
processors, so what I need is information about CIL/CLR, file formats
all th... more >>
How can I get all loaded assemblies?
Posted by cok119 at 10/4/2006 12:00:00 AM
Hi, all
How can I get all loaded assemblies?
include "static refrenceed" and "Assembly.LoadFrom method".
... more >>
AppDomains and static unmanaged variables
Posted by Stephen Walch at 10/2/2006 8:45:05 PM
Our application environment consists of three basic layers:
1. Third-party unmanaged DLLs that were written before the CLR was invented
and maintain a significant amount of information (including memory
management and connection pooling constructs) as static variables which were
intended to... more >>
BackgroundWorker and events handling
Posted by Hardy Wang at 10/2/2006 2:32:32 PM
Hi all,
I am migrating a Windows Form application from .Net 1.1 to 2.0. I try to
use BackgroundWorker object to handle a very lengthy process.
I have a separated class to handle some very complex logic. In .Net 1.1,
I create some events inside this class to notify WinForm the status of... more >>
|