yazoox

OS: windows 2003 64-bit with sp1

MMC 3.0 and .NET framework 2.0

Visual studio 2005

==============

Reproduce steps.

1. Create a simple MMC project

2. Use FolderBrowserDialog such as the following anywhere

FolderBrowserDialog dialog = new FolderBrowserDialog();
dialog.ShowDialog(this);

3. register and run this mmc program, and click button to launch FolderBrowserDialog

4. Make sure that the machine running the program is in a domain and can navigate several domain.

5. navigate to a domain, expand a computer, and go to share folder;

6. then navigate to another domain, expand another computer and folder;

7. repro 5-6 for several times.

8. wait for several minitues and do nothing

9. after you come back, as long as you click any domain/computer/folder, the mmc will crash.

However, if you use a win app, this issue will not happen.

I wonder if this is a bug of MMC 3.0

P.S: I don't know how to upload my test project.



Re: General Windows Vista Development Issues Is it a bug for MMC 3.0?

yazoox

Who can tell me how to upload files

I can't upload the movie or project files now.

thx.





Re: General Windows Vista Development Issues Is it a bug for MMC 3.0?

yazoox

It might be a bug of MMC 3.0.





Re: General Windows Vista Development Issues Is it a bug for MMC 3.0?

yazoox

Very confused!

The develop environment is on windows 2003, not Vista.

thx.





Re: General Windows Vista Development Issues Is it a bug for MMC 3.0?

anonimo

You need to use the SnapIn.Console interface to show any message boxes or forms when using MMC 3.0 snapin.

Here's an example,

public class MyScopeNode : ScopeNode

{

/// <summary>

/// Constructor

/// </summary>

public MyScopeNode()

{

}

public DialogResult ShowMessage(string message, string caption, MessageBoxButtons buttons)

{

MessageBoxParameters messageBoxParameters = new MessageBoxParameters();

messageBoxParameters.Text = message;

messageBoxParameters.Caption = caption;

messageBoxParameters.Buttons = buttons;

messageBoxParameters.Icon = MessageBoxIcon.Information;

return this.SnapIn.Console.ShowDialog(messageBoxParameters); // <<<<< this is the most important line

}

}





Re: General Windows Vista Development Issues Is it a bug for MMC 3.0?

yazoox

Confirm!

it is a bug of MMC 3.0 on 64-bit windows 2003.

Thanks a lot.