Click here to Skip to main content
15,887,386 members
Home / Discussions / C#
   

C#

 
GeneralRe: Curious about C# and desktop apps Pin
Stephane Rodriguez.11-Feb-03 8:44
Stephane Rodriguez.11-Feb-03 8:44 
GeneralRe: Curious about C# and desktop apps Pin
jpwkeeper11-Feb-03 9:01
jpwkeeper11-Feb-03 9:01 
GeneralRe: Curious about C# and desktop apps Pin
John Mautari11-Feb-03 9:34
John Mautari11-Feb-03 9:34 
GeneralRe: Curious about C# and desktop apps Pin
Furty12-Feb-03 19:59
Furty12-Feb-03 19:59 
GeneralError Creating Window Handle Pin
jpwkeeper11-Feb-03 1:51
jpwkeeper11-Feb-03 1:51 
GeneralRe: Error Creating Window Handle Pin
perlmunger11-Feb-03 5:00
perlmunger11-Feb-03 5:00 
GeneralRe: Error Creating Window Handle Pin
leppie11-Feb-03 6:05
leppie11-Feb-03 6:05 
GeneralRe: Error Creating Window Handle Pin
jpwkeeper11-Feb-03 8:57
jpwkeeper11-Feb-03 8:57 
Being a C++ programmer I understand where you're coming from. I'm a C++ programmer as well. However, this is not C++, and it's not a leak. I can't easily post the code.

First of all, this is managed code. This is further proven by the fact that if I switch to a smaller list after the problem has happened, I can continue to run.

Second, it's not like it's happening due to repeated operations. I can run all day, so long as I don't have too many controls up at one time. The first time I graph 100 at a time I fail, but I can choose 20 different lists of 10 in sequence and I still work fine so long as I don't do it too fast (so the GC has time to catch up).

What it appears to be is that I'm limited to 16384 window handles. if each control has a window handle, that means 2 per bar (one for the bar, which is a UserControl, and one for the ToolTip window I assume), 108 bars per graph, Around 12 extra for scales and such on the graph, that's 24,000 window handles. This is almost certainly the problem. I changed it so that instead of a full-out control, each bar is defined by a helper class that renders it and the problem went away (obviously the helper class doesn't use a window handle, it just has the paint code). My question is, can I get around the 16K limitation (if that is indeed the limit)?
GeneralRe: Error Creating Window Handle Pin
leppie11-Feb-03 9:35
leppie11-Feb-03 9:35 
GeneralRe: Error Creating Window Handle Pin
leppie11-Feb-03 9:39
leppie11-Feb-03 9:39 
GeneralAccesing a CORBA object from C# Pin
Giles11-Feb-03 0:57
Giles11-Feb-03 0:57 
GeneralTreeNode Pin
sss_dr11-Feb-03 0:40
sss_dr11-Feb-03 0:40 
GeneralRe: TreeNode Pin
Stephane Rodriguez.11-Feb-03 0:46
Stephane Rodriguez.11-Feb-03 0:46 
GeneralRe: TreeNode Pin
Jim Stewart14-Feb-03 6:45
Jim Stewart14-Feb-03 6:45 
Generalc# LDAP Pin
Member 97442011-Feb-03 0:14
Member 97442011-Feb-03 0:14 
GeneralRe: c# LDAP Pin
Richard Deeming11-Feb-03 0:23
mveRichard Deeming11-Feb-03 0:23 
GeneralWebResponse/WebRequest problem Pin
Keith Iveson11-Feb-03 0:06
Keith Iveson11-Feb-03 0:06 
GeneralRe: WebResponse/WebRequest problem Pin
Chad Young11-Feb-03 2:36
Chad Young11-Feb-03 2:36 
GeneralRe: WebResponse/WebRequest problem Pin
Keith Iveson11-Feb-03 22:33
Keith Iveson11-Feb-03 22:33 
GeneralRe: WebResponse/WebRequest problem Pin
John Mautari11-Feb-03 3:10
John Mautari11-Feb-03 3:10 
GeneralRe: WebResponse/WebRequest problem Pin
Keith Iveson11-Feb-03 22:40
Keith Iveson11-Feb-03 22:40 
GeneralRe: WebResponse/WebRequest problem Pin
John Mautari12-Feb-03 0:00
John Mautari12-Feb-03 0:00 
GeneralRe: WebResponse/WebRequest problem Pin
Keith Iveson12-Feb-03 0:06
Keith Iveson12-Feb-03 0:06 
GeneralRe: WebResponse/WebRequest problem Pin
John Mautari12-Feb-03 0:21
John Mautari12-Feb-03 0:21 
Generalunhandled exception Pin
Anonymous10-Feb-03 23:39
Anonymous10-Feb-03 23:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.