Re: [Mono-dev] GTK# Window Display Issue Outside of Main.cs

2012-11-07 Thread Oskar Berggren
2012/11/6 Johnnie Odom jo...@escambia.k12.fl.us

 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


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.




 The function from the calling class:

  public string radiazerMain(string radiazerGroup, string radiazerProfile){

 Progression MarathonBar = new Progression();

 MarathonBar.Show();

 string monologger = ;

 string lastLine = Radiazer completed current run. + Environment.NewLine;

 Array usersToModify = getGroupMembers(radiazerGroup);

 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};

 LdapAttributeSet profileTemplate =
 LdapAttributeSetFiltered(radiazerProfile, radiusAttribs);

 profileTemplate.Add(new LdapAttribute(radiusProfileDn, radiazerProfile));


  int totalUsersCount = usersToModify.Length;

 int currentUserCount = 0;

 int errorCount = 0;

 MarathonBar.Show();



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.


You might want to have a look at the BackgroundWorker class to place the
work on a separate thread, but leave the GUI interaction to the GUI thread.

/Oskar
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] SGen stability

2012-11-07 Thread Roope Kangas
I submitted bug bug 8254. I hope the stack trace provides some help...

I will continue load tests with Boehm GC from now on. Best case would obviously 
be that you can spot some user error on my end =)

-- roope

On Nov 5, 2012, at 8:44 PM, Miguel de Icaza mig...@xamarin.com wrote:

 
 So in we were generating _a lot_ of small classes, loosing references to 
 those new instances and doing that on very many threads at once.
 Sounds like a GC stress tester =)
 
 Anyhow, I will try to repro the bug with more debug and file it to bugzilla.
 
 This would be fantastic, thank you! 
 
 Miguel

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] wrong CS0314 error from compiler on generic method override

2012-11-07 Thread Andres G. Aragoneses

On 06/11/12 18:20, Giacomo Tesio wrote:

Anyone looking at this bug
https://bugzilla.xamarin.com/show_bug.cgi?id=8232 ?



I recommend that you specify, in the bug, what version of Mono you're 
running.


___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list