I have some code within try...catch blocks that might not always execute properly. One error that might occur is a System.InvalidCastException error. I trap the error, but can I prevent the error from being written to the log? Thanks
cstrader232
Posts
-
Writing to debug log -
Load and unload assemblyThanks Luc!
-
Load and unload assemblyOh,sorry, yes I understand that this occurs through appdomains. And I've googled and binged my head off on this, but I have yet to find a good solid tutorial on the mechanisms of the process. I was hoping someone here might have a good book or link that would help me. Thanks
-
Load and unload assemblyI need to successfully load and unload assemblies from my vb.net project in real time. Can anyone recommend a tutorial on this process? Thanks!
-
Webclient doesn't get entire fileI'm using webclient or web.downloaddata to download a url. Sometimes the correct source isn't downloaded (same thing happens with webclient or web.downloaddata), although it always appears properly from a browser. Randomly, some parts of the source is not downloaded. Any ideas would be appreciated.
-
Is Datagridview row filtered?Is there a way to determine from the datagridview.rows property whether or not the row is filtered by its controlling dataview? row.displayed and row.visible don't seem to do it. Thanks
-
Memory usageWhat's very strange is that the memory use does not increase significantly while I'm running the program but only after I stop it. Within a few seconds after the program stops (no matter whether it breaks or finishes) the memory use goes up substantially.
-
Memory usageOK, but I still don't see why VS2008 should not give memory back. Each time I start the solution more memory is taken by the program. Stopping the program or minimizing it does not give memory back. Eventually Task Manager shows the private working set at almost 2G. Is this really normal behavior? ty
-
Memory usageI'm in VS2008 and as I debug my project the memory use of devenv keeps increasing until it takes up all of my memory. This never happened in VS2005. Any ideas appreciated.
-
Exceptions throw in try blockYes, I've tried to change them all.
-
Exceptions throw in try blockDoesn't matter... same thing.
Dim x
Try
Console.WriteLine(x(0))
Catch ex As Exception
Console.WriteLine("Error")
End Try -
Exceptions throw in try blockI think I am not explaining myself well. What is happening is that VS2008 is stopping execution on the error that is created within the try part of the try-catch block. My understanding (and my prior experience with VS2005) is that the debugger should ignore errors in this part of the block. ty
-
Exceptions throw in try blockOK, well for instance, this code throws a NullReferenceException and stops my processing
Dim x
Try
Console.WriteLine(x(0))
Catch ex As ExceptionEnd Try
-
Exceptions throw in try blockSorry, I have to ask once more as this is killing me. My version of VS2008 stops executing on exceptions that are encountered in the try part of the try-catch block. Any ideas about what might be causing that? Is there an opion I'm missing? ty
-
Don't debug in try-catch blockOK, thanks for your help! Happy holidays!
-
Don't debug in try-catch blockOK, here's one simple example
Sub test()
Dim x
Try
Console.WriteLine(x(0))
Catch ex As ExceptionEnd Try
end sub
Error thrown is: Object variable or With block variable not set.
-
Don't debug in try-catch blockWhat is the problem for me is that the exception within the try is thrown. The debugger stops and shows me the error. I thought that exceptions within the try would be ignored. Thanks
-
Don't debug in try-catch blockAll I can tell you is that it is definitely happening for me. No code in the catch, but the error is trapped in the try.
-
Don't debug in try-catch blockNot so... my errors are being thrown within the try section. FI: Try Console.WriteLine(TTDG.Rows(1000).Cells(100).Value) Catch ex As Exception End Try
-
Don't debug in try-catch blockThis didn't happen in vs2005 I don't think, but vs2008 throws exceptions in debug on errors within my try-catch blocks. Can I turn that off? Thanks