Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Display error of FolderBrowserDialog on Windows Server 2008

Display error of FolderBrowserDialog on Windows Server 2008

Scheduled Pinned Locked Moved Windows Forms
helpcsharpcsswinformssysadmin
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Caloiv
    wrote on last edited by
    #1

    Hi All, I have a problem with the FolderBrowserControl. When I use the FolderBrowserDialog in my application on a Windows Server 2008 system a strange behaviour can be recognized. If I open the dialog the first time it is displayed the way it should. When I open it a second time, the tree control looks different. The plus signs aren't displayed any longer. Instead only blank squares are displayed (Sorry for not attaching a picture. But I don't have a server where I could put it...) This behaviour can't be reproduced on Windows XP, it only occurs on Windows Server 2008 systems. The control is created in a separate class and is opend from a grid. //as special folder the desctop is used public MyControl(Environment.SpecialFolder folder, bool createFolder) { m_IsModified = false; m_FolderBrowser = new WinForms.FolderBrowserDialog(); m_FolderBrowser.ShowNewFolderButton = createFolder; } //this method is executed from the grid public WinForms.DialogResult ShowDialog(WinForms.IWin32Window window) { WinForms.DialogResult ret = m_FolderBrowser.ShowDialog(window); m_IsModified = (ret == WinForms.DialogResult.OK); return ret; } public void Dispose() { m_FolderBrowser.Dispose(); m_FolderBrowser = null; } I really don't have any idea why this problem occurs and how to solve it. I hope you can help me. Thanks. Best Regards, Viola

    L 1 Reply Last reply
    0
    • C Caloiv

      Hi All, I have a problem with the FolderBrowserControl. When I use the FolderBrowserDialog in my application on a Windows Server 2008 system a strange behaviour can be recognized. If I open the dialog the first time it is displayed the way it should. When I open it a second time, the tree control looks different. The plus signs aren't displayed any longer. Instead only blank squares are displayed (Sorry for not attaching a picture. But I don't have a server where I could put it...) This behaviour can't be reproduced on Windows XP, it only occurs on Windows Server 2008 systems. The control is created in a separate class and is opend from a grid. //as special folder the desctop is used public MyControl(Environment.SpecialFolder folder, bool createFolder) { m_IsModified = false; m_FolderBrowser = new WinForms.FolderBrowserDialog(); m_FolderBrowser.ShowNewFolderButton = createFolder; } //this method is executed from the grid public WinForms.DialogResult ShowDialog(WinForms.IWin32Window window) { WinForms.DialogResult ret = m_FolderBrowser.ShowDialog(window); m_IsModified = (ret == WinForms.DialogResult.OK); return ret; } public void Dispose() { m_FolderBrowser.Dispose(); m_FolderBrowser = null; } I really don't have any idea why this problem occurs and how to solve it. I hope you can help me. Thanks. Best Regards, Viola

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      The symptoms you mentioned usually occur in applications when it is too tight on memory, typically caused by memory leaks. Check if the control has any known issues and if it is supported on all platforms.

      C 1 Reply Last reply
      0
      • L Lost User

        The symptoms you mentioned usually occur in applications when it is too tight on memory, typically caused by memory leaks. Check if the control has any known issues and if it is supported on all platforms.

        C Offline
        C Offline
        Caloiv
        wrote on last edited by
        #3

        Hi Shameel, thanks for the tip. It really seems to be a memory leak. But it has nothing to do with the folder browser dialog. The leak probably occurrs in another referenced dll. Best Regards, Viola

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups