Hwnd in windows 7

Shivels
Hi guys and gals,
I have a strange issue I can't seem to figure out.  I have some subvis which I downloaded from the fourm.  The subvis allow you to paste the output of a cmd prompt into an indicator on the LabVIEW front panel.  The subivs ran find under WinXP, but under Windows 7, LabVIEW is unable to locate the hwnd of the command prompt.  I am using System exec to open a cmd prompt.  If I set the "run minimized" option to T under Windows 7, the program is able to find the hwnd but the cmd prompt is display on the screen.  If I set the "run minimized" option to F, the program is unable to find the hwnd under Windows 7 but can find the hwnd under WinXP.  Does anybody know what might be the issue.  I think maybe the inner workings of USER32.dll might have changed, but I can't find any solid information.
Cheers,
Attachments:
Cmd_window_test.vi ‏17 KB

The window is not being created.  If you use Notepad, everything will work as you expect.  Something specific to how the command prompt is called causes the window to be created differently.  In XP, it appears the window is still created, it is just hidden, but in Windows 7 it is not created.  You can see the process is running in task manager.  I got a list of all windows, hidden and visible, and the command prompt window is no where to be found.
Using notepad, you will see notepad shows up on the taskbar, even minimized.  Going back to LabVIEW 8.6, it appears that the command window never shows up on te taskbar when you set to run minimized.
I'm curious if NI is launching the process in a manner that could be replicated outside of LabVIEW.  They used to use a CIN node for System Exec, but now the block diagram is password protected.

