<br><br><div class="gmail_quote">2012/11/6 Johnnie Odom <span dir="ltr"><<a href="mailto:jodom@escambia.k12.fl.us" target="_blank">jodom@escambia.k12.fl.us</a>></span>
  
      
  <br><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:normal;margin-top:4px;font-variant:normal;margin-bottom:1px;margin-left:4px;margin-right:4px">

<p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">I have taken to using the debugger and break points to isolate the behavior. If I set a breakpoint immediately after the window is created, it is still blank -- that is, I do not think it is a case that the window is just not keeping pace with any updates I am sending. I </font><span style="FONT-FAMILY:"Tahoma,sans-serif";FONT-SIZE:"13px""><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:Tahoma,sans-serif;word-spacing:0px" charset="utf-8"></span></span></p>

</div></blockquote><div><br>Showing a window basically sets a flag. And the window manager will apparently be notified, since it draws the border etc. But the window itself isn't rendered until the gui loop gets around to it.<br>

<br><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:normal;margin-top:4px;font-variant:normal;margin-bottom:1px;margin-left:4px;margin-right:4px">

<p style="margin-top:0;margin-bottom:0"><span style="FONT-FAMILY:"Tahoma,sans-serif";FONT-SIZE:"13px""><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:13px;white-space:normal;font-family:Tahoma,sans-serif;word-spacing:0px" charset="utf-8">The function from the calling class:</span></span><br>

<br>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">public string radiazerMain(string radiazerGroup, string radiazerProfile){</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">Progression MarathonBar = new Progression();</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">MarathonBar.Show();</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">string monologger = "";</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">string lastLine = "Radiazer completed current run." + Environment.NewLine;</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">Array usersToModify = getGroupMembers(radiazerGroup);</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">string[] radiusAttribs = new string[]{"dialupAccess","radiusArapFeatures","radiusArapSecurity","radiusArapZoneAccess","radiusAuthType","radiusCallbackId","radiusCallbackNumber","radiusCalledStationId","radiusCallingStationId","radiusCheckItem","radiusClass","radiusClientIPAddress","radiusExpiration","radiusFilterId","radiusFramedAppleTalkLink","radiusFramedAppleTalkNetwork","radiusFramedAppleTalkZone","radiusFramedCompression","radiusFramedIPAddress","radiusFramedIPNetmask","radiusFramedIPXNetwork","radiusFramedMTU","radiusFramedProtocol","radiusFramedRoute","radiusFramedRouting","radiusGroupName","radiusHint","radiusHuntgroupName","radiusIdleTimeout","radiusLoginIPHost","radiusLoginLATGroup","radiusLoginLATNode","radiusLoginLATPort","radiusLoginLATService","radiusLoginService","radiusLoginTCPPort","radiusLoginTime","radiusPasswordRetry","radiusPortLimit","radiusProfileDn","radiusPrompt","radiusProxyToRealm","radiusRealm","radiusReplicateToRealm","radiusReplyItem","radiusServiceType","radiusSessionTimeout","radiusSimultaneousUse","radiusStripUserName","radiusTerminationAction","radiusTunnelAssignmentId","radiusTunnelClientEndpoint","radiusTunnelMediumType","radiusTunnelPassword","radiusTunnelPreference","radiusTunnelPrivateGroupId","radiusTunnelServerEndpoint","radiusTunnelType","radiusUserCategory","radiusVSA"};</font>    </p>


    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">LdapAttributeSet profileTemplate = LdapAttributeSetFiltered(radiazerProfile, radiusAttribs);</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">profileTemplate.Add(new LdapAttribute("radiusProfileDn", radiazerProfile));</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <br>
          </p>
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">int totalUsersCount = usersToModify.Length;</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">int currentUserCount = 0;</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">int errorCount = 0;</font>    </p>
    <p style="margin-top:0;margin-bottom:0">
      <font face="Lucida Grande" size="3">MarathonBar.Show();</font></p></div></blockquote><div><br><br>Here, you keep holding the thread. So it can never get back into the GTK main loop and thus it will never get around to rendering your window. Unless this is a different thread, but in that case you shouldn't handle GUI elements at all, since the GUI framework is not designed to be used by more than one thread.<br>

<br></div></div><br>You might want to have a look at the <span class="selflink"><span></span>BackgroundWorker class to place the work on a separate thread, but leave the GUI interaction to the GUI thread.<br><br>/Oskar<br>

<br></span>