STAThread is non-deterministic when debugging
Thu, 14 Aug 2008 11:00:00 -0700
I have an application written in C#, that is a windows application. in the
application there is a treeview that allows drag-n-drop functionality. To
enable drag-n-drop, the main thread of the application hasto be a single
threaded apartment, so i marked my main method with the [STAThread] attribute.
When s ...
|
.NET 3.5 SP1 causes exception when casting arrays (using .Cast<>)
Thu, 14 Aug 2008 09:04:37 -0700 (PDT)
I just installed Service Pack 1 for the .NET Framework 3.5. The
following (greatly simplified) code now throws an exception on the
Cast<> line:
class Program
{
static void Main(string[] args)
{
int[] ints = { 1, 2, 3, 4 };
string[] strings = ints.Cast<strin ...
|
Dynamically loading assemblies
Thu, 14 Aug 2008 16:04:44 +0100
VS2008 Windows Forms
I am looking into dynamically loading assemblies, and possibly storing the
assembly code somewhere other than a .dll file (e.g. in a database).
I can easily get the contents of the DLL into a byte array, and I can then
use Assembly.Load to load the aasembly. I can then create objects using ...
|
Get Active Desktop Window
Thu, 14 Aug 2008 08:04:06 -0700
I'm not sure if this is the right discussion group, but here is what I need
to do and I'm not sure where to start.
I have a windows service that needs to "monitor" the desktop and log
everytime a new window get's focus. Once I capture the event, I'll have to
look at the title and perform some business rules.
...
|
.NET 2.0 and .NET 3.5 app not starting after upgrade to .NET 3.5 S
Wed, 13 Aug 2008 22:36:01 -0700
Hi,
We are a vendor of a .NET app which is built using VS2005 and .NET 2.0. This
app used to run fine on any machine where .NET 2.0 runtime or higher is
installed.
After installing .NET 3.5 SP1 runtime this app no longer could be run. Here
are some details:
- double click on desktop icon -> app will not ...
|
WindowsFormsSynchronizationContext.Send: how does the delegate
provided to this method interact with the control's message pump?
Wed, 13 Aug 2008 17:17:13 -0700 (PDT)
I did look under the hood and this method is calling
Control.Invoke(). Digging deeper down I've stopped at the
RuntimeMethodHandle._InvokeMethodFast() method whose code I cannot
find.
I know that the delegates invoked via Control.BeginInvoke() will use
the window's message pump to send and retrieve the deleg ...
|
v3.5 SP1 issue with previous versions
Wed, 13 Aug 2008 14:53:30 -0500
SP1 now plays with new trust rules when using assemblies across a network
share. By default these assemblies are now granted full trust where in
previous versions the Microsoft .NET Framework 2.0 Configuration utility was
used in order to increase security trust from partial to full on signed
assemblies. T ...
|
|
|
Confused about 3.5 SP1
Wed, 13 Aug 2008 10:17:57 -0700 (PDT)
I've installed VS2008 SP1 with .net Framework 3.5 SP1 on my
development machines... The apps I'm building (or rebuilding) seem to
run fine on client machines that are at 3.5. Is there a reason to
install 3.5SP1 on the users machines?
Bob ...
|
StackPanel for .Net 2.0
Wed, 13 Aug 2008 04:48:09 -0700 (PDT)
Hi,
is there something like a StackPanel from WPF for the normal Windows
Forms Library?
I have to update a .Net 2.0 Application with a better User Interface,
but .Net3.5 is not possible,
because the application has to run on Windows 2000.
Thanks, for your help,
Andre ...
|
Customising Setup Projects
Wed, 13 Aug 2008 12:42:35 +0100
I posted this a few days ago in microsoft.public.dotnet.framework.setup but
haven't had any response:
VS2008 Windows Forms
As part of the process of building my application setup program, I would
like to make some modifications to certain files. I can easily write the
code to do make the necessary changes gi ...
|