This may be comparing Apples vs Oranges but I had to ask.
Java has a function of "GetLastFunction" much like Windows "GetLastError" sort of thing. But I wonder if there is an API that is "GetLastFunction"???
I am guessing not, because it appears that it may be they are doing the same thing I am doing on my 1st attempt at tracking down bugs out of my control and have a wrapper function that I pass a string to the function to log what I called just prior to the error.
AKA, if I call
then the line before I call
SetLastFunction = "SendMessage hDlg, %WM_SIZE, 0, 0"
I was looking for a more generic solution than passing a string copy of what I am about to call (although it looks like that is what java does), but wondered if such a thing exists in the API??? or am I going about it the only way I can?? or is there a better way?? (seeing how I am looking at it as "SetLastFunction =" could be anything from a SendMessage to a home-made function with unknown number of parameters)
Hopefully someone gets what I am after and maybe an answer???
Java has a function of "GetLastFunction" much like Windows "GetLastError" sort of thing. But I wonder if there is an API that is "GetLastFunction"???
I am guessing not, because it appears that it may be they are doing the same thing I am doing on my 1st attempt at tracking down bugs out of my control and have a wrapper function that I pass a string to the function to log what I called just prior to the error.
AKA, if I call
Code:
SendMessage hDlg, %WM_SIZE, 0, 0
SetLastFunction = "SendMessage hDlg, %WM_SIZE, 0, 0"
I was looking for a more generic solution than passing a string copy of what I am about to call (although it looks like that is what java does), but wondered if such a thing exists in the API??? or am I going about it the only way I can?? or is there a better way?? (seeing how I am looking at it as "SetLastFunction =" could be anything from a SendMessage to a home-made function with unknown number of parameters)
Hopefully someone gets what I am after and maybe an answer???

Comment