This is a migrated thread and some comments may be shown as answers.

Serious problem with Dock Manager and specific C# compiler

2 Answers 48 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Sean McConnell
Top achievements
Rank 1
Sean McConnell asked on 13 Feb 2008, 10:36 PM
Hello, we have a discovered a very major issue with what appears to be the Dock Manager while compiling under a specific version of csc..

I cannot provide all the details here, because this is part of an application with IP and no quick 'sample' has been made yet to demonstrate the problem. Basically I am hoping some light could be shed on the issue so we can determine the best course of action to move forward.

Here is the problem:

We have a DockManager on a form, that contains controls from another assembly. On some developer machines, we noticed that when the dock manager is 'activated' by clicking in the form area, the entire application freezes. On some other machines, this problem does not occur. When we copy the exe (not the assembly containing the controls) from the 'good' machine to the 'bad' one.. the freeze stops.

So far, we have narrowed down the issue to a specific version of the csc compiler:

The compiler that works:

Framework V2.0.50727
File Version: 8.0.50727.312
Product Version: 8.0.50727.312
Size: 69.0KB
Date Modified: 11/2/2006 10:34pm

The compiler that does not work:

Framework V2.0.50727
File Version: 8.0.50727.1433
Product Version: 8.0.50727.1433
Size: 78.4KB
Date Modified: 1/3/2008 3:30pm


This shows so far that the latest updates to Vistual Studio 2005 WHILE RUNNING UNDER VISTA result in an executable assembly where any user interaction with the DockManager will result in an application freeze/hang (no exception, simply a non-responding application).

Now, I have been able to reproduce the freeze by setting the Compatibility mode of the exe to Windows 2000.. executing this under vista will result in a freeze, even using the exe produced from the 'old' compiler.

And further, I have been able to prevent this freeze under W2K compatibility by setting this in the main func:

Application.SetCompatibleTextRenderingDefault(true);


However, this makes no difference if the exe is produced by the 'new' compiler.


At this point, we are taking drastic action and removing all DockManager's from our application - this is obviously not our preferred course of action, but at this time we see no other workaround. Any help/suggestions you can provide would be much appreciated!

Regards,

Capstone Technology

2 Answers, 1 is accepted

Sort by
0
Sean McConnell
Top achievements
Rank 1
answered on 14 Feb 2008, 04:22 PM
FYI:

This issue may be related to the recent changes rolled out with .NET Framework 2.0 SP1.

According to these two links:

http://blogs.msdn.com/ed_maurer/archive/2007/12/14/nxcompat-and-the-c-compiler.aspx

http://blogs.msdn.com/dougste/

Any assembly created with the new csc compiler will by default have the NX flag set, apparently resulting in an application that does not support 'unsafe' assemblies - usually encountered in COM and ATL wrappers.

We continue to look into this issue.

0
Julian Benkov
Telerik team
answered on 15 Feb 2008, 10:22 AM
Hello Randall,

Thank you for the good articles and the research.

We will continue to research the issues and provide workarounds where that's possible.

We will let you know as soon as we have a position on this scenario. If you have any other questions, please let us know.

Regards,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
Sean McConnell
Top achievements
Rank 1
Answers by
Sean McConnell
Top achievements
Rank 1
Julian Benkov
Telerik team
Share this question
or