![]() |
| Register | Login | |||||
|
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
|
| | |||
| 0 users currently in Programming. |
| Acmlm's Board - I3 Archive - Programming - StackWalk64 isn't walking so much as stomping |
New poll | | ![]() |
| Add to favorites | Next newer thread | Next older thread |
| User | Post | ||
|
HyperHacker Star Mario Finally being paid to code in VB! If only I still enjoyed that. <_< Wii #7182 6487 4198 1828 Since: 11-18-05 From: Canada, w00t! My computer's specs, if anyone gives a damn. STOP TRUNCATING THIS >8^( Last post: 5907 days Last view: 5907 days |
| ||
I'm calling StackWalk64 to get a stack dump of another thread, and it seems to be doing that alright, but it's mucking up the stack of the thread I call it from!
DWORD WINAPI GetContext(LPVOID Thread)
(Mind the messy unfinished code. )
After the first 2 calls, it starts thrashing the local variables, starting at the pointer to StackWalk64 itself. (It's not defined in my libraries/compiler/whatever.) Notice the line "blah(1,2,3);" - this is where things start getting corrupted. SymCleanup becomes 1, SymInitialize becomes 2, and StackWalk64 becomes 3 - the values of the parameters. It seems like somewhere the stack pointer isn't getting reset properly. Thing is, this only happens if I call StackWalk64. Even calling a different function with the same specs (9 params, all 32 bits, and return 32 bits) doesn't cause it. |
|||
|
sloat Since: 11-18-05 From: Delaware, US Last post: 6010 days Last view: 6010 days |
| ||
| Try adding a _stdcall or WINAPI directive to your function type definitions. They're the same thing, so it doesn't matter which you choose. I forget where to put it though, so good luck. | |||
|
HyperHacker Star Mario Finally being paid to code in VB! If only I still enjoyed that. <_< Wii #7182 6487 4198 1828 Since: 11-18-05 From: Canada, w00t! My computer's specs, if anyone gives a damn. STOP TRUNCATING THIS >8^( Last post: 5907 days Last view: 5907 days |
| ||
Hey, it worked. Thanks! ![]() |
| Add to favorites | Next newer thread | Next older thread |
| Acmlm's Board - I3 Archive - Programming - StackWalk64 isn't walking so much as stomping |
| ![]() |