Click here to Skip to main content
16,008,719 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: automatic key generation for database Pin
hrishiS21-May-09 22:29
hrishiS21-May-09 22:29 
GeneralRe: automatic key generation for database Pin
Mycroft Holmes21-May-09 23:40
professionalMycroft Holmes21-May-09 23:40 
GeneralRe: automatic key generation for database Pin
Dave Kreskowiak22-May-09 3:42
mveDave Kreskowiak22-May-09 3:42 
GeneralRe: automatic key generation for database Pin
Eddy Vluggen23-May-09 8:38
professionalEddy Vluggen23-May-09 8:38 
GeneralRe: automatic key generation for database Pin
DidiKunz23-May-09 11:15
DidiKunz23-May-09 11:15 
QuestionHttpWebRequest/HttpWebResponse Execution Problem Pin
AliAmjad21-May-09 18:09
AliAmjad21-May-09 18:09 
QuestionIs there an easy way to execute a method for every Sub & Function that runs? [modified] Pin
sephus621-May-09 12:19
sephus621-May-09 12:19 
AnswerRe: Is there an easy way to execute a method for every Sub & Function that runs? Pin
Luc Pattyn21-May-09 12:54
sitebuilderLuc Pattyn21-May-09 12:54 
Hi,

AFAIK there are two approaches:

1.
reduce the complexity of the line to a simple call, say LSI.log(); where LSI is some class with a single static log function that gets the stack traceback and locates its caller.
This still needs you to add one simple line, and the details of the work get centralized so you can easily change them later if that becomes necessary.

2.
code instrumentation: have the IL code modified before a method (or a class) gets executed for the first time. This is rather complex, too much so to explain here.

Personally I typically use an elaborated version of (1) where the LSI isn't global, instead it is a static instance of some class, that determines the classname once, and the methodname everytime. And my log() method also prefixes the current time (up to 1 msec) and the threadID (when different from the main thread).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: Is there an easy way to execute a method for every Sub & Function that runs? Pin
sephus621-May-09 18:53
sephus621-May-09 18:53 
GeneralRe: Is there an easy way to execute a method for every Sub & Function that runs? Pin
Luc Pattyn22-May-09 1:29
sitebuilderLuc Pattyn22-May-09 1:29 
GeneralRe: Is there an easy way to execute a method for every Sub & Function that runs? Pin
sephus622-May-09 4:38
sephus622-May-09 4:38 
QuestionCondition..! [modified] Pin
Jamal Abdul Nasir21-May-09 10:12
Jamal Abdul Nasir21-May-09 10:12 
AnswerRe: Condition..! Pin
EliottA21-May-09 11:17
EliottA21-May-09 11:17 
GeneralRe: Condition..! Pin
Mycroft Holmes21-May-09 22:22
professionalMycroft Holmes21-May-09 22:22 
GeneralRe: Condition..! Pin
Jamal Abdul Nasir22-May-09 2:52
Jamal Abdul Nasir22-May-09 2:52 
GeneralRe: Condition..! Pin
EliottA22-May-09 4:06
EliottA22-May-09 4:06 
AnswerRe: Condition..! Pin
0x3c021-May-09 21:37
0x3c021-May-09 21:37 
GeneralRe: Condition..! Pin
Jamal Abdul Nasir22-May-09 2:54
Jamal Abdul Nasir22-May-09 2:54 
AnswerRe: Condition..! Pin
Samir Ibrahim22-May-09 1:00
Samir Ibrahim22-May-09 1:00 
GeneralRe: Condition..! Pin
Jamal Abdul Nasir22-May-09 2:51
Jamal Abdul Nasir22-May-09 2:51 
GeneralRe: Condition..! Pin
Mycroft Holmes22-May-09 3:07
professionalMycroft Holmes22-May-09 3:07 
GeneralRe: Condition..! Pin
Samir Ibrahim22-May-09 4:51
Samir Ibrahim22-May-09 4:51 
QuestionI try to create an array of objects from a class but I get Object reference not set to an instance of an object. Pin
nico200721-May-09 6:07
nico200721-May-09 6:07 
AnswerRe: I try to create an array of objects from a class but I get Object reference not set to an instance of an object. Pin
Dave Kreskowiak21-May-09 6:48
mveDave Kreskowiak21-May-09 6:48 
GeneralRe: I try to create an array of objects from a class but I get Object reference not set to an instance of an object. Pin
nico200721-May-09 7:02
nico200721-May-09 7:02 

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.