Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
AnswerRe: OODBMS are the best solution for Today applications Pin
Colin Angus Mackay8-Oct-05 22:26
Colin Angus Mackay8-Oct-05 22:26 
GeneralRe: OODBMS are the best solution for Today applications Pin
tolgayikilmaz9-Oct-05 1:45
tolgayikilmaz9-Oct-05 1:45 
GeneralRe: OODBMS are the best solution for Today applications Pin
Colin Angus Mackay9-Oct-05 1:48
Colin Angus Mackay9-Oct-05 1:48 
AnswerRe: OODBMS are the best solution for Today applications Pin
Kevin McFarlane9-Oct-05 8:29
Kevin McFarlane9-Oct-05 8:29 
QuestionOpening the Form in maximized mode? Pin
E6AD8-Oct-05 12:09
E6AD8-Oct-05 12:09 
AnswerRe: Opening the Form in maximized mode? Pin
S. Senthil Kumar8-Oct-05 20:03
S. Senthil Kumar8-Oct-05 20:03 
QuestionWindowScraping Pin
budidharma8-Oct-05 11:17
budidharma8-Oct-05 11:17 
AnswerRe: WindowScraping Pin
XRaheemX10-Oct-05 5:06
XRaheemX10-Oct-05 5:06 
I didn't look at the whole code block you posted, but only the first part. I noticed there is a big problem that will cause it to crash:

<br />
foreach (Window x in Windows)<br />
{<br />
Windows.Add(x.Title + ": " + x.hWnd.ToString());<br />
}<br />


You'll notice that you're saying for every Window object in the Windows IList you are adding a new windows object to the IList.

Windows.Add is adding a new Window to the list you are enumerating!! This will cause it to never end and eventually run out of memory. Now the compiler is supposed to tell you that you can't change the value of a list while it's in use in a loop, but who knows why it didn't.
QuestionTaskbar Applications Pin
jgallen238-Oct-05 11:13
jgallen238-Oct-05 11:13 
QuestionRichTextBox Qeustion Pin
Mohammad A Gdeisat8-Oct-05 10:45
Mohammad A Gdeisat8-Oct-05 10:45 
AnswerRe: RichTextBox Qeustion Pin
mav.northwind9-Oct-05 0:31
mav.northwind9-Oct-05 0:31 
QuestionThreads Pin
ShimiG8-Oct-05 8:32
ShimiG8-Oct-05 8:32 
AnswerRe: Threads Pin
S. Senthil Kumar8-Oct-05 20:07
S. Senthil Kumar8-Oct-05 20:07 
GeneralRe: Threads Pin
ShimiG9-Oct-05 4:27
ShimiG9-Oct-05 4:27 
GeneralRe: Threads Pin
S. Senthil Kumar9-Oct-05 5:01
S. Senthil Kumar9-Oct-05 5:01 
GeneralRe: Threads Pin
ShimiG9-Oct-05 5:16
ShimiG9-Oct-05 5:16 
GeneralRe: Threads Pin
S. Senthil Kumar9-Oct-05 19:10
S. Senthil Kumar9-Oct-05 19:10 
AnswerRe: Threads Pin
Member 17998439-Oct-05 5:56
Member 17998439-Oct-05 5:56 
QuestionFile turns into Form?? Generates Form for Generic Class?? Why?? Pin
Anonymous8-Oct-05 6:56
Anonymous8-Oct-05 6:56 
AnswerRe: File turns into Form?? Generates Form for Generic Class?? Why?? Pin
Dave Kreskowiak8-Oct-05 19:23
mveDave Kreskowiak8-Oct-05 19:23 
QuestionMaking animtion in picture box Pin
Member 20302058-Oct-05 5:57
Member 20302058-Oct-05 5:57 
AnswerRe: Making animtion in picture box Pin
Libor Tinka9-Oct-05 0:46
Libor Tinka9-Oct-05 0:46 
QuestionDisplaying the Window Title when doing Alt-Tab Pin
BlueWavz8-Oct-05 5:02
BlueWavz8-Oct-05 5:02 
AnswerRe: Displaying the Window Title when doing Alt-Tab Pin
XRaheemX10-Oct-05 5:10
XRaheemX10-Oct-05 5:10 
QuestionMath.Ceiling for decimal value Pin
hasanali008-Oct-05 4:46
hasanali008-Oct-05 4:46 

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.