Click here to Skip to main content
15,914,014 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Out of memory exception - graphics Pin
TheComputerMan22-Sep-09 11:04
TheComputerMan22-Sep-09 11:04 
GeneralRe: Out of memory exception - graphics Pin
Ian Shlasko22-Sep-09 11:13
Ian Shlasko22-Sep-09 11:13 
GeneralRe: Out of memory exception - graphics Pin
TheComputerMan22-Sep-09 11:50
TheComputerMan22-Sep-09 11:50 
GeneralRe: Out of memory exception - graphics Pin
TheComputerMan22-Sep-09 12:00
TheComputerMan22-Sep-09 12:00 
GeneralRe: Out of memory exception - graphics Pin
Luc Pattyn22-Sep-09 12:37
sitebuilderLuc Pattyn22-Sep-09 12:37 
GeneralRe: Out of memory exception - graphics Pin
TheComputerMan22-Sep-09 12:39
TheComputerMan22-Sep-09 12:39 
GeneralRe: Out of memory exception - graphics Pin
TheComputerMan22-Sep-09 12:37
TheComputerMan22-Sep-09 12:37 
GeneralRe: Out of memory exception - graphics Pin
Dave Kreskowiak22-Sep-09 9:13
mveDave Kreskowiak22-Sep-09 9:13 
TheComputerMan wrote:
This code is stupid: whatever goes wrong you choose to just ignore it; and then wonder what is going wrong and post a question here?

1. A completely erroneous assumption


No, it's not erroneous. You said you know what THE (assuming one) exception is, but you chose to capture ALL exceptions and eat them. Catch the ONE exception you know is going to come and handle it appropriately, log all the rest so you can see any other errors that show up.

TheComputerMan wrote:
3. Is it useless??? Are you sure about that. I have experience of it kicking off the garbage collector in another app which was not kicking off after a dispose was performed


The garbage collector doesn't wait for you app to pause. It'll pause your app for you and run when it needs to. Just throwing a sleep in doesn't kick off nor does it allow to run the GC. The GC runs when it wants to, regardless of what your app says. If you're doing this to "get the GC to run", you've got another problem in your code that this code just happens to work around. I really wouldn't call it a production quality fix.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




QuestionHow to track all events/function calls fired in vb6 and log it Pin
CPK_201122-Sep-09 3:34
CPK_201122-Sep-09 3:34 
AnswerRe: How to track all events/function calls fired in vb6 and log it Pin
Dave Kreskowiak22-Sep-09 4:31
mveDave Kreskowiak22-Sep-09 4:31 
GeneralRe: How to track all events/function calls fired in vb6 and log it Pin
CPK_201122-Sep-09 4:35
CPK_201122-Sep-09 4:35 
GeneralRe: How to track all events/function calls fired in vb6 and log it Pin
Dave Kreskowiak22-Sep-09 4:44
mveDave Kreskowiak22-Sep-09 4:44 
GeneralRe: How to track all events/function calls fired in vb6 and log it Pin
CPK_201122-Sep-09 4:59
CPK_201122-Sep-09 4:59 
GeneralRe: How to track all events/function calls fired in vb6 and log it Pin
Dave Kreskowiak22-Sep-09 5:13
mveDave Kreskowiak22-Sep-09 5:13 
QuestionVB.NET: Error adding multiple rows in a DataGridView (not bound to a DataTable) Pin
Dimitri Backaert22-Sep-09 2:33
Dimitri Backaert22-Sep-09 2:33 
AnswerRe: VB.NET: Error adding multiple rows in a DataGridView (not bound to a DataTable) Pin
Jay Royall22-Sep-09 2:52
Jay Royall22-Sep-09 2:52 
GeneralRe: VB.NET: Error adding multiple rows in a DataGridView (not bound to a DataTable) Pin
Dimitri Backaert22-Sep-09 2:59
Dimitri Backaert22-Sep-09 2:59 
GeneralRe: VB.NET: Error adding multiple rows in a DataGridView (not bound to a DataTable) Pin
Jay Royall22-Sep-09 3:01
Jay Royall22-Sep-09 3:01 
AnswerRe: VB.NET: Error adding multiple rows in a DataGridView (not bound to a DataTable) Pin
Kschuler22-Sep-09 2:55
Kschuler22-Sep-09 2:55 
QuestionHow to run C program using .Net? Pin
paya1pa22-Sep-09 1:42
paya1pa22-Sep-09 1:42 
AnswerRe: How to run C program using .Net? Pin
Henry Minute22-Sep-09 1:53
Henry Minute22-Sep-09 1:53 
GeneralRe: How to run C program using .Net? Pin
paya1pa22-Sep-09 2:06
paya1pa22-Sep-09 2:06 
GeneralRe: How to run C program using .Net? Pin
Henry Minute22-Sep-09 2:22
Henry Minute22-Sep-09 2:22 
GeneralRe: How to run C program using .Net? Pin
Dave Kreskowiak22-Sep-09 3:50
mveDave Kreskowiak22-Sep-09 3:50 
GeneralRe: How to run C program using .Net? Pin
paya1pa22-Sep-09 5:37
paya1pa22-Sep-09 5:37 

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.