Similar Messages

  • Obtaining values from other programs

    I seen where you can use Spy ++ to get values from other running programs, how do you do it? I found the values un Spy ++ from the window, so where from I go from here?
    Regards, Carter Humphreys

    Here's some more.
    Option Strict On
    Imports System.Collections.Generic
    Imports System.Runtime.InteropServices
    Imports System.Text
    Public Class Form1
    <DllImport("User32.dll")> _
    Private Shared Function FindWindow(ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
    End Function
    Private Declare Auto Function IsIconic Lib "user32.dll" (ByVal hwnd As IntPtr) As Boolean
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    ListView1.AllowColumnReorder = True
    ListView1.GridLines = True
    ListView1.View = View.Details
    ListView1.Sorting = SortOrder.Ascending
    ListView1.Columns.Add("Main Window Title", 150, HorizontalAlignment.Left)
    ListView1.Columns.Add("Child Class Name", 300, HorizontalAlignment.Left)
    ListView1.Columns.Add("Child hWnd", 100, HorizontalAlignment.Left)
    ListView1.Columns.Add("Child Main Window Title", 300, HorizontalAlignment.Left)
    ListView1.Columns.Add("Is Application Minimized", 300, HorizontalAlignment.Left)
    Timer1.Interval = 5000
    End Sub
    Private Sub ListView1_Click(sender As Object, e As EventArgs) Handles ListView1.Click
    TextBox1.Text = ""
    TextBox1.Text = "Main Window Title = " & ListView1.FocusedItem.SubItems.Item(0).Text.ToString & vbCrLf & _
    "Child Class Name = " & ListView1.FocusedItem.SubItems.Item(1).Text.ToString & vbCrLf & _
    "Child hWnd = " & ListView1.FocusedItem.SubItems.Item(2).Text.ToString & vbCrLf & _
    "Child Main Window Title = " & ListView1.FocusedItem.SubItems.Item(3).Text.ToString & vbCrLf & _
    "Is Application Minimized = " & ListView1.FocusedItem.SubItems.Item(4).Text.ToString
    End Sub
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    ListView1.Items.Clear()
    Dim enumerator As New WindowsEnumerator()
    For Each top As ApiWindow In enumerator.GetTopLevelWindows()
    For Each child As ApiWindow In enumerator.GetChildWindows(top.hWnd)
    Dim item1 As New ListViewItem(top.MainWindowTitle)
    item1.SubItems.Add(child.ClassName)
    item1.SubItems.Add(child.hWnd.ToString)
    item1.SubItems.Add(child.MainWindowTitle)
    If top.MainWindowTitle.Length > 0 Then
    Dim ICONIC As IntPtr = CType(CInt(FindWindow(Nothing, top.MainWindowTitle).ToString), IntPtr)
    item1.SubItems.Add(IsIconic(ICONIC).ToString)
    End If
    ListView1.Items.AddRange(New ListViewItem() {item1})
    Next child
    Next top
    End Sub
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    Timer1.Start()
    Using OFD As New OpenFileDialog
    If OFD.ShowDialog = DialogResult.OK Then
    End If
    End Using
    End Sub
    Dim InfoToWrite As New List(Of String)
    Dim CountIt As Integer = 1
    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
    InfoToWrite.Clear()
    Timer1.Stop()
    ListView1.Items.Clear()
    Dim enumerator As New WindowsEnumerator()
    For Each top As ApiWindow In enumerator.GetTopLevelWindows()
    For Each child As ApiWindow In enumerator.GetChildWindows(top.hWnd)
    InfoToWrite.Add(top.MainWindowTitle & " - " & child.ClassName & " - " & child.hWnd.ToString & " - " & child.MainWindowTitle)
    Dim item1 As New ListViewItem(top.MainWindowTitle)
    item1.SubItems.Add(child.ClassName)
    item1.SubItems.Add(child.hWnd.ToString)
    item1.SubItems.Add(child.MainWindowTitle)
    If top.MainWindowTitle.Length > 0 Then
    Dim ICONIC As IntPtr = CType(CInt(FindWindow(Nothing, top.MainWindowTitle).ToString), IntPtr)
    item1.SubItems.Add(IsIconic(ICONIC).ToString)
    End If
    ListView1.Items.AddRange(New ListViewItem() {item1})
    Next child
    Next top
    IO.File.WriteAllLines("C:\Users\John\Desktop\Some Info " & CountIt.ToString & ".Txt", InfoToWrite.ToArray)
    CountIt += 1
    End Sub
    End Class
    Public Class ApiWindow
    Public MainWindowTitle As String = ""
    Public ClassName As String = ""
    Public hWnd As Int32
    End Class
    ''' <summary>
    ''' Enumerate top-level and child windows
    ''' </summary>
    ''' <example>
    ''' Dim enumerator As New WindowsEnumerator()
    ''' For Each top As ApiWindow in enumerator.GetTopLevelWindows()
    ''' Console.WriteLine(top.MainWindowTitle)
    ''' For Each child As ApiWindow child in enumerator.GetChildWindows(top.hWnd)
    ''' Console.WriteLine(" " + child.MainWindowTitle)
    ''' Next child
    ''' Next top
    ''' </example>
    Public Class WindowsEnumerator
    Private Delegate Function EnumCallBackDelegate(ByVal hwnd As Integer, ByVal lParam As Integer) As Integer
    ' Top-level windows.
    Private Declare Function EnumWindows Lib "user32" _
    (ByVal lpEnumFunc As EnumCallBackDelegate, ByVal lParam As Integer) As Integer
    ' Child windows.
    Private Declare Function EnumChildWindows Lib "user32" _
    (ByVal hWndParent As Integer, ByVal lpEnumFunc As EnumCallBackDelegate, ByVal lParam As Integer) As Integer
    ' Get the window class.
    Private Declare Function GetClassName _
    Lib "user32" Alias "GetClassNameA" _
    (ByVal hwnd As Integer, ByVal lpClassName As StringBuilder, ByVal nMaxCount As Integer) As Integer
    ' Test if the window is visible--only get visible ones.
    Private Declare Function IsWindowVisible Lib "user32" _
    (ByVal hwnd As Integer) As Integer
    ' Test if the window's parent--only get the one's without parents.
    Private Declare Function GetParent Lib "user32" _
    (ByVal hwnd As Integer) As Integer
    ' Get window text length signature.
    Private Declare Function SendMessage _
    Lib "user32" Alias "SendMessageA" _
    (ByVal hwnd As Int32, ByVal wMsg As Int32, ByVal wParam As Int32, ByVal lParam As Int32) As Int32
    ' Get window text signature.
    Private Declare Function SendMessage _
    Lib "user32" Alias "SendMessageA" _
    (ByVal hwnd As Int32, ByVal wMsg As Int32, ByVal wParam As Int32, ByVal lParam As StringBuilder) As Int32
    Private _listChildren As New List(Of ApiWindow)
    Private _listTopLevel As New List(Of ApiWindow)
    Private _topLevelClass As String = ""
    Private _childClass As String = ""
    ''' <summary>
    ''' Get all top-level window information
    ''' </summary>
    ''' <returns>List of window information objects</returns>
    Public Overloads Function GetTopLevelWindows() As List(Of ApiWindow)
    EnumWindows(AddressOf EnumWindowProc, &H0)
    Return _listTopLevel
    End Function
    Public Overloads Function GetTopLevelWindows(ByVal className As String) As List(Of ApiWindow)
    _topLevelClass = className
    Return Me.GetTopLevelWindows()
    End Function
    ''' <summary>
    ''' Get all child windows for the specific windows handle (hwnd).
    ''' </summary>
    ''' <returns>List of child windows for parent window</returns>
    Public Overloads Function GetChildWindows(ByVal hwnd As Int32) As List(Of ApiWindow)
    ' Clear the window list.
    _listChildren = New List(Of ApiWindow)
    ' Start the enumeration process.
    EnumChildWindows(hwnd, AddressOf EnumChildWindowProc, &H0)
    ' Return the children list when the process is completed.
    Return _listChildren
    End Function
    Public Overloads Function GetChildWindows(ByVal hwnd As Int32, ByVal childClass As String) As List(Of ApiWindow)
    ' Set the search
    _childClass = childClass
    Return Me.GetChildWindows(hwnd)
    End Function
    ''' <summary>
    ''' Callback function that does the work of enumerating top-level windows.
    ''' </summary>
    ''' <param name="hwnd">Discovered Window handle</param>
    ''' <returns>1=keep going, 0=stop</returns>
    Private Function EnumWindowProc(ByVal hwnd As Int32, ByVal lParam As Int32) As Int32
    ' Eliminate windows that are not top-level.
    If GetParent(hwnd) = 0 AndAlso CBool(IsWindowVisible(hwnd)) Then
    ' Get the window title / class name.
    Dim window As ApiWindow = GetWindowIdentification(hwnd)
    ' Match the class name if searching for a specific window class.
    If _topLevelClass.Length = 0 OrElse window.ClassName.ToLower() = _topLevelClass.ToLower() Then
    _listTopLevel.Add(window)
    End If
    End If
    ' To continue enumeration, return True (1), and to stop enumeration
    ' return False (0).
    ' When 1 is returned, enumeration continues until there are no
    ' more windows left.
    Return 1
    End Function
    ''' <summary>
    ''' Callback function that does the work of enumerating child windows.
    ''' </summary>
    ''' <param name="hwnd">Discovered Window handle</param>
    ''' <returns>1=keep going, 0=stop</returns>
    Private Function EnumChildWindowProc(ByVal hwnd As Int32, ByVal lParam As Int32) As Int32
    Dim window As ApiWindow = GetWindowIdentification(hwnd)
    ' Attempt to match the child class, if one was specified, otherwise
    ' enumerate all the child windows.
    If _childClass.Length = 0 OrElse window.ClassName.ToLower() = _childClass.ToLower() Then
    _listChildren.Add(window)
    End If
    Return 1
    End Function
    ''' <summary>
    ''' Build the ApiWindow object to hold information about the Window object.
    ''' </summary>
    Private Function GetWindowIdentification(ByVal hwnd As Integer) As ApiWindow
    Const WM_GETTEXT As Int32 = &HD
    Const WM_GETTEXTLENGTH As Int32 = &HE
    Dim window As New ApiWindow()
    Dim title As New StringBuilder()
    ' Get the size of the string required to hold the window title.
    Dim size As Int32 = SendMessage(hwnd, WM_GETTEXTLENGTH, 0, 0)
    ' If the return is 0, there is no title.
    If size > 0 Then
    title = New StringBuilder(size + 1)
    SendMessage(hwnd, WM_GETTEXT, title.Capacity, title)
    End If
    ' Get the class name for the window.
    Dim classBuilder As New StringBuilder(64)
    GetClassName(hwnd, classBuilder, 64)
    ' Set the properties for the ApiWindow object.
    window.ClassName = classBuilder.ToString()
    window.MainWindowTitle = title.ToString()
    window.hWnd = hwnd
    Return window
    End Function
    End Class
    La vida loca

  • How to make the stage transparent for SWF file being used in Dreamweaver

    I have a SWF file in my Dreamweaver site, that plays correctly. The problem is that the stage is white and we would like it to be transparent. Searching the archives the following advice was given:
    in your html embedding code you need to set the wmode parameter to be "transparent"
    I'm wondering if this is the code in Dreamweaver or is this done in Flash. I'm working with CS5. Below is the code that matches the SWF file in Dreamweaver. I did change the wmode value from "opaque" to "transparent" and it didn't work.
    Thanks for any assistance.
    Sherri
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="650" height="400" id="FlashID" title="Convergence Gathering Title">
                 <param name="movie" value="Flash/gold_dust_title.swf" />
                 <param name="quality" value="high" />
                 <param name="wmode" value="opaque" />
                 <param name="swfversion" value="6.0.65.0" />
                 <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
                 <param name="expressinstall" value="Scripts/expressInstall.swf" />
                 <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
                 <!--[if !IE]>-->
                 <object type="application/x-shockwave-flash" data="Flash/gold_dust_title.swf" width="650" height="400">
                   <!--<![endif]-->
                   <param name="quality" value="high" />
                   <param name="wmode" value="opaque" />
                   <param name="swfversion" value="6.0.65.0" />
                   <param name="expressinstall" value="Scripts/expressInstall.swf" />
                   <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
                   <div>
                     <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                     <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
                   </div>
                   <!--[if !IE]>-->
                 </object>
                 <!--<![endif]-->
               </object>

    Yes, change this to "transparent" in ALL the places where wmode is shown
    <param name="wmode" value="opaque" />
    Second, be sure that there is in fact nothing covering the entire stage, like a big white rectangle.
    Also, what is directly behind the .swf once it's on the Web page? If the background color of that page or the <div> that the .swf is in is white..... well then then .swf can have a transparent background but then the white from the Web page just shows thru.... so there's still a white background.
    Be sure there is a non-white background on the Web page...
    Window Mode (wmode) - What's It For?
    There are three window modes.
    Window
    Opaque
    Transparent
    By default, the Flash Player gets its own hWnd in Windows. This means that the Flash movie actually exists in a display instance within Windows that lives above the core browser display window. So though it appears to be in the browser window, technically, it isn't. It is most efficient for Flash to draw this way and this is the fastest, most efficient rendering mode. However, it is drawing independently of the browser's HTML rendering surface. This is why this default mode (which is equivalent to wmode="window") doesn't allow proper compositing with DHTML layers. This is why your JavaScripted drop-down menus will drop behind your Flash movie.
    In windowless modes (like opaque), Flash Player doesn't have a hWnd. This means that the browser tells the Flash Player when and where to draw onto the browser's own rendering surface. The Flash movie is no longer being rendered on a higher level if you will. It's right there in the page with the rest of the page elements. The Flash buffer is simply drawn into whatever rectangle the browser says, with any Flash stage space not occupied by objects receiving the movie's background color.
    Best wishes,
    Adninjastrator

  • Streaming with on2 VP6  8 bit alpha canne

    I need to send a live streaming to Adobe Flash Media Server  encoded with on2 VP6  8 bit alpha cannel (chroma key) so all clients see only the speaker with no background.
    what hardware or software support realtime encode VP6 alpha channel  ?
    thanks

    Ooppp, got mixed up with chroma-keying... sorry 'bout that.
    So what have you tried? have you attempted to stream video with alpha channel to the server? what happened? How are you displaying the video at the other end?
    Is it on a Web page? are you using wmode=transparent as a <param> on the vido player? so that the player itself becomes invisible?
    Here is an example of a VP6 video with alpha played over the top of a video page (the walk on):
    http://www.mrfilmbiz.com/
    This is not a live stream but a progressive downloaded video, but I don't think it would matter. The thing that let's you see that the alpha channel is there (because the player is invisible) is using the wmode=transparent. Of course you may need a custom Flash player like the one used in the example above... it uses NetStream rather than the FLVPlayback component... I'm not sure if you can make the component disappear like that.
    For review:
    Window Mode (wmode) - What's It For?
    There are three window modes.
    Window
    Opaque
    Transparent
    By default, the Flash Player gets its own hWnd in Windows. This means that the Flash movie actually exists in a display instance within Windows that lives above the core browser display window. So though it appears to be in the browser window, technically, it isn't. It is most efficient for Flash to draw this way and this is the fastest, most efficient rendering mode. However, it is drawing independently of the browser's HTML rendering surface. This is why this default mode (which is equivalent to wmode="window") doesn't allow proper compositing with DHTML layers. This is why your JavaScripted drop-down menus will drop behind your Flash movie.
    In windowless modes (like opaque), Flash Player doesn't have a hWnd. This means that the browser tells the Flash Player when and where to draw onto the browser's own rendering surface. The Flash movie is no longer being rendered on a higher level if you will. It's right there in the page with the rest of the page elements. The Flash buffer is simply drawn into whatever rectangle the browser says, with any Flash stage space not occupied by objects receiving the movie's background color.
    Hope this help a little.
    Best of luck,
    Adninjastrator

  • RoboHelp 8 HTML - context sensitive chm file does not open?

    This works:
    RoboHelp_CSH.RH_ShowHelp(0, "C:\\RoboHelp\\!SSL!\\WebHelp\\XHelp_File.htm", RoboHelp_CSH.HH_HELP_CONTEXT, 2);
    This doesn't
    RoboHelp_CSH.RH_ShowHelp(0, "C:\\RoboHelp\\!SSL!\\Microsoft_HTML_Help\\XHelp_File.chm", RoboHelp_CSH.HH_HELP_CONTEXT, 1);
    Why does the context sensitve calls of a chm file not work?
    Does it require a different map file?

    Hi there
    I believe the actual call is different.
    Here is a copy/paste from an older RoboHelp HTML CHM file that we might use as an example:
    Window-level Help for Windows applications
    To call a topic using a map number, make a call to the HTML Help API using  the following syntax:
    HWND  HtmlHelp(Window(), “c:\path\helpfile.chm”, HH_HELP_CONTEXT,  Number);
    To call a topic using a file name, make a call to the HTML Help API using  the following syntax:
    HWND HtmlHelp (Window(), “c:\path\helpfile.chm”,  HH_DISPLAY_TOPIC, "topicfile.htm");
    Hopefully that helps.,. Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • Navigation hides behind slideshow

    I have tried several navigation scripts and z-index all over the place but no matter what I try the sub-folders of my navigation on my homepage always gets hidden by the slideshow. Can someone tell me how to correct this? If you need to see it go to this site and move your mouse over the 3rd link down (home services) to have the sub-folder come out:
    http://www.homehemodialysis.org/clients/testing/Applewood_v3/index_01.html
    Any help would be appreciated. Remember z-index does not work.
    P.S. The problem only occurs in IE8, not sure about <8.

    Ned nailed this one right on the head!
    But since this is such a common issue, I thought I'd expand on the topic a little. From an old post:
    Window Mode (wmode) - What's It For?
    There are three window modes.
    Window
    Opaque
    Transparent
    By default, the Flash Player gets its own hWnd in Windows. This means that the Flash movie actually exists in a display instance within Windows that lives above the core browser display window. So though it appears to be in the browser window, technically, it isn't. It is most efficient for Flash to draw this way and this is the fastest, most efficient rendering mode. However, it is drawing independently of the browser's HTML rendering surface. This is why this default mode (which is equivalent to wmode="window") doesn't allow proper compositing with DHTML layers. This is why your JavaScripted drop-down menus will drop behind your Flash movie.
    In windowless modes (like opaque), Flash Player doesn't have a hWnd. This means that the browser tells the Flash Player when and where to draw onto the browser's own rendering surface. The Flash movie is no longer being rendered on a higher level if you will. It's right there in the page with the rest of the page elements. The Flash buffer is simply drawn into whatever rectangle the browser says, with any Flash stage space not occupied by objects receiving the movie's background color.
    wmode of opaque means that the entire stage area of the .swf will be displayed on the HTML page. wmode transparent means that the stage itself will not display, only objects which have been placed on the stage will display on the HTML page, allowing whatever HTML content is behind the objects on the stage to "show through"... that's the transparent part. That's where z-indexing used with Flash can create some interesting displays. Here's an example:
    http://www.mrfilmbiz.com/
    Once you give your Flash either a wmode opaque or transparent, then you can apply z-indexing to the <div> holding the Flash and position it above, below, or in between other <div>s.
    Best of luck!
    Adninjastrator

  • Dreamweaver layer - How can I make visible over a .swf banner?

    Hi all,
    This is a problem I'm facing right now.
    I have got a site. With a .swf banner. I suddenly wanted to add a button on this banner. I tried with Adobe Flash profissional but unfortunatily, I didn't manage in that.
    So, I decided to put this button as a .jpg image in a layer. And place this layer on the .swf banner. And set a link for the image to the targeted page. But this layer didn't show up. So, I put a Back Ground for the layer. And finally I managed to make it visible. When I tried that on FireFox explorer, it worked! . But it did not on Chrome and IE8. Plese help me with that. I just need it visible and working on Chrome and IE8.
    Thank you very much.

    First start by using the correct "wmode" to bring the .swf down into the normal flow of the page... only then z-indexing will come into play. From another post:
    Window Mode (wmode) - What's It For?
    There are three window modes.
    Window
    Opaque
    Transparent
    By default, the Flash Player gets its own hWnd in Windows. This means that the Flash movie actually exists in a display instance within Windows that lives above the core browser display window. So though it appears to be in the browser window, technically, it isn't. It is most efficient for Flash to draw this way and this is the fastest, most efficient rendering mode. However, it is drawing independently of the browser's HTML rendering surface. This is why this default mode (which is equivalent to wmode="window") doesn't allow proper compositing with DHTML layers. This is why your JavaScripted drop-down menus will drop behind your Flash movie.
    In windowless modes (like opaque), Flash Player doesn't have a hWnd. This means that the browser tells the Flash Player when and where to draw onto the browser's own rendering surface. The Flash movie is no longer being rendered on a higher level if you will. It's right there in the page with the rest of the page elements. The Flash buffer is simply drawn into whatever rectangle the browser says, with any Flash stage space not occupied by objects receiving the movie's background color.
    so be sure to include the correct wmode param in your .swf embed code... which, depending on your embed method... will look something like this:
    <param name="wmode" value="opaque"/>
    And no offense Nancy, but why z-index of "1000"... when it only needs to be "2" (only a higher value not a super duper higher value). But hey, I'm guilty of that exaggeration myself when creating menus etc, as though over z-indexing by a few hundred extra layers will really push that sucker down! I've even used z-index of "500" when never in all my born days would I ever create 499 layers below a simple menu! ... or am I missing something about the power of numbers?
    Best wishes all,
    Adninjastrator

  • You Tube and viewing images problem

    Hi all
    Wonder if someone can help me please look at my link as it will be better to see what’s going on thank me explaining.
    I have embedded a YouTube video into my online portfolio and also integrated an image viewer, the You Tube video works great though when viewing an image the embedded video can be seen though the image also the image viewer has control images to move from one image to the next and a close button their operations work fine though they are not appearing online but appear fine in Dreamweaver, I have uploaded the whole site, all images and coded files 3 times over the past two days, please help me its driving me insane.
    Link: http://www.anthonymccormickdesigns.com/ColumbianSnow.html
    Thank you

    Unfortunately you are somewhat at the mercy of the Youtube iframe and the Flash video player in it.
    Do this as a test.
    Open your page in IE (FF is not a problem) and "disable" the Flash player.
    In main IE browser menu...Tools/Manage Add-ons/Shockwave Flash Object.... "Disable".
    Then test your page... images work just fine.
    The problem is not your "container" code... but it's Flash content.
    Most like it has to do with the wmode used for the Flash player... from an old article (there are now more wmodes):
    Window Mode (wmode) - What's It For?There are three window modes.
    Window
    Opaque
    Transparent
    By default, the Flash Player gets its own hWnd in Windows. This means that the Flash movie actually exists in a display instance within Windows that lives above the core browser display window. So though it appears to be in the browser window, technically, it isn't. It is most efficient for Flash to draw this way and this is the fastest, most efficient rendering mode. However, it is drawing independently of the browser's HTML rendering surface. This is why this default mode (which is equivalent to wmode="window") doesn't allow proper compositing with DHTML layers. This is why your JavaScripted drop-down menus will drop behind your Flash movie.
    In windowless modes (like opaque), Flash Player doesn't have a hWnd. This means that the browser tells the Flash Player when and where to draw onto the browser's own rendering surface. The Flash movie is no longer being rendered on a higher level if you will. It's right there in the page with the rest of the page elements. The Flash buffer is simply drawn into whatever rectangle the browser says, with any Flash stage space not occupied by objects receiving the movie's background color.
    Since you can't really change YouTube's iframe page, you may need to see if you could embed the video in a player where you can set the wmode yourself as one of the vid player params, move the video out of the way, or use javascript to "hide" the video player whenever an image is clicked.
    Javascript hide/show... for example:
    http://www.randomsnippets.com/2008/02/12/how-to-hide-and-show-your-div/
    plus tons of other examples on line.
    Best wishes,
    Adninjastrator

  • X11 errors with mono and keepass

    I've been trying to get KeePass running to no avail. I've tried custom mono installations as well as pacman installations. I'm using the most recent portable version on keepass.info.I receive the following as an error and would appreciate any guidance. If it helps, I'm running catalyst drivers. Thanks!
    X11 Error encountered:
    Error: BadAlloc (insufficient resources for operation)
    Request: 53 (0)
    Resource ID: 0xE00033
    Serial: 1304
    Hwnd: Hwnd, Mapped:True ClientWindow:0xE00033, WholeWindow:0xE00032, Zombie=False, Parent:[<null>]
    Control: System.Windows.Forms.ListView+ItemControl at System.Environment.get_StackTrace()
    at System.Windows.Forms.XplatUIX11.HandleError(IntPtr display, XErrorEvent ByRef error_event)
    at System.Drawing.GDIPlus.GdipCreateFromXDrawable_linux(IntPtr , IntPtr , IntPtr ByRef )
    at System.Drawing.Graphics.FromXDrawable(IntPtr drawable, IntPtr display)
    at System.Drawing.Graphics.FromHwnd(IntPtr hwnd)
    at System.Windows.Forms.XplatUIX11.GetOffscreenGraphics(System.Object offscreen_drawable)
    at System.Windows.Forms.XplatUI.GetOffscreenGraphics(System.Object offscreen_drawable)
    at System.Windows.Forms.Control+DoubleBuffer.Start(System.Windows.Forms.PaintEventArgs pe)
    at System.Windows.Forms.Control.WmPaint(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ListView+ItemControl.WndProc(Message ByRef m)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.UpdateWindow(IntPtr handle)
    at System.Windows.Forms.XplatUI.UpdateWindow(IntPtr handle)
    at System.Windows.Forms.Control.Update()
    at System.Windows.Forms.Control.Refresh()
    at System.Windows.Forms.Control.OnEnabledChanged(System.EventArgs e)
    at System.Windows.Forms.Control.ChangeParent(System.Windows.Forms.Control new_parent)
    at System.Windows.Forms.Control+ControlCollection.Remove(System.Windows.Forms.Control value)
    at System.Windows.Forms.Control+ControlCollection.AddImplicit(System.Windows.Forms.Control control)
    at System.Windows.Forms.ListView.AdjustChildrenZOrder()
    at System.Windows.Forms.ListView.LayoutDetails()
    at System.Windows.Forms.ListView.CalculateListView(ListViewAlignment align)
    at System.Windows.Forms.ListView.Redraw(Boolean recalculate)
    at System.Windows.Forms.ListView.ListView_SizeChanged(System.Object sender, System.EventArgs e)
    at System.Windows.Forms.Control.OnSizeChanged(System.EventArgs e)
    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
    at System.Windows.Forms.Control.UpdateBounds()
    at System.Windows.Forms.Control.WmWindowPosChanged(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ListView.WndProc(Message ByRef m)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.XplatUI.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.Control.SetBoundsCoreInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedChildren(System.Windows.Forms.Control parent, System.Windows.Forms.Control[] controls)
    at System.Windows.Forms.Layout.DefaultLayout.Layout(System.Object container, System.Windows.Forms.LayoutEventArgs args)
    at System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ScrollableControl.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.PerformLayout()
    at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
    at System.Windows.Forms.Control.ResumeLayout()
    at System.Windows.Forms.SplitContainer.UpdateLayout()
    at System.Windows.Forms.SplitContainer.OnLayout(System.Windows.Forms.LayoutEventArgs e)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.OnResizeInternal(System.EventArgs e)
    at System.Windows.Forms.Control.OnResize(System.EventArgs e)
    at System.Windows.Forms.Control.OnSizeChanged(System.EventArgs e)
    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
    at System.Windows.Forms.Control.UpdateBounds()
    at System.Windows.Forms.Control.WmWindowPosChanged(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
    at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
    at System.Windows.Forms.SplitContainer.WndProc(Message ByRef msg)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.XplatUI.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.Control.SetBoundsCoreInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.SplitContainer.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedChildren(System.Windows.Forms.Control parent, System.Windows.Forms.Control[] controls)
    at System.Windows.Forms.Layout.DefaultLayout.Layout(System.Object container, System.Windows.Forms.LayoutEventArgs args)
    at System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ScrollableControl.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.PerformLayout()
    at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
    at System.Windows.Forms.Control.ResumeLayout()
    at System.Windows.Forms.SplitContainer.UpdateLayout()
    at System.Windows.Forms.SplitContainer.OnLayout(System.Windows.Forms.LayoutEventArgs e)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.OnResizeInternal(System.EventArgs e)
    at System.Windows.Forms.Control.OnResize(System.EventArgs e)
    at System.Windows.Forms.Control.OnSizeChanged(System.EventArgs e)
    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
    at System.Windows.Forms.Control.UpdateBounds()
    at System.Windows.Forms.Control.WmWindowPosChanged(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
    at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
    at System.Windows.Forms.SplitContainer.WndProc(Message ByRef msg)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.XplatUI.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.Control.SetBoundsCoreInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.SplitContainer.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedChildren(System.Windows.Forms.Control parent, System.Windows.Forms.Control[] controls)
    at System.Windows.Forms.Layout.DefaultLayout.Layout(System.Object container, System.Windows.Forms.LayoutEventArgs args)
    at System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ScrollableControl.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ContainerControl.OnLayout(System.Windows.Forms.LayoutEventArgs e)
    at System.Windows.Forms.Form.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.set_Visible(Boolean value)
    at KeePass.Forms.MainForm.UpdateUIState(Boolean bSetModified, System.Windows.Forms.Control cOptFocus)
    at KeePass.Forms.MainForm.UpdateUIState(Boolean bSetModified)
    at KeePass.Forms.MainForm.OnFormLoad(System.Object sender, System.EventArgs e)
    at System.Windows.Forms.Form.OnLoad(System.EventArgs e)
    at System.Windows.Forms.Form.OnLoadInternal(System.EventArgs e)
    at System.Windows.Forms.Form.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
    at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
    at System.Windows.Forms.Form.WndProc(Message ByRef m)
    at KeePass.Forms.MainForm.WndProc(Message ByRef m)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.MapWindow(System.Windows.Forms.Hwnd hwnd, WindowType windows)
    at System.Windows.Forms.XplatUIX11.CreateWindow(System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.XplatUI.CreateWindow(System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.Control.CreateHandle()
    at System.Windows.Forms.Form.CreateHandle()
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Control.set_Visible(Boolean value)
    at System.Windows.Forms.Application.RunLoop(Boolean Modal, System.Windows.Forms.ApplicationContext context)
    at System.Windows.Forms.Application.Run(System.Windows.Forms.ApplicationContext context)
    at System.Windows.Forms.Application.Run(System.Windows.Forms.Form mainForm)
    at KeePass.Program.Main(System.String[] args)
    X11 Error encountered:
    Error: BadDrawable (invalid Pixmap or Window parameter)
    Request: 14 (0)
    Resource ID: 0xE00045
    Serial: 1305
    Hwnd: <null>
    Control: <null> at System.Environment.get_StackTrace()
    at System.Windows.Forms.XplatUIX11.HandleError(IntPtr display, XErrorEvent ByRef error_event)
    at System.Drawing.GDIPlus.GdipCreateFromXDrawable_linux(IntPtr , IntPtr , IntPtr ByRef )
    at System.Drawing.Graphics.FromXDrawable(IntPtr drawable, IntPtr display)
    at System.Drawing.Graphics.FromHwnd(IntPtr hwnd)
    at System.Windows.Forms.XplatUIX11.GetOffscreenGraphics(System.Object offscreen_drawable)
    at System.Windows.Forms.XplatUI.GetOffscreenGraphics(System.Object offscreen_drawable)
    at System.Windows.Forms.Control+DoubleBuffer.Start(System.Windows.Forms.PaintEventArgs pe)
    at System.Windows.Forms.Control.WmPaint(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ListView+ItemControl.WndProc(Message ByRef m)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.UpdateWindow(IntPtr handle)
    at System.Windows.Forms.XplatUI.UpdateWindow(IntPtr handle)
    at System.Windows.Forms.Control.Update()
    at System.Windows.Forms.Control.Refresh()
    at System.Windows.Forms.Control.OnEnabledChanged(System.EventArgs e)
    at System.Windows.Forms.Control.ChangeParent(System.Windows.Forms.Control new_parent)
    at System.Windows.Forms.Control+ControlCollection.Remove(System.Windows.Forms.Control value)
    at System.Windows.Forms.Control+ControlCollection.AddImplicit(System.Windows.Forms.Control control)
    at System.Windows.Forms.ListView.AdjustChildrenZOrder()
    at System.Windows.Forms.ListView.LayoutDetails()
    at System.Windows.Forms.ListView.CalculateListView(ListViewAlignment align)
    at System.Windows.Forms.ListView.Redraw(Boolean recalculate)
    at System.Windows.Forms.ListView.ListView_SizeChanged(System.Object sender, System.EventArgs e)
    at System.Windows.Forms.Control.OnSizeChanged(System.EventArgs e)
    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
    at System.Windows.Forms.Control.UpdateBounds()
    at System.Windows.Forms.Control.WmWindowPosChanged(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ListView.WndProc(Message ByRef m)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.XplatUI.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.Control.SetBoundsCoreInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedChildren(System.Windows.Forms.Control parent, System.Windows.Forms.Control[] controls)
    at System.Windows.Forms.Layout.DefaultLayout.Layout(System.Object container, System.Windows.Forms.LayoutEventArgs args)
    at System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ScrollableControl.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.PerformLayout()
    at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
    at System.Windows.Forms.Control.ResumeLayout()
    at System.Windows.Forms.SplitContainer.UpdateLayout()
    at System.Windows.Forms.SplitContainer.OnLayout(System.Windows.Forms.LayoutEventArgs e)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.OnResizeInternal(System.EventArgs e)
    at System.Windows.Forms.Control.OnResize(System.EventArgs e)
    at System.Windows.Forms.Control.OnSizeChanged(System.EventArgs e)
    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
    at System.Windows.Forms.Control.UpdateBounds()
    at System.Windows.Forms.Control.WmWindowPosChanged(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
    at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
    at System.Windows.Forms.SplitContainer.WndProc(Message ByRef msg)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.XplatUI.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.Control.SetBoundsCoreInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.SplitContainer.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedChildren(System.Windows.Forms.Control parent, System.Windows.Forms.Control[] controls)
    at System.Windows.Forms.Layout.DefaultLayout.Layout(System.Object container, System.Windows.Forms.LayoutEventArgs args)
    at System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ScrollableControl.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.PerformLayout()
    at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
    at System.Windows.Forms.Control.ResumeLayout()
    at System.Windows.Forms.SplitContainer.UpdateLayout()
    at System.Windows.Forms.SplitContainer.OnLayout(System.Windows.Forms.LayoutEventArgs e)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.OnResizeInternal(System.EventArgs e)
    at System.Windows.Forms.Control.OnResize(System.EventArgs e)
    at System.Windows.Forms.Control.OnSizeChanged(System.EventArgs e)
    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
    at System.Windows.Forms.Control.UpdateBounds()
    at System.Windows.Forms.Control.WmWindowPosChanged(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
    at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
    at System.Windows.Forms.SplitContainer.WndProc(Message ByRef msg)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.XplatUI.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.Control.SetBoundsCoreInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.SplitContainer.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedChildren(System.Windows.Forms.Control parent, System.Windows.Forms.Control[] controls)
    at System.Windows.Forms.Layout.DefaultLayout.Layout(System.Object container, System.Windows.Forms.LayoutEventArgs args)
    at System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ScrollableControl.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ContainerControl.OnLayout(System.Windows.Forms.LayoutEventArgs e)
    at System.Windows.Forms.Form.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.set_Visible(Boolean value)
    at KeePass.Forms.MainForm.UpdateUIState(Boolean bSetModified, System.Windows.Forms.Control cOptFocus)
    at KeePass.Forms.MainForm.UpdateUIState(Boolean bSetModified)
    at KeePass.Forms.MainForm.OnFormLoad(System.Object sender, System.EventArgs e)
    at System.Windows.Forms.Form.OnLoad(System.EventArgs e)
    at System.Windows.Forms.Form.OnLoadInternal(System.EventArgs e)
    at System.Windows.Forms.Form.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
    at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
    at System.Windows.Forms.Form.WndProc(Message ByRef m)
    at KeePass.Forms.MainForm.WndProc(Message ByRef m)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.MapWindow(System.Windows.Forms.Hwnd hwnd, WindowType windows)
    at System.Windows.Forms.XplatUIX11.CreateWindow(System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.XplatUI.CreateWindow(System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.Control.CreateHandle()
    at System.Windows.Forms.Form.CreateHandle()
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Control.set_Visible(Boolean value)
    at System.Windows.Forms.Application.RunLoop(Boolean Modal, System.Windows.Forms.ApplicationContext context)
    at System.Windows.Forms.Application.Run(System.Windows.Forms.ApplicationContext context)
    at System.Windows.Forms.Application.Run(System.Windows.Forms.Form mainForm)
    at KeePass.Program.Main(System.String[] args)
    System.Exception: Generic Error [GDI+ status: GenericError]
    at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in <filename unknown>:0
    at System.Drawing.Graphics.FillRectangle (System.Drawing.Brush brush, Int32 x, Int32 y, Int32 width, Int32 height) [0x00000] in <filename unknown>:0
    at System.Drawing.Graphics.FillRectangle (System.Drawing.Brush brush, Rectangle rect) [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.Drawing.Graphics:FillRectangle (System.Drawing.Brush,System.Drawing.Rectangle)
    at System.Windows.Forms.Control.PaintControlBackground (System.Windows.Forms.PaintEventArgs pevent) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.OnPaintBackground (System.Windows.Forms.PaintEventArgs pevent) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.ListView+ItemControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0
    X11 Error encountered:
    Error: BadDrawable (invalid Pixmap or Window parameter)
    Request: 14 (0)
    Resource ID: 0xE00045
    Serial: 1313
    Hwnd: <null>
    Control: <null> at System.Environment.get_StackTrace()
    at System.Windows.Forms.XplatUIX11.HandleError(IntPtr display, XErrorEvent ByRef error_event)
    at System.Drawing.GDIPlus.GdipCreateFromXDrawable_linux(IntPtr , IntPtr , IntPtr ByRef )
    at System.Drawing.Graphics.FromXDrawable(IntPtr drawable, IntPtr display)
    at System.Drawing.Graphics.FromHwnd(IntPtr hwnd)
    at System.Windows.Forms.XplatUIX11.GetOffscreenGraphics(System.Object offscreen_drawable)
    at System.Windows.Forms.XplatUI.GetOffscreenGraphics(System.Object offscreen_drawable)
    at System.Windows.Forms.Control+DoubleBuffer.Start(System.Windows.Forms.PaintEventArgs pe)
    at System.Windows.Forms.Control.WmPaint(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ListView+ItemControl.WndProc(Message ByRef m)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.UpdateWindow(IntPtr handle)
    at System.Windows.Forms.XplatUI.UpdateWindow(IntPtr handle)
    at System.Windows.Forms.Control.Update()
    at System.Windows.Forms.Control.Refresh()
    at System.Windows.Forms.Control.OnEnabledChanged(System.EventArgs e)
    at System.Windows.Forms.Control.ChangeParent(System.Windows.Forms.Control new_parent)
    at System.Windows.Forms.Control+ControlCollection.AddImplicit(System.Windows.Forms.Control control)
    at System.Windows.Forms.ListView.AdjustChildrenZOrder()
    at System.Windows.Forms.ListView.LayoutDetails()
    at System.Windows.Forms.ListView.CalculateListView(ListViewAlignment align)
    at System.Windows.Forms.ListView.Redraw(Boolean recalculate)
    at System.Windows.Forms.ListView.ListView_SizeChanged(System.Object sender, System.EventArgs e)
    at System.Windows.Forms.Control.OnSizeChanged(System.EventArgs e)
    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
    at System.Windows.Forms.Control.UpdateBounds()
    at System.Windows.Forms.Control.WmWindowPosChanged(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ListView.WndProc(Message ByRef m)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.XplatUI.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.Control.SetBoundsCoreInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedChildren(System.Windows.Forms.Control parent, System.Windows.Forms.Control[] controls)
    at System.Windows.Forms.Layout.DefaultLayout.Layout(System.Object container, System.Windows.Forms.LayoutEventArgs args)
    at System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ScrollableControl.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.PerformLayout()
    at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
    at System.Windows.Forms.Control.ResumeLayout()
    at System.Windows.Forms.SplitContainer.UpdateLayout()
    at System.Windows.Forms.SplitContainer.OnLayout(System.Windows.Forms.LayoutEventArgs e)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.OnResizeInternal(System.EventArgs e)
    at System.Windows.Forms.Control.OnResize(System.EventArgs e)
    at System.Windows.Forms.Control.OnSizeChanged(System.EventArgs e)
    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
    at System.Windows.Forms.Control.UpdateBounds()
    at System.Windows.Forms.Control.WmWindowPosChanged(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
    at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
    at System.Windows.Forms.SplitContainer.WndProc(Message ByRef msg)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.XplatUI.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.Control.SetBoundsCoreInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.SplitContainer.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedChildren(System.Windows.Forms.Control parent, System.Windows.Forms.Control[] controls)
    at System.Windows.Forms.Layout.DefaultLayout.Layout(System.Object container, System.Windows.Forms.LayoutEventArgs args)
    at System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ScrollableControl.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.PerformLayout()
    at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
    at System.Windows.Forms.Control.ResumeLayout()
    at System.Windows.Forms.SplitContainer.UpdateLayout()
    at System.Windows.Forms.SplitContainer.OnLayout(System.Windows.Forms.LayoutEventArgs e)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.OnResizeInternal(System.EventArgs e)
    at System.Windows.Forms.Control.OnResize(System.EventArgs e)
    at System.Windows.Forms.Control.OnSizeChanged(System.EventArgs e)
    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
    at System.Windows.Forms.Control.UpdateBounds()
    at System.Windows.Forms.Control.WmWindowPosChanged(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
    at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
    at System.Windows.Forms.SplitContainer.WndProc(Message ByRef msg)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.XplatUI.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.Control.SetBoundsCoreInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.SplitContainer.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedChildren(System.Windows.Forms.Control parent, System.Windows.Forms.Control[] controls)
    at System.Windows.Forms.Layout.DefaultLayout.Layout(System.Object container, System.Windows.Forms.LayoutEventArgs args)
    at System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ScrollableControl.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ContainerControl.OnLayout(System.Windows.Forms.LayoutEventArgs e)
    at System.Windows.Forms.Form.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.set_Visible(Boolean value)
    at KeePass.Forms.MainForm.UpdateUIState(Boolean bSetModified, System.Windows.Forms.Control cOptFocus)
    at KeePass.Forms.MainForm.UpdateUIState(Boolean bSetModified)
    at KeePass.Forms.MainForm.OnFormLoad(System.Object sender, System.EventArgs e)
    at System.Windows.Forms.Form.OnLoad(System.EventArgs e)
    at System.Windows.Forms.Form.OnLoadInternal(System.EventArgs e)
    at System.Windows.Forms.Form.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
    at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
    at System.Windows.Forms.Form.WndProc(Message ByRef m)
    at KeePass.Forms.MainForm.WndProc(Message ByRef m)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.MapWindow(System.Windows.Forms.Hwnd hwnd, WindowType windows)
    at System.Windows.Forms.XplatUIX11.CreateWindow(System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.XplatUI.CreateWindow(System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.Control.CreateHandle()
    at System.Windows.Forms.Form.CreateHandle()
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Control.set_Visible(Boolean value)
    at System.Windows.Forms.Application.RunLoop(Boolean Modal, System.Windows.Forms.ApplicationContext context)
    at System.Windows.Forms.Application.Run(System.Windows.Forms.ApplicationContext context)
    at System.Windows.Forms.Application.Run(System.Windows.Forms.Form mainForm)
    at KeePass.Program.Main(System.String[] args)
    System.Exception: Generic Error [GDI+ status: GenericError]
    at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in <filename unknown>:0
    at System.Drawing.Graphics.FillRectangle (System.Drawing.Brush brush, Int32 x, Int32 y, Int32 width, Int32 height) [0x00000] in <filename unknown>:0
    at System.Drawing.Graphics.FillRectangle (System.Drawing.Brush brush, Rectangle rect) [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.Drawing.Graphics:FillRectangle (System.Drawing.Brush,System.Drawing.Rectangle)
    at System.Windows.Forms.Control.PaintControlBackground (System.Windows.Forms.PaintEventArgs pevent) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.OnPaintBackground (System.Windows.Forms.PaintEventArgs pevent) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.ListView+ItemControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0
    X11 Error encountered:
    Error: BadWindow (invalid Window parameter)
    Request: 20 (0)
    Resource ID: 0xE0001A
    Serial: 1320
    Hwnd: Hwnd, Mapped:False ClientWindow:0xE0001B, WholeWindow:0xE0001A, Zombie=True, Parent:[Hwnd, Mapped:False ClientWindow:0xE00019, WholeWindow:0xE00018, Zombie=True, Parent:[Hwnd, Mapped:False ClientWindow:0xE00017, WholeWindow:0xE00016, Zombie=True, Parent:[Hwnd, Mapped:False ClientWindow:0xE00015, WholeWindow:0xE00014, Zombie=True, Parent:[Hwnd, Mapped:False ClientWindow:0xE0000F, WholeWindow:0xE0000E, Zombie=True, Parent:[Hwnd, Mapped:False ClientWindow:0xE0000D, WholeWindow:0xE0000C, Zombie=True, Parent:[<null>]]]]]]
    Control: <handle E0001B non-existant> at System.Environment.get_StackTrace()
    at System.Windows.Forms.XplatUIX11.HandleError(IntPtr display, XErrorEvent ByRef error_event)
    at System.Windows.Forms.XplatUIX11.XGetWMNormalHints(IntPtr , IntPtr , XSizeHints ByRef , IntPtr ByRef )
    at System.Windows.Forms.XplatUIX11.SetWindowMinMax(IntPtr handle, Rectangle maximized, Size min, Size max, System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.XplatUIX11.SetWindowMinMax(IntPtr handle, Rectangle maximized, Size min, Size max)
    at System.Windows.Forms.XplatUIX11.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.XplatUI.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.Control.SetBoundsCoreInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedChildren(System.Windows.Forms.Control parent, System.Windows.Forms.Control[] controls)
    at System.Windows.Forms.Layout.DefaultLayout.Layout(System.Object container, System.Windows.Forms.LayoutEventArgs args)
    at System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ScrollableControl.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.PerformLayout()
    at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
    at System.Windows.Forms.Control.ResumeLayout()
    at System.Windows.Forms.SplitContainer.UpdateLayout()
    at System.Windows.Forms.SplitContainer.OnLayout(System.Windows.Forms.LayoutEventArgs e)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.OnResizeInternal(System.EventArgs e)
    at System.Windows.Forms.Control.OnResize(System.EventArgs e)
    at System.Windows.Forms.Control.OnSizeChanged(System.EventArgs e)
    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
    at System.Windows.Forms.Control.UpdateBounds()
    at System.Windows.Forms.Control.WmWindowPosChanged(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
    at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
    at System.Windows.Forms.SplitContainer.WndProc(Message ByRef msg)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.XplatUI.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.Control.SetBoundsCoreInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.SplitContainer.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedChildren(System.Windows.Forms.Control parent, System.Windows.Forms.Control[] controls)
    at System.Windows.Forms.Layout.DefaultLayout.Layout(System.Object container, System.Windows.Forms.LayoutEventArgs args)
    at System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ScrollableControl.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.PerformLayout()
    at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
    at System.Windows.Forms.Control.ResumeLayout()
    at System.Windows.Forms.SplitContainer.UpdateLayout()
    at System.Windows.Forms.SplitContainer.OnLayout(System.Windows.Forms.LayoutEventArgs e)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.OnResizeInternal(System.EventArgs e)
    at System.Windows.Forms.Control.OnResize(System.EventArgs e)
    at System.Windows.Forms.Control.OnSizeChanged(System.EventArgs e)
    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
    at System.Windows.Forms.Control.UpdateBounds()
    at System.Windows.Forms.Control.WmWindowPosChanged(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
    at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
    at System.Windows.Forms.SplitContainer.WndProc(Message ByRef msg)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.XplatUI.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.Control.SetBoundsCoreInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.SplitContainer.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedChildren(System.Windows.Forms.Control parent, System.Windows.Forms.Control[] controls)
    at System.Windows.Forms.Layout.DefaultLayout.Layout(System.Object container, System.Windows.Forms.LayoutEventArgs args)
    at System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ScrollableControl.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ContainerControl.OnLayout(System.Windows.Forms.LayoutEventArgs e)
    at System.Windows.Forms.Form.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.set_Visible(Boolean value)
    at KeePass.Forms.MainForm.UpdateUIState(Boolean bSetModified, System.Windows.Forms.Control cOptFocus)
    at KeePass.Forms.MainForm.UpdateUIState(Boolean bSetModified)
    at KeePass.Forms.MainForm.OnFormLoad(System.Object sender, System.EventArgs e)
    at System.Windows.Forms.Form.OnLoad(System.EventArgs e)
    at System.Windows.Forms.Form.OnLoadInternal(System.EventArgs e)
    at System.Windows.Forms.Form.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
    at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
    at System.Windows.Forms.Form.WndProc(Message ByRef m)
    at KeePass.Forms.MainForm.WndProc(Message ByRef m)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.MapWindow(System.Windows.Forms.Hwnd hwnd, WindowType windows)
    at System.Windows.Forms.XplatUIX11.CreateWindow(System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.XplatUI.CreateWindow(System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.Control.CreateHandle()
    at System.Windows.Forms.Form.CreateHandle()
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Control.set_Visible(Boolean value)
    at System.Windows.Forms.Application.RunLoop(Boolean Modal, System.Windows.Forms.ApplicationContext context)
    at System.Windows.Forms.Application.Run(System.Windows.Forms.ApplicationContext context)
    at System.Windows.Forms.Application.Run(System.Windows.Forms.Form mainForm)
    at KeePass.Program.Main(System.String[] args)
    System.NullReferenceException: Object reference not set to an instance of an object
    at System.Windows.Forms.XplatUIX11.SetWindowPos (IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.XplatUI.SetWindowPos (IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.SetBoundsCoreInternal (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.SetBoundsCore (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.SetBoundsInternal (Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified) [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:SetBoundsInternal (int,int,int,int,System.Windows.Forms.BoundsSpecified)
    at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedChildren (System.Windows.Forms.Control parent, System.Windows.Forms.Control[] controls) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Layout.DefaultLayout.Layout (System.Object container, System.Windows.Forms.LayoutEventArgs args) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.OnLayout (System.Windows.Forms.LayoutEventArgs levent) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.ScrollableControl.OnLayout (System.Windows.Forms.LayoutEventArgs levent) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.PerformLayout (System.Windows.Forms.Control affectedControl, System.String affectedProperty) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.PerformLayout () [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.ResumeLayout (Boolean performLayout) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.ResumeLayout () [0x00000] in <filename unknown>:0
    at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:ResumeLayout ()
    at System.Windows.Forms.SplitContainer.UpdateLayout () [0x00000] in <filename unknown>:0
    at System.Windows.Forms.SplitContainer.OnLayout (System.Windows.Forms.LayoutEventArgs e) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.PerformLayout (System.Windows.Forms.Control affectedControl, System.String affectedProperty) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.OnResizeInternal (System.EventArgs e) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.OnResize (System.EventArgs e) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.OnSizeChanged (System.EventArgs e) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.UpdateBounds (Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.UpdateBounds () [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.WmWindowPosChanged (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.SplitContainer.WndProc (System.Windows.Forms.Message& msg) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
    at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0
    X11 Error encountered:
    Error: BadWindow (invalid Window parameter)
    Request: 18 (0)
    Resource ID: 0xE0001A
    Serial: 1321
    Hwnd: Hwnd, Mapped:False ClientWindow:0xE0001B, WholeWindow:0xE0001A, Zombie=True, Parent:[Hwnd, Mapped:False ClientWindow:0xE00019, WholeWindow:0xE00018, Zombie=True, Parent:[Hwnd, Mapped:False ClientWindow:0xE00017, WholeWindow:0xE00016, Zombie=True, Parent:[Hwnd, Mapped:False ClientWindow:0xE00015, WholeWindow:0xE00014, Zombie=True, Parent:[Hwnd, Mapped:False ClientWindow:0xE0000F, WholeWindow:0xE0000E, Zombie=True, Parent:[Hwnd, Mapped:False ClientWindow:0xE0000D, WholeWindow:0xE0000C, Zombie=True, Parent:[<null>]]]]]]
    Control: <handle E0001B non-existant> at System.Environment.get_StackTrace()
    at System.Windows.Forms.XplatUIX11.HandleError(IntPtr display, XErrorEvent ByRef error_event)
    at System.Windows.Forms.XplatUIX11.XGetWMNormalHints(IntPtr , IntPtr , XSizeHints ByRef , IntPtr ByRef )
    at System.Windows.Forms.XplatUIX11.SetWindowMinMax(IntPtr handle, Rectangle maximized, Size min, Size max, System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.XplatUIX11.SetWindowMinMax(IntPtr handle, Rectangle maximized, Size min, Size max)
    at System.Windows.Forms.XplatUIX11.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.XplatUI.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.Control.SetBoundsCoreInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.SplitContainer.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedChildren(System.Windows.Forms.Control parent, System.Windows.Forms.Control[] controls)
    at System.Windows.Forms.Layout.DefaultLayout.Layout(System.Object container, System.Windows.Forms.LayoutEventArgs args)
    at System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ScrollableControl.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.PerformLayout()
    at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
    at System.Windows.Forms.Control.ResumeLayout()
    at System.Windows.Forms.SplitContainer.UpdateLayout()
    at System.Windows.Forms.SplitContainer.OnLayout(System.Windows.Forms.LayoutEventArgs e)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.OnResizeInternal(System.EventArgs e)
    at System.Windows.Forms.Control.OnResize(System.EventArgs e)
    at System.Windows.Forms.Control.OnSizeChanged(System.EventArgs e)
    at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
    at System.Windows.Forms.Control.UpdateBounds()
    at System.Windows.Forms.Control.WmWindowPosChanged(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
    at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
    at System.Windows.Forms.SplitContainer.WndProc(Message ByRef msg)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.XplatUI.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.Control.SetBoundsCoreInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.SplitContainer.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedChildren(System.Windows.Forms.Control parent, System.Windows.Forms.Control[] controls)
    at System.Windows.Forms.Layout.DefaultLayout.Layout(System.Object container, System.Windows.Forms.LayoutEventArgs args)
    at System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ScrollableControl.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.ContainerControl.OnLayout(System.Windows.Forms.LayoutEventArgs e)
    at System.Windows.Forms.Form.OnLayout(System.Windows.Forms.LayoutEventArgs levent)
    at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.Control affectedControl, System.String affectedProperty)
    at System.Windows.Forms.Control.set_Visible(Boolean value)
    at KeePass.Forms.MainForm.UpdateUIState(Boolean bSetModified, System.Windows.Forms.Control cOptFocus)
    at KeePass.Forms.MainForm.UpdateUIState(Boolean bSetModified)
    at KeePass.Forms.MainForm.OnFormLoad(System.Object sender, System.EventArgs e)
    at System.Windows.Forms.Form.OnLoad(System.EventArgs e)
    at System.Windows.Forms.Form.OnLoadInternal(System.EventArgs e)
    at System.Windows.Forms.Form.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message ByRef m)
    at System.Windows.Forms.Control.WndProc(Message ByRef m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
    at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
    at System.Windows.Forms.Form.WndProc(Message ByRef m)
    at KeePass.Forms.MainForm.WndProc(Message ByRef m)
    at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
    at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
    at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
    at System.Windows.Forms.XplatUIX11.MapWindow(System.Windows.Forms.Hwnd hwnd, WindowType windows)
    at System.Windows.Forms.XplatUIX11.CreateWindow(System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.XplatUI.CreateWindow(System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.Control.CreateHandle()
    at System.Windows.Forms.Form.CreateHandle()
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Control.set_Visible(Boolean value)
    at System.Windows.Forms.Application.RunLoop(Boolean Modal, System.Windows.Forms.ApplicationContext context)
    at System.Windows.Forms.Application.Run(System.Windows.Forms.ApplicationContext context)
    at System.Windows.Forms.Application.Run(System.Windows.Forms.Form mainForm)
    at KeePass.Program.Main(System.String[] args)
    X11 Error encountered:
    Error: BadWindow (invalid Window parameter)
    Request: 20 (0)
    Resource ID: 0xE00016
    Serial: 1322
    Hwnd: Hwnd, Mapped:False ClientWindow:0xE00017, WholeWindow:0xE00016, Zombie=True, Parent:[Hwnd, Mapped:False ClientWindow:0xE00015, WholeWindow:0xE00014, Zombie=True, Parent:[Hwnd, Mapped:False ClientWindow:0xE0000F, WholeWindow:0xE0000E, Zombie=True, Parent:[Hwnd, Mapped:False ClientWindow:0xE0000D, WholeWindow:0xE0000C, Zombie=True, Parent:[<null>]]]]
    Control: <handle E00017 non-existant> at System.Environment.get_StackTrace()
    at System.Windows.Forms.XplatUIX11.HandleError(IntPtr display, XErrorEvent ByRef error_event)
    at System.Windows.Forms.XplatUIX11.XGetWMNormalHints(IntPtr , IntPtr , XSizeHints ByRef , IntPtr ByRef )
    at System.Windows.Forms.XplatUIX11.SetWindowMinMax(IntPtr handle, Rectangle maximized, Size min, Size max, System.Windows.Forms.CreateParams cp)
    at System.Windows.Forms.XplatUIX11.SetWindowMinMax(IntPtr handle, Rectangle maximized, Size min, Size max)
    at System.Windows.Forms.XplatUIX11.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.XplatUI.SetWindowPos(IntPtr handle, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Windows.Forms.Control.SetBoundsCoreInternal(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
    at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified sp

    Code tags are provided by the forum software; please use them.

  • Overlapping edge files z-index

    I'm embedding multple edge files on one page in indesign for a folio project.
    If I overlap edge files they cancel buttons out behind.
    Can I define a z-index to a button on the edge file on the base layer in indesign so the button appears on the top layer and overlaps/overrides layers?
    Make sense?
    Thanks in advance...
    Dan

    Here is why gramp's suggestion is good:
    Window Mode (wmode) - What's It For?
    There are three window modes.
    Window
    Opaque
    Transparent
    By default, the Flash Player gets its own hWnd in Windows. This means that the Flash movie actually exists in a display instance within Windows that lives above the core browser display window. So though it appears to be in the browser window, technically, it isn't. It is most efficient for Flash to draw this way and this is the fastest, most efficient rendering mode. However, it is drawing independently of the browser's HTML rendering surface. This is why this default mode (which is equivalent to wmode="window") doesn't allow proper compositing with DHTML layers. This is why your JavaScripted drop-down menus will drop behind your Flash movie.
    In windowless modes (like opaque), Flash Player doesn't have a hWnd. This means that the browser tells the Flash Player when and where to draw onto the browser's own rendering surface. The Flash movie is no longer being rendered on a higher level if you will. It's right there in the page with the rest of the page elements. The Flash buffer is simply drawn into whatever rectangle the browser says, with any Flash stage space not occupied by objects receiving the movie's background color.
    Best wishes,
    Adninjastrator

  • FLVPlayBack loop and menu doesn't work

    Hi,
    My FLVPlayBack integratino doesn't work : menu don't show, the video don't loop .
    It's here :
    http://www.fermedesetoiles.com/
    And the code generated by flash CS5 pro :
    <div id="flashContent">
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="385" height="282" id="pic-du-midi-fevrier-2011" align="middle">
    <param name="movie" value="videos/pic-du-midi-fevrier-2011.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <param name="play" value="true" />
    <param name="loop" value="true" />
    <param name="wmode" value="window" />
    <param name="scale" value="showall" />
    <param name="menu" value="true" />
    <param name="devicefont" value="false" />
    <param name="salign" value="" />
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="true" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="videos/pic-du-midi-fevrier-2011.swf" width="385" height="282">
    <param name="movie" value="pic-du-midi-fevrier-2011.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <param name="play" value="true" />
    <param name="loop" value="true" />
    <param name="wmode" value="window" />
    <param name="scale" value="showall" />
    <param name="menu" value="true" />
    <param name="devicefont" value="false" />
    <param name="salign" value="" />
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="true" />
    <!--<![endif]-->
    <a href="http://www.adobe.com/go/getflash">
    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Obtenir Adobe Flash Player" />
    </a>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    </div>
    An other problem : my css menu is behind the video.
    Does anyone no why ?
    Thanks.

    Add change your wmode. From an old post:
    Window Mode (wmode) - What's It For?
    There are three window modes.
    Window
    Opaque
    Transparent
    By default, the Flash Player gets its own hWnd in Windows. This means that the Flash movie actually exists in a display instance within Windows that lives above the core browser display window. So though it appears to be in the browser window, technically, it isn't. It is most efficient for Flash to draw this way and this is the fastest, most efficient rendering mode. However, it is drawing independently of the browser's HTML rendering surface. This is why this default mode (which is equivalent to wmode="window") doesn't allow proper compositing with DHTML layers. This is why your JavaScripted drop-down menus will drop behind your Flash movie.
    In windowless modes (like opaque), Flash Player doesn't have a hWnd. This means that the browser tells the Flash Player when and where to draw onto the browser's own rendering surface. The Flash movie is no longer being rendered on a higher level if you will. It's right there in the page with the rest of the page elements. The Flash buffer is simply drawn into whatever rectangle the browser says, with any Flash stage space not occupied by objects receiving the movie's background color.
    Best wishes,
    Adninjastrator

  • Download File Via JavaScript Calls From Website

    Hello,
    I am currently trying to create a program in c# that will download the file "PracticeProfiles.xls" from this website:
    http://fingertips.phe.org.uk/profile/general-practice/data
    I need to somehow on navigation to this site pass the javascript calls "showExport();exportData();", which will start the download.
    Any help would be greatly appreciated.
    Many Thanks

    The link has a method which apparently works, however I had to modify a few things to make it compile:
    public void DownloadIEFile(Browser browser)
    HwndSource source;
    source = HwndSource.FromHwnd(WatiN.Core.Native.Windows.NativeMethods.GetWindow(browser.hWnd, 5));
    Window windowMain = source.RootVisual as Window;
    System.Windows.Automation.TreeWalker trw = new System.Windows.Automation.TreeWalker(System.Windows.Automation.Condition.TrueCondition);
    System.Windows.Automation.AutomationElement mainWindow = trw.GetParent(System.Windows.Automation.AutomationElement.FromHandle(browser.hWnd));
    source = HwndSource.FromHwnd(WatiN.Core.Native.Windows.NativeMethods.GetWindow(new WindowInteropHelper(windowMain).Handle, 5));
    Window windowDialog = source.RootVisual as Window;
    // if doesn't work try to increase sleep interval or write your own waitUntill method
    Thread.Sleep(1000);
    windowDialog.Activate();
    System.Windows.Automation.AutomationElementCollection amc = System.Windows.Automation.AutomationElement.FromHandle(new WindowInteropHelper(windowDialog).Handle).FindAll(System.Windows.Automation.TreeScope.Children, System.Windows.Automation.Condition.TrueCondition);
    foreach (System.Windows.Automation.AutomationElement element in amc)
    // You can use "Save ", "Open", ''Cancel', or "Close" to find necessary button Or write your own enum
    if (element.Current.Name.Equals("Save"))
    // if doesn't work try to increase sleep interval or write your own waitUntil method
    // WaitUntilButtonExsist(element,100);
    Thread.Sleep(1000);
    System.Windows.Automation.AutomationPattern[] pats = element.GetSupportedPatterns();
    // replace this foreach if you need 'Save as' with code bellow
    foreach (System.Windows.Automation.AutomationPattern pat in pats)
    // '10000' button click event id
    if (pat.Id == 10000)
    System.Windows.Automation.InvokePattern click = (System.Windows.Automation.InvokePattern)element.GetCurrentPattern(pat);
    click.Invoke();
    However I am getting null when I try to get the hwnd source, can't see why?
    Any Suggestions?
    Many Thanks

  • RAW INPUT = BAADF00D, help please

    #include <stdint.h>
    #include <string.h>
    #include <stdio.h>
    #include <windows.h>
    #ifdef _MSC_VER
    #define lint __int64
    #define LI( NUM ) NUM##i64
    #elif defined( _UNIX_ )
    #define lint long int
    #define LI( NUM ) NUM##li
    #else
    #define lint long long
    #define LI( NUM ) NUM##ll
    #endif
    #ifdef _WIN32
    typedef SSIZE_T ssize_t;
    #endif
    typedef unsigned char uchar;
    typedef signed char schar;
    typedef unsigned short ushort;
    typedef unsigned long ulong;
    typedef unsigned int uint;
    typedef unsigned lint ulint;
    typedef size_t usize;
    typedef ssize_t ssize;
    typedef RAWINPUTDEVICE ZDEVICE;
    typedef RAWINPUT ZINPUT;
    typedef HWND ZHWND;
    typedef struct _ZDEVICELIST
    uint T;
    uint c;
    uint s;
    RAWINPUTDEVICELIST *a;
    } ZDEVICELIST;
    typedef struct _ZINPUTLIST
    uint T;
    uint c;
    uint s;
    RAWINPUT *a;
    } ZINPUTLIST;
    /** \brief creates a device structure
    \return globally allocated object
    uchar ziAllocDeviceList( ZDEVICELIST* devList )
    #ifdef _WIN32
    devList->T = sizeof( RAWINPUTDEVICELIST );
    GetRawInputDeviceList( NULL, &devList->c, devList->T );
    // Just in case new devices are attached :)
    devList->c += 10;
    devList->s = devList->c * devList->T;
    HeapAlloc( GetProcessHeap(), 0, devList->s );
    if ( devList->a )
    //memset( devList->a, 0, devList->s );
    GetRawInputDeviceList( devList->a, &devList->c, devList->s );
    return 1;
    #endif
    devList->c = 0;
    devList->s = 0;
    return 0;
    void ziFreeDeviceList( ZDEVICELIST *devList )
    #ifdef _WIN32
    HeapFree( GetProcessHeap(), 0, devList->a );
    #endif
    devList->c = 0;
    devList->s = 0;
    devList->a = NULL;
    /** \brief Attempts to acquire a joypad object
    \param hwnd The window that should have focus when capturing joypad state
    \param n The nth joypad to acquire (0 indicates next available joypad)
    \return device handle on success, NULL on failure
    ZDEVICE* ziAcquireJoypadDevice( ZHWND hwnd, uchar n )
    uchar c = 0;
    uint i = 0;
    ZDEVICE *dev = NULL;
    ZDEVICELIST devList = {0};
    ziAllocDeviceList( &devList );
    for ( ; i < devList.c; ++i )
    #ifdef _WIN32
    dev = (ZDEVICE*)(devList.a[i].hDevice);
    if ( dev->usUsagePage == 1 && dev->usUsage == 5 )
    #else
    if ( 0 )
    #endif
    ++c;
    if ( c > n )
    break;
    ziFreeDeviceList( &devList );
    return ( i < devList.c ) ? dev : NULL;
    #define Z_XBTN_Y 0
    #define Z_XBTN_B 1
    #define Z_XBTN_A 2
    #define Z_XBTN_X 3
    #define Z_XBTN_BACK 5
    #define Z_XBTN_START 6
    #define Z_XBTN_HSU 6
    #define Z_XBTN_HSR 7
    #define Z_XBTN_HSD 8
    #define Z_XBTN_HSL 9
    #define Z_XBTN_LT 10
    #define Z_XBTN_RT 11
    #define Z_XBTN_LB 12
    #define Z_XBTN_RB 13
    #define Z_XBTN_LS 14
    #define Z_XBTN_RS 15
    // Not sure if these are even accessible
    #define Z_XBTN_HOME 16
    #define Z_XBTN_TURBO 17
    #define Z_XBTN_STOP 18
    #define Z_XBTN_COUNT 19
    #define Z_AXIS_X 0
    #define Z_AXIS_Y 1
    #define Z_AXIS_XR 2
    #define Z_AXIS_YR 3
    #define Z_AXIS_Z 4
    // Dualshock 3 and higher or Wiimote
    #define Z_AXIS_XP 5
    #define Z_AXIS_YP 7
    // Will this ever be provided?
    #define Z_AXIS_ZP 8
    #define Z_AXIS_COUNT 9
    typedef struct _ZJOYPAD_INPUT
    uchar btn[Z_XBTN_COUNT];
    long axis[Z_AXIS_COUNT];
    } ZJOYPAD_INPUT;
    void printBuff( uchar *buff, usize s )
    usize i = 0;
    uint _v = 0;
    uchar *v = (uchar*)&_v, j = 0, k = 32;
    char *hex = "0123456789ABCDEF";
    if ( !buff || !s )
    return;
    do
    v[ i & 0x3 ] = buff[i]; ++i;
    if ( (i & 0x3) == 0)
    j = 0; k = 28;
    do
    putc( hex[ (_v >> k) & 0xf ], stdout );
    j += 4; k -= 4;
    } while ( j < 32 );
    _v = 0;
    if ( ( i & 0xf ) == 0 )
    putc( '\n', stdout );
    else
    putc( ' ', stdout );
    while ( i < s );
    if ( i & 0x3 )
    j = 0; k = 28;
    do
    putc( hex[ (_v >> k) & 0xf ], stdout );
    j += 4; k -= 4;
    } while ( j < 32 );
    uint ziAcquireJoypadInput( ZDEVICE *dev, ZINPUT** din )
    ZINPUT *r = NULL;
    ZINPUTLIST iList = {0};
    ZJOYPAD_INPUT joy = {{0}};
    #ifdef _WIN32
    HANDLE hHeap = GetProcessHeap();
    iList.T = sizeof(RAWINPUT);
    iList.s = iList.T;
    GetRawInputBuffer( NULL, &iList.s, 0 );
    if ( !iList.s )
    return 0;
    iList.s *= 8;
    iList.a = (RAWINPUT*)HeapAlloc( hHeap, 0, iList.s );
    if ( !iList.a )
    return 0;
    iList.c = GetRawInputBuffer( iList.a, &iList.s, 0 );
    printBuff( (uchar*)iList.a, iList.s );
    HeapFree( hHeap, 0, iList.a );
    /// \todo Finish getting Joypad data
    #endif
    *din = iList.a;
    return iList.s;
    int main( void )
    ZDEVICE* dev = ziAcquireJoypadDevice( NULL, 0 );
    ZINPUT* din = NULL;
    usize s = ziAcquireJoypadInput( dev, &din );
    return 0;
    I'm attempting to grab the input from my xbox controller at the moment (please for crying out loud do NOT refer me to XInput or WM_INPUT) but I keep getting BAADF00D come out when I try to access the buffer itself. Could someone explain to me what I've been
    doing wrong? I would like to do this in async style code for example:
    if ( ziAcquireJoypadInput( dev, &padi ) )
      for ( i = 0; i < Z_XBTN_COUNT; ++i )
        if ( (vbtn & (1<< i)) && !padi.btn[i] )
          break;
      for ( i = 0; i < Z_AXIS_COUNT; ++i )
        if ( vaxis[i] && !padi.axis[i] )
          break;
      if ( i == Z_XBTN_COUNT )
        // Peform action
    This is for a general purpose hacking app btw, it will be in an executable that can inject itself in another of user choice and the function that checks for input will only be called via a jmp code (like with armax/xploder on playstation).

    Thank you, you now have my sincere apology for my earlier attitude, as for the uninitialised buffer I think I got round to fixing that sortof, I still get a weird error when attempting to acquire the controller though but I'll move onto that later. For now
    my biggest issue is that I cannot acquire the input buffer, just keep getting size of zero which doesn't make sense to me when there is at least 3 devices attached to my computer. Here is the updated code, is there anything you can spot that might be causing
    this?
    uchar ziAllocDeviceList( ZDEVICELIST* devList )
    #ifdef _WIN32
    devList->T = sizeof( RAWINPUTDEVICELIST );
    GetRawInputDeviceList( NULL, &devList->c, devList->T );
    // Just in case new devices are attached :)
    if ( devList->c )
    devList->c += 10;
    devList->s = devList->c * devList->T;
    devList->a = (RAWINPUTDEVICELIST*)malloc( devList->s );
    if ( devList->a )
    memset( devList->a, 0, devList->s );
    devList->c = GetRawInputDeviceList( devList->a, &devList->c, devList->T );
    return 1;
    #endif
    devList->c = 0;
    devList->s = 0;
    return 0;
    void ziFreeDeviceList( ZDEVICELIST *devList )
    #ifdef _WIN32
    free( devList->a );
    #endif
    devList->c = 0;
    devList->s = 0;
    devList->a = NULL;
    /** \brief Attempts to acquire a joypad object
    \param hwnd The window that should have focus when capturing joypad state
    \param n The nth joypad to acquire (0 indicates next available joypad)
    \return device handle on success, NULL on failure
    uchar ziAcquireJoypadDevice( ZDEVICE* ptr, ZHWND hwnd, uchar n )
    uchar c = 0;
    uint i = 0;
    ushort usage = 0, page = 0;
    ZDEVICE *dev = NULL, *prv = NULL;
    ZDEVICELIST devList = {0};
    ziAllocDeviceList( &devList );
    if ( devList.c == UINT_MAX )
    devList.c = 0;
    i = GetLastError();
    goto finish;
    for ( ; i < devList.c; ++i )
    #ifdef _WIN32
    (HANDLE)dev = devList.a[i].hDevice;
    if ( !dev )
    continue;
    page = dev->usUsagePage & 0xff;
    usage = dev->usUsage & 0xff;
    if ( (page == 1 || page == 4) && (usage == 4 || usage == 5) )
    #else
    if ( 0 )
    #endif
    ++c;
    prv = dev;
    if ( c > n )
    break;
    finish:
    ziFreeDeviceList( &devList );
    if ( c )
    *ptr = *prv;
    ptr->dwFlags = 0;
    ptr->hwndTarget = NULL;
    #ifdef _WIN32
    if ( !RegisterRawInputDevices( ptr, 1, sizeof(RAWINPUTDEVICE) ) )
    i = GetLastError();
    return 0;
    #endif // _WIN32
    return 1;
    return 0;
    uint ziAcquireJoypadInput( ZDEVICE *dev, ZINPUT** din )
    uint i = 0;
    ZINPUT *r = NULL;
    ZINPUTLIST iList = {0};
    ZJOYPAD_INPUT joy = {{0}};
    #ifdef _WIN32
    iList.T = sizeof(RAWINPUT);
    iList.s = iList.T;
    if ( GetRawInputBuffer( NULL, &(iList.s), sizeof(RAWINPUTHEADER) ) || !iList.s )
    i = GetLastError();
    return 0;
    iList.s *= 8;
    iList.a = (RAWINPUT*)malloc( iList.s );
    if ( !iList.a )
    return 0;
    iList.c = GetRawInputBuffer( iList.a, &iList.T, sizeof(RAWINPUTHEADER) );
    while ( i < iList.c )
    r = &iList.a[i];
    if ( r->header.hDevice == (HANDLE)dev )
    break;
    if ( i == iList.c )
    r = NULL;
    if ( r && r->data.hid.dwSizeHid != 0xBAADF00D )
    printBuff( (uchar*)(r->data.hid.bRawData), r->data.hid.dwSizeHid * r->data.hid.dwCount );
    free( iList.a );
    /// \todo Finish getting Joypad data
    #endif
    *din = iList.a;
    return iList.s;

  • Using EDITSTREAM CALLBACK

    Hallo everyone! I've been having trouble using the EDIT STREAM CALLBACK.When I try to run my application, it fails with unhand-led exception access violation.Here my code.Any help will be highly appreciated.
    case ID_BUTTONA:
                DWORD_PTR dwCookie;
        dwCookie = 0;
        DWORD   dwError;
        dwError = 0;
        EDITSTREAMCALLBACK EditStreamCallback;
        EditStreamCallback = NULL ;
        EDITSTREAM es;  
        hFile = (HANDLE)dwCookie;   
    es.dwCookie    = (DWORD_PTR)hFile;
    es.dwError =    dwError;
    es.pfnCallback = EditStreamCallback;
        LPBYTE pbBuff;
        pbBuff = NULL;
        LONG cb;
        PLONG pcb;
        pcb = 0;
        DWORD   write;
         WriteFile(hFile, &pbBuff, write, (DWORD *)&pcb, NULL);//
    dwpfn=GetLastError();
          swprintf_s(dwj,100,L"%d",dwpfn);
                            MessageBox(hWnd, dwj
                                       L"Problem with write file",
    MB_OK);
    EditStreamCallback( (DWORD_PTR)hFile ,pbBuff,cb,pcb);
    SendMessage(richedit, EM_STREAMOUT, SF_RTF, (LPARAM)&es);
        hFile = CreateFile(L"Again.rtf",GENERIC_WRITE,
                                  FILE_SHARE_WRITE, 0, CREATE_NEW,
                                  FILE_ATTRIBUTE_NORMAL, NULL);
        if (hFile=INVALID_HANDLE_VALUE)
        dw2=GetLastError();
          swprintf_s(dw3,100,L"%d",dw2);
                            MessageBox(hWnd, dw3
                                       L"INVALID_HANDLE_VALUE",
                                       MB_OK);
                case IDM_OPEN:
           hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED |
            COINIT_DISABLE_OLE1DDE);
        if (SUCCEEDED(hr))
              MessageBox(hWnd1, L"com is registered"
                                       L"Error 2",
                                       MB_OK);
            IFileOpenDialog *pFileOpen;
            hr = CoCreateInstance(CLSID_FileOpenDialog, NULL, CLSCTX_ALL,
                    IID_IFileOpenDialog, reinterpret_cast<void**>(&pFileOpen));
            if (SUCCEEDED(hr))
                hr = pFileOpen->Show(NULL);
                if (SUCCEEDED(hr))
                    IShellItem *pItem;
                    hr = pFileOpen->GetResult(&pItem);
                    if (SUCCEEDED(hr))
                        PWSTR pszFilePath;
                        hr = pItem->GetDisplayName(SIGDN_FILESYSPATH, &pszFilePath);
                        if (SUCCEEDED(hr))
                            MessageBox(NULL, pszFilePath, L"File Path", MB_OK);
        HANDLE hFile1 = CreateFile(pszFilePath, GENERIC_READ,
                                  0, NULL, OPEN_EXISTING,
                                  FILE_FLAG_SEQUENTIAL_SCAN, NULL);
    if (hFile1 = INVALID_HANDLE_VALUE)
        {dwe=GetLastError();
          swprintf_s(dwe5,100,L"%d",dwe);
                            MessageBox(hWnd1, dwe5
                                       L"Error INVALID_HANDLE_VALUE",
                                       MB_OK);
      ReadFile(hFile1, &pbBuff1, sizeof(cb1), (DWORD *)&pcb1, NULL);
    pcb1 = 0;
    cb1 = 100;
    dwCookie    = (DWORD_PTR)hFile1;
    pfnCallback1 = NULL ;
    dwError= 0;
    pfnCallback1(dwCookie,pbBuff1,cb1,pcb1);
    EDITSTREAM es1 = { 0 };
    es1.pfnCallback = pfnCallback1;
    es1.dwCookie    = (DWORD_PTR)hFile1;
    es1.dwError =    dwError;
    if (SendMessage(richedit1, EM_STREAMIN, SF_RTF, (LPARAM)&es1) && es1.dwError == 0)
    CoTaskMemFree(pszFilePath);
            CloseHandle(hFile1);
                        pItem->Release();
                pFileOpen->Release();
            CoUninitialize();
    // Basics.cpp : Defines the entry point for the application.
    #include "stdafx.h"
    #include "Basics.h"
    #include "windows.h"
    #include "Winuser.h"
    #include <stdio.h>
    #include "Richedit.h"
    #include <shobjidl.h>
    #define MAX_LOADSTRING 100
    #define ID_BUTTONA      200
    #define  ID_BUTTONB 201
    // Global Variables:
    HINSTANCE hInst;                                // current instance
    TCHAR szTitle[MAX_LOADSTRING];                    // The title bar text
    TCHAR szWindowClass[MAX_LOADSTRING];            // the main window class name
    // Forward declarations of functions included in this code module:
    ATOM                MyRegisterClass(HINSTANCE hInstance);
    BOOL                InitInstance(HINSTANCE, int);
    LRESULT CALLBACK    WndProc(HWND, UINT, WPARAM, LPARAM);
    LRESULT CALLBACK    WndProc1(HWND, UINT, WPARAM, LPARAM);
    INT_PTR CALLBACK    About(HWND, UINT, WPARAM, LPARAM);
    int APIENTRY _tWinMain(HINSTANCE hInstance,
                         HINSTANCE hPrevInstance,
                         LPTSTR    lpCmdLine,
                         int       nCmdShow)
        UNREFERENCED_PARAMETER(hPrevInstance);
        UNREFERENCED_PARAMETER(lpCmdLine);
         // TODO: Place code here.
        MSG msg;
        HACCEL hAccelTable;
        // Initialize global strings
        LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
        LoadString(hInstance, IDC_BASICS, szWindowClass, MAX_LOADSTRING);
        MyRegisterClass(hInstance);
        // Perform application initialization:
        if (!InitInstance (hInstance, nCmdShow))
            return FALSE;
        hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_BASICS));
        // Main message loop:
        while (GetMessage(&msg, NULL, 0, 0))
            if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
                TranslateMessage(&msg);
                DispatchMessage(&msg);
        return (int) msg.wParam;
    //  FUNCTION: MyRegisterClass()
    //  PURPOSE: Registers the window class.
    //  COMMENTS:
    //    This function and its usage are only necessary if you want this code
    //    to be compatible with Win32 systems prior to the 'RegisterClassEx'
    //    function that was added to Windows 95. It is important to call this function
    //    so that the application will get 'well formed' small icons associated
    //    with it.
    ATOM MyRegisterClass(HINSTANCE hInstance)
        WNDCLASSEX wcex;
        wcex.cbSize = sizeof(WNDCLASSEX);
        wcex.style            = CS_HREDRAW | CS_VREDRAW;
        wcex.lpfnWndProc    = WndProc;
        wcex.cbClsExtra        = 0;
        wcex.cbWndExtra        = 0;
        wcex.hInstance        = hInstance;
        wcex.hIcon            = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_BASICS));
        wcex.hCursor        = LoadCursor(NULL, IDC_ARROW);
        wcex.hbrBackground    = (HBRUSH)(COLOR_WINDOW+1);
        wcex.lpszMenuName    = MAKEINTRESOURCE(IDC_BASICS);
        wcex.lpszClassName    = szWindowClass;
        wcex.hIconSm        = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));
         WNDCLASSEX wcex1;    
        wcex1.cbSize = sizeof(WNDCLASSEX);
        wcex1.style            = CS_HREDRAW | CS_VREDRAW;
        wcex1.lpfnWndProc    = WndProc1;
        wcex1.cbClsExtra        = 0;
        wcex1.cbWndExtra        = 0;
        wcex1.hInstance        = hInstance;
        wcex1.hIcon            = NULL;
        wcex1.hCursor        = LoadCursor(NULL, IDC_ARROW);
        wcex1.hbrBackground    = (HBRUSH)(COLOR_WINDOW+1);
        wcex1.lpszMenuName    = MAKEINTRESOURCE ( IDC_BASICS);
        wcex1.lpszClassName    = L"NEW CLASS";
        wcex1.hIconSm        = NULL;
        RegisterClassEx(&wcex1);
        return RegisterClassEx(&wcex);
    //   FUNCTION: InitInstance(HINSTANCE, int)
    //   PURPOSE: Saves instance handle and creates main window
    //   COMMENTS:
    //        In this function, we save the instance handle in a global variable and
    //        create and display the main program window.
    BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
       HWND hWnd;
       hInst = hInstance; // Store instance handle in our global variable
       hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
          CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);
       if (!hWnd)
          return FALSE;
       ShowWindow(hWnd, nCmdShow);
       UpdateWindow(hWnd);
       return TRUE;
    //  FUNCTION: WndProc(HWND, UINT, WPARAM, LPARAM)
    //  PURPOSE:  Processes messages for the main window.
    //  WM_COMMAND    - process the application menu
    //  WM_PAINT    - Paint the main window
    //  WM_DESTROY    - post a quit message and return
    LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
        int wmId, wmEvent;
        PAINTSTRUCT ps;
        HDC hdc;
        HWND hwndButton;
        HWND hwndButtona;
        HWND richedit;
        HANDLE hFile;
        HINSTANCE hInstance;
        switch (message)
            DWORD dw;
        WCHAR dw1[100];
        DWORD dw2;
        WCHAR dw3[100];
        DWORD dwpfn;
        WCHAR dwj[100];
       case WM_CREATE:
                 hwndButton = CreateWindow(
        L"BUTTON",  // Predefined class; Unicode assumed
        L"OK",      // Button text
        WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON,  // Styles
        200,         // x position
        160,         // y position
        150,        // Button width
        100,        // Button height
        hWnd,     // Parent window
        NULL,       // No menu.
        (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE),
        NULL);      // Pointer not needed.
                 LoadLibrary(L"Msftedit.dll");
        richedit = CreateWindowEx(
        WS_EX_ACCEPTFILES | WS_EX_CLIENTEDGE,
        MSFTEDIT_CLASS,
        L"MSFTEDIT_CLASS",
        WS_CHILD | WS_VISIBLE |ES_AUTOHSCROLL | ES_LEFT| ES_SELECTIONBAR| ES_SUNKEN | ES_SAVESEL | ES_AUTOVSCROLL ,
        0,
        0,                  // starting x- and y-coordinates
        0,        // width of client area
        0,  
        hWnd,
        NULL,    
        (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE),
         NULL);
    if (!richedit)
        dw=GetLastError();
          swprintf_s(dw1,100,L"%d",dw);
                            MessageBox(hWnd, dw1
                                       L"Error richedit",
                                       MB_OK);
     SendMessage(richedit, WM_CONTEXTMENU, 0, 0);
      SetWindowPos(
        richedit,
        NULL,
        180,
        265,
        190,
        25,
        NULL);
               hwndButtona = CreateWindow(
        L"BUTTON",  // Predefined class; Unicode assumed
        L"OK",      // Button text
        WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON,  // Styles
        380,         // x position
        265,         // y position
        25,        // Button width
        25,        // Button height
        hWnd,     // Parent window
        (HMENU) ID_BUTTONA,       // No menu.
        (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE),
        NULL);      // Pointer not needed.
            break;
        case WM_COMMAND:
            wmId    = LOWORD(wParam);
            wmEvent = HIWORD(wParam);
            // Parse the menu selections:
            switch (wmId)
            case IDM_ABOUT:
                DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About);
                break;
                case ID_BUTTONA:
                DWORD_PTR dwCookie;
        dwCookie = 0;
        DWORD   dwError;
        dwError = 0;
        EDITSTREAMCALLBACK EditStreamCallback;
        EditStreamCallback = NULL ;
        EDITSTREAM es;  
        hFile = (HANDLE)dwCookie;   
    es.dwCookie    = (DWORD_PTR)hFile;
    es.dwError =    dwError;
    es.pfnCallback = EditStreamCallback;
        LPBYTE pbBuff;
        pbBuff = NULL;
        LONG cb;
        PLONG pcb;
        pcb = 0;
        DWORD   write;
         WriteFile(hFile, &pbBuff, write, (DWORD *)&pcb, NULL);//
    dwpfn=GetLastError();
          swprintf_s(dwj,100,L"%d",dwpfn);
                            MessageBox(hWnd, dwj
                                       L"Problem with write file",
    MB_OK);
    EditStreamCallback( (DWORD_PTR)hFile ,pbBuff,cb,pcb);
    SendMessage(richedit, EM_STREAMOUT, SF_RTF, (LPARAM)&es);
        hFile = CreateFile(L"Again.rtf",GENERIC_WRITE,
                                  FILE_SHARE_WRITE, 0, CREATE_NEW,
                                  FILE_ATTRIBUTE_NORMAL, NULL);
        if (hFile=INVALID_HANDLE_VALUE)
        dw2=GetLastError();
          swprintf_s(dw3,100,L"%d",dw2);
                            MessageBox(hWnd, dw3
                                       L"INVALID_HANDLE_VALUE",
                                       MB_OK);                  
       HWND hWnd1;
       hWnd1 = CreateWindow(L"NEW CLASS", L"Window 2", NULL,
          0, 0, 980, 700, NULL, NULL, hInstance, NULL);
       dw2=GetLastError();
          swprintf_s(dw3,100,L"%d",dw2);
                            MessageBox(hWnd, dw3
                                       L"INVALID_HANDLE_VALUE",
                                       MB_OK);
       if (!hWnd1)
          MessageBox(hWnd,  L"CreateWindow failed"
                                       L"Error CreateWindow",
                                       MB_OK);
       ShowWindow(hWnd1, SW_SHOW);
       UpdateWindow(hWnd1);
       ShowWindow(hWnd, SW_HIDE);
       return TRUE;
            case IDM_EXIT:
                DestroyWindow(hWnd);
                break;
            default:
                return DefWindowProc(hWnd, message, wParam, lParam);
            break;
        case WM_PAINT:
            hdc = BeginPaint(hWnd, &ps);
            // TODO: Add any drawing code here...
            EndPaint(hWnd, &ps);
            break;
        case WM_DESTROY:
            PostQuitMessage(0);
            break;
        default:
            return DefWindowProc(hWnd, message, wParam, lParam);
        return 0;
    LRESULT CALLBACK WndProc1(HWND hWnd1, UINT message, WPARAM wParam, LPARAM lParam)
        int wmId, wmEvent;
        PAINTSTRUCT ps;
        HDC hdc;
        HWND richedit1;
        DWORD dwe;
        WCHAR dwe5[100];
        DWORD dw4;
        WCHAR dw5[100];
        LPBYTE pbBuff1;
        LONG cb1;
        PLONG pcb1;
        DWORD_PTR dwCookie;
        DWORD   dwError;
        EDITSTREAMCALLBACK pfnCallback1;
        HRESULT hr;
        HWND hwndButtonb;
        switch (message)
        case WM_CREATE:
            LoadLibrary(L"Msftedit.dll");
        richedit1 = CreateWindowEx(
            WS_EX_ACCEPTFILES | WS_EX_CLIENTEDGE, MSFTEDIT_CLASS,
        L"MSFTEDIT_CLASS",
        WS_CHILD | WS_VISIBLE |ES_AUTOHSCROLL | ES_LEFT| ES_SELECTIONBAR| ES_SUNKEN | ES_SAVESEL | ES_MULTILINE | ES_AUTOVSCROLL ,
        0,
        0,                  // starting x- and y-coordinates
        0,        // width of client area
        0,  
        hWnd1,
        NULL,    
        (HINSTANCE)GetWindowLong(hWnd1, GWL_HINSTANCE),
         NULL);
         SetWindowPos(
        richedit1,
        NULL,
        0,
        0,
        980,
        700,
        NULL);
    if (!richedit1)
        {dw4=GetLastError();
          swprintf_s(dw5,100,L"%d",dw4);
                            MessageBox(hWnd1, dw5
                                       L"Error richedit",
                                       MB_OK);
             hwndButtonb = CreateWindow(
        L"BUTTON",  // Predefined class; Unicode assumed
        L"OK",      // Button text
        WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON,  // Styles
        380,         // x position
        265,         // y position
        25,        // Button width
        25,        // Button height
        richedit1,     // Parent window
        (HMENU) ID_BUTTONB,       // No menu.
        (HINSTANCE)GetWindowLong(richedit1, GWL_HINSTANCE),
        NULL);      // Pointer not needed.
        case WM_COMMAND:
            wmId    = LOWORD(wParam);
            wmEvent = HIWORD(wParam);
            // Parse the menu selections:
            switch (wmId)
                case IDM_OPEN:
           hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED |
            COINIT_DISABLE_OLE1DDE);
        if (SUCCEEDED(hr))
              MessageBox(hWnd1, L"com is registered"
                                       L"Error 2",
                                       MB_OK);
            IFileOpenDialog *pFileOpen;
            hr = CoCreateInstance(CLSID_FileOpenDialog, NULL, CLSCTX_ALL,
                    IID_IFileOpenDialog, reinterpret_cast<void**>(&pFileOpen));
            if (SUCCEEDED(hr))
                hr = pFileOpen->Show(NULL);
                if (SUCCEEDED(hr))
                    IShellItem *pItem;
                    hr = pFileOpen->GetResult(&pItem);
                    if (SUCCEEDED(hr))
                        PWSTR pszFilePath;
                        hr = pItem->GetDisplayName(SIGDN_FILESYSPATH, &pszFilePath);
                        if (SUCCEEDED(hr))
                            MessageBox(NULL, pszFilePath, L"File Path", MB_OK);
        HANDLE hFile1 = CreateFile(pszFilePath, GENERIC_READ,
                                  0, NULL, OPEN_EXISTING,
                                  FILE_FLAG_SEQUENTIAL_SCAN, NULL);
    if (hFile1 = INVALID_HANDLE_VALUE)
        {dwe=GetLastError();
          swprintf_s(dwe5,100,L"%d",dwe);
                            MessageBox(hWnd1, dwe5
                                       L"Error INVALID_HANDLE_VALUE",
                                       MB_OK);
      ReadFile(hFile1, &pbBuff1, sizeof(cb1), (DWORD *)&pcb1, NULL);
    pcb1 = 0;
    cb1 = 100;
    dwCookie    = (DWORD_PTR)hFile1;
    pfnCallback1 = NULL ;
    dwError= 0;
    pfnCallback1(dwCookie,pbBuff1,cb1,pcb1);
    EDITSTREAM es1 = { 0 };
    es1.pfnCallback = pfnCallback1;
    es1.dwCookie    = (DWORD_PTR)hFile1;
    es1.dwError =    dwError;
    if (SendMessage(richedit1, EM_STREAMIN, SF_RTF, (LPARAM)&es1) && es1.dwError == 0)
    CoTaskMemFree(pszFilePath);
            CloseHandle(hFile1);
                        pItem->Release();
                pFileOpen->Release();
            CoUninitialize();
                break;
            default:
                return DefWindowProc(hWnd1, message, wParam, lParam);
            break;
        case WM_PAINT:
            hdc = BeginPaint(hWnd1, &ps);
            // TODO: Add any drawing code here...
            EndPaint(hWnd1, &ps);
            break;
        case WM_DESTROY:
            PostQuitMessage(0);
            break;
        default:
            return DefWindowProc(hWnd1, message, wParam, lParam);
        return 0;
    // Message handler for about box.
    INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
        UNREFERENCED_PARAMETER(lParam);
        switch (message)
        case WM_INITDIALOG:
            return (INT_PTR)TRUE;
        case WM_COMMAND:
            if (LOWORD(wParam) == IDOK || LOWORD(wParam) == IDCANCEL)
                EndDialog(hDlg, LOWORD(wParam));
                return (INT_PTR)TRUE;
            break;
        return (INT_PTR)FALSE;

    You should post your question to the appropriate MSDN forum, as this forum is specific to questions regarding Microsoft Certifications.

  • Help! Video overlaps Gallery Pictures.

    How do I fix this?

    Gallery displays fine over the top of the video in FF so I do not think z-index is the issue. If it was just a z-index issue, both FF and IE would display the same.
    I thinks it's the "wmode" of the Flash player... as mentioned by 3DeeGee.
    To test this theory for yourself, open the page in IE and then turn off the Flash pluggin.
    From the main browser menu... Tools/Manage Add-ons/ Shockwave Flash Object/ disable.(Now Flash is turned off).
    Now refresh the page... the <div> holding the video player displays just fine UNDER the photos. So without altering the z-index, you can get the video container to display under the images. But putting a Flash player in the container without also setting one of the param to opaque or transparent, layers the Flash player above the actual Web page.
    From an old article... there are more wmodes now.
    Window Mode (wmode) - What's It For?
    Here are three window modes.
    Window
    Opaque
    Transparent
    By default, the Flash Player gets its own hWnd in Windows. This means that the Flash movie actually exists in a display instance within Windows that lives above the core browser display window. So though it appears to be in the browser window, technically, it isn't. It is most efficient for Flash to draw this way and this is the fastest, most efficient rendering mode. However, it is drawing independently of the browser's HTML rendering surface. This is why this default mode (which is equivalent to wmode="window") doesn't allow proper compositing with DHTML layers. This is why your JavaScripted drop-down menus will drop behind your Flash movie.
    In windowless modes (like opaque), Flash Player doesn't have a hWnd. This means that the browser tells the Flash Player when and where to draw onto the browser's own rendering surface. The Flash movie is no longer being rendered on a higher level if you will. It's right there in the page with the rest of the page elements. The Flash buffer is simply drawn into whatever rectangle the browser says, with any Flash stage space not occupied by objects receiving the movie's background color.
    and just to clarify... nothing happens to the z-index of an element when it is given a declared position. In fact, you MUST give an element a declared position before you can give it a z-index.... giving an element a z-index alone doesn't work.
    Best wishes,
    Adninjastrator

Maybe you are looking for

  • How do I check Edge status?

    How can I check on the Edge network status? I suddenly can't connect to the Apple mail server to send/check email and can't view anything on the Web, but the 'E' still shows up that the network is there. Is there a place to check on the Edge network

  • SOAPFaultException error while sending xml file to webservice

    hi I have a web service and client application. in my client application I am sending a xml file to web service. And it is getting xml and sending its content to database. I have two different xml file. One of them is always causing an error below. P

  • Two EJB's, separate JARS?

    Hi, I have a MDB, consuming messages from a Q, a Java Bean and a Stateless Session Bean. The MDB has a message sent to it, consumes the message, calls the Bean and the bean then passes the Remote interface of the EJB back to the MDB. I have packaged

  • Playing movies purchased in iTunes on my ps3

    Is there a way to play the movies i have purchased streaming on my PS3?  I have ps3 media center loaded but all of the movies show up as corrupted when i try to play them.

  • Java 1.6.0 on Solaris 10?

    I'm writing an application that uses Java 1.6.x, so I've been trying it out on various operating systems... Windows : peice of cake, installs and runs first time. Linux : peice of cake, installs and runs first time. Mac OS : need to download java bet