callstack

WCF, async, and a confusion of context

◇◆丶佛笑我妖孽 提交于 2020-01-23 13:49:31
问题 Well, I was going to name this and a question of context , but apparently the word question isn't allowed in titles. Anyway, here's the issue: I use IErrorHandler in my WCF services in order to provide logging without cluttering up all of my service code. Until now, this has worked great. However, now that I'm trying to move to completely asynchronous services, I'm encountering the issue of the call stack being a return stack instead of a causality chain. Now, I tried using Stephen Cleary's

How can I visualize Android call stack using Eclipse?

寵の児 提交于 2020-01-15 03:46:08
问题 Is there anyway I could visualize the call stack of an Android app? All I can find in Eclipse are the running threads: What I want, is to see how my subroutines are called in order to debug an issue related to the activities back stack. Thanks! 回答1: Add break points in your code somewhere and run in debug mode, you may see call stack then. AFAIK, While run mode it just displays number of threads and process. It doesn't display sequence of calls. 回答2: You can see the instantaneous call stack

Is it possible to kill a C++ application on Windows XP without unwinding the call stack?

微笑、不失礼 提交于 2020-01-15 02:39:19
问题 My understanding is that when you kill a C++ application through Task Manager in Windows XP, the application is still "cleanly" destructed - i.e. the call stack will unwind and all the relevant object destructors will be invoked. Not sure if my understanding is wrong here. Is it possible to kill such an application immediately, without unwinding the stack? For example, the application may employ RAII patterns which will destroy or release resources when an object is destructed. If the

Get stack trace of C# async calls using the API that the visual studio debugger uses

痴心易碎 提交于 2020-01-14 03:28:31
问题 Is it possible to get an equivalent stack trace that is provided by the visual studio 2019 debugger. Eg if I breakpoint in my async code inside of visual studio I see the following stack trace within the "Call Stack" window company.Common.dll!company.Common.Api.ResourcesDatabase.Lock() Line 58 C# company.Common.dll!company.Common.Api.ResourcesDatabase.ResourcesDatabase(bool openAndCreateDB) Line 29 C# company.Api.dll!company.Api.GlobalsDownloader.DownloadNewGlobals_UnderLock(System.Func

Stack Walking a debugged process

寵の児 提交于 2020-01-13 09:52:06
问题 I'm opened opening a process (with C++/Windows) using if( CreateProcessA( NULL, // No module name (use command line) (LPSTR)path, //argv[1], // Command line NULL, // Process handle not inheritable NULL, // Thread handle not inheritable FALSE, // Set handle inheritance to FALSE creationFlags, // No creation flags NULL, // Use parent's environment block NULL, // Use parent's starting directory &startInfo, // Pointer to STARTUPINFO structure &processInfo ) // Pointer to PROCESS_INFORMATION

HOWTO get the correct Frame Pointer of an arbitrary thread in iOS?

只谈情不闲聊 提交于 2020-01-13 04:44:30
问题 Way to get the Frame Pointer On a Demo App running on iPhone 5s Device / Xcode 7, I tried to get the frame pointer of an arbitrary thread using thread_get_state , but always result in an incorrect one : - (BOOL)fillThreadState:(thread_t)thread intoMachineContext:(_STRUCT_MCONTEXT *)machineContext { mach_msg_type_number_t state_count = MACHINE_THREAD_STATE_COUNT; kern_return_t kr = thread_get_state(thread, MACHINE_THREAD_STATE, (thread_state_t)&machineContext->__ss, &state_count); if (kr !=

Confused with Java Memory Management (Stacks and Heaps)

随声附和 提交于 2020-01-13 04:15:38
问题 This might sound stupid but I am still not clear about the Java Stack and the memory heap. What I know from studying is following: 1) All the method calls goes on stack. 2) All the memory allocated locally goes on memory heap (not very clear about this point) 3) All the memory allocated by new operator (either in a method or in a class) goes on memory heap. I am worried about the below cases: 1) If I create a int variable in a method and return it, where does it go ( I believe it goes on

Confused with Java Memory Management (Stacks and Heaps)

。_饼干妹妹 提交于 2020-01-13 04:15:14
问题 This might sound stupid but I am still not clear about the Java Stack and the memory heap. What I know from studying is following: 1) All the method calls goes on stack. 2) All the memory allocated locally goes on memory heap (not very clear about this point) 3) All the memory allocated by new operator (either in a method or in a class) goes on memory heap. I am worried about the below cases: 1) If I create a int variable in a method and return it, where does it go ( I believe it goes on

Computing method call stack size for checking StackOverflowException

北城以北 提交于 2020-01-12 14:07:08
问题 Today morning I answered a question which is related to StackoverflowException . The person has asked when Stackoverflow exception occurs See this link Simplest ways to cause stack overflow in C#, C++ and Java So my question is that is there any method by which we can compute the method call stacks size dynamically in our program and then applying a check before calling a method which checks whether method call stack has space to accommodate it or not to prevent StackOverflowException. As I

Getting Procedure Arguments from Stack

社会主义新天地 提交于 2020-01-05 07:19:39
问题 I am trying to learn how to call procedures in assembly language. Below is a simple example that shows my problem. I push 7 unto the stack, call the procedure; when the procudeure pops from the stack, the value is not the one I pushed. Can someone please help me understand what is happening and what I can do to make this work? PUSH 7 CALL FOOBAR MOV AH, 4CH INT 21H FOOBAR PROC POP AX ; Not 7 RET FOOBAR ENDP 回答1: The call instruction puts the return address on the stack, so when you pop ax in