Click here to Skip to main content
16,006,475 members
Home / Discussions / C#
   

C#

 
GeneralRe: Show Counter Runtime Pin
fearless stallion17-Mar-08 22:18
fearless stallion17-Mar-08 22:18 
GeneralRe: Show Counter Runtime Pin
Christian Graus17-Mar-08 22:18
protectorChristian Graus17-Mar-08 22:18 
GeneralRe: Show Counter Runtime Pin
Gareth H18-Mar-08 3:36
Gareth H18-Mar-08 3:36 
GeneralRe: Show Counter Runtime Pin
PavanPareta18-Mar-08 3:24
PavanPareta18-Mar-08 3:24 
Generalmemory leak... AGAIN Pin
Harvey Saayman17-Mar-08 21:04
Harvey Saayman17-Mar-08 21:04 
GeneralRe: memory leak... AGAIN Pin
stancrm17-Mar-08 21:15
stancrm17-Mar-08 21:15 
GeneralRe: memory leak... AGAIN Pin
Pete O'Hanlon17-Mar-08 23:15
mvePete O'Hanlon17-Mar-08 23:15 
GeneralRe: memory leak... AGAIN Pin
Bekjong17-Mar-08 23:28
Bekjong17-Mar-08 23:28 
how do you guys figure out where a leak lies?

In this case (since it seems you've just left a thread running), it's quite easy. First, it's good practice to name your threads when you start them:

Thread t;<br />
t.Name = "mythread"


Now, when you close your program and expect it to exit, but it doesn't, you can use the "break all" option from the debug menu, pausing all threads. Select the threads window from debug->windows to see all running threads and - assuming you named your threads - you can see the thread causing your problem. In most cases you can even double click the thread and see what code it was executing when you pressed "break all".


Standards are great! Everybody should have one!

GeneralOleDb problem, reading from MS Acces .mdb files Pin
Coyote.Max17-Mar-08 19:50
Coyote.Max17-Mar-08 19:50 
GeneralRe: OleDb problem, reading from MS Acces .mdb files Pin
PIEBALDconsult18-Mar-08 6:11
mvePIEBALDconsult18-Mar-08 6:11 
Questionprinting richtext box content Pin
Krazy Programmer17-Mar-08 19:42
Krazy Programmer17-Mar-08 19:42 
GeneralRe: printing richtext box content Pin
John_Adams17-Mar-08 20:35
John_Adams17-Mar-08 20:35 
GeneralRe: printing richtext box content Pin
Krazy Programmer17-Mar-08 22:08
Krazy Programmer17-Mar-08 22:08 
Questiontask pain control?? Pin
avtar11117-Mar-08 19:35
avtar11117-Mar-08 19:35 
GeneralRe: task pain control?? Pin
Ajay.k_Singh17-Mar-08 20:51
Ajay.k_Singh17-Mar-08 20:51 
GeneralRe: task pain control?? Pin
Bekjong17-Mar-08 23:19
Bekjong17-Mar-08 23:19 
GeneralIcon n Installshield [modified] Pin
rockNroll17-Mar-08 18:46
rockNroll17-Mar-08 18:46 
GeneralRe: Icon n Installshield Pin
Ajay.k_Singh17-Mar-08 20:37
Ajay.k_Singh17-Mar-08 20:37 
GeneralRe: Icon n Installshield Pin
rockNroll18-Mar-08 12:48
rockNroll18-Mar-08 12:48 
Generalpanning and zooming Pin
B.rekha17-Mar-08 18:31
B.rekha17-Mar-08 18:31 
GeneralRe: panning and zooming Pin
Christian Graus17-Mar-08 18:58
protectorChristian Graus17-Mar-08 18:58 
GeneralRe: panning and zooming(attaching the code) Pin
B.rekha17-Mar-08 19:21
B.rekha17-Mar-08 19:21 
GeneralRe: panning and zooming(attaching the code) Pin
B.rekha17-Mar-08 19:22
B.rekha17-Mar-08 19:22 
GeneralRe: panning and zooming(attaching the code) Pin
Christian Graus17-Mar-08 19:34
protectorChristian Graus17-Mar-08 19:34 
GeneralRe: panning and zooming(attaching the code) Pin
B.rekha17-Mar-08 19:49
B.rekha17-Mar-08 19:49 

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.