Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Try Catch and declared variables values
Message
De
17/03/2007 13:49:15
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Divers
Thread ID:
01204780
Message ID:
01205014
Vues:
10
Yuri,

I have no experience with listing memory variables, but I found some stuff you could use. Typically I only show the Exception's Message and StackTrace properties, but there are more properties of the Exception class that you could show. I played around with it for a few minutes, and this seemed useful (C# code, but you should be able to get the right VB syntax with no problem):
catch (Exception ex)
{
    ex.TargetSite.ReflectedType.GetMembers();
    // or
    ex.TargetSite.ReflectedType.GetProperties();
}
These will produce a lot of stuff you probably don't want to see, but I only suggest it as a starting point. You'll have to see how much of it is useful to you.

~~Bonnie




>In FoxPro I used to use on error routine having /List MEMORY ... to file/ line. With this I have all memory variables documented as they are at the moment of error.
>
>Is it possible to implement something similar to this in VB.NET? Could you share your experience? Thanks in advance.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform