logo
down
shadow

Function is called twice from the same thread for the same object with the same call stack


Function is called twice from the same thread for the same object with the same call stack

By : Asma Rikli
Date : October 24 2020, 06:10 AM
will help you Most likely the function is not actually called twice. You are just drawing the wrong conclusion from hitting the same breakpoint twice.
Visual Studio allows you to inspect the assembly code near your breakpoint, default is Ctrl+Alt+D I believe. In there you will see a mix of assembly instructions (what your CPU actually does) and the debugging information of "which line(s) of code did the following instruction(s) originate from".
code :


Share : facebook icon twitter icon
Need a way to periodically log the call stack/stack trace for EVERY method/procedure/function called

Need a way to periodically log the call stack/stack trace for EVERY method/procedure/function called


By : purusottama
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , When you return from a method it is removed from the stack. So presumably your Partial call stack is every method that has not yet returned?
e.g.
code :
DoSomething
begin
    MiniSubMethod
    DomeSomethingMore
    begin
        InnerDoSomething
        begin
            ShowCallStack
        end
    end
end
InnerDoSomething  
DoSomethingMore  
DoSomething  
Calling release on an object which is on the call stack of current thread

Calling release on an object which is on the call stack of current thread


By : Lynn Wynne
Date : March 29 2020, 07:55 AM
wish help you to fix your issue This could be as simple as using autorelease instead of release. Autorelease often doesn't perform an actual release until the call stack is unwound.
Call stack of thread is full of the same function calls -- curl_inet_ntop()

Call stack of thread is full of the same function calls -- curl_inet_ntop()


By : user3140588
Date : March 29 2020, 07:55 AM
This might help you Not actually an answer, but too long for comment. Try to da a kc 9999 To see if there is some different calls further up on the stack. If that fails, da a !teb Check if @rsp is between StackBase and StackLimit,
code :
0:000> !teb
TEB at 000007fffffde000
    ExceptionList:        0000000000000000
    StackBase:            0000000000130000
    StackLimit:           000000000010e000

0:000> r @rsp
rsp=000000000012d7b8
0:000> dqs @rsp 0000000000130000  <- StackBase
0:000> kc 2
Call Site
ntdll!NtWaitForSingleObject
ntdll!RtlReportExceptionEx
0:000> dqs @rsp L3
00000000`0012d7b8  00000000`77983072 ntdll!RtlReportExceptionEx+0x1d2
00000000`0012d7c0  00000000`00000000
00000000`0012d7c8  00000000`004ba81a TB5OTx64+0xca81a
0:000> ub 00`77983072
ntdll!RtlReportExceptionEx+0x1bc:
00000000`7798305c f8              clc
00000000`7798305d 0000            add     byte ptr [rax],al
00000000`7798305f 00483b          add     byte ptr [rax+3Bh],cl
00000000`77983062 df74394d        fbstp   tbyte ptr [rcx+rdi+4Dh]
00000000`77983066 8bc6            mov     eax,esi
00000000`77983068 b201            mov     dl,1
00000000`7798306a 488bcb          mov     rcx,rbx
00000000`7798306d e87ee2f8ff      call    ntdll!NtWaitForSingleObject     (00000000`779112f0)
Detecting when an object called is called by . accessor or as function call

Detecting when an object called is called by . accessor or as function call


By : Suwiki
Date : March 29 2020, 07:55 AM
I hope this helps . Since functions in JS are objects, you can extend them with properties:
code :
const o = Object.assign(() => o.fn(), {
  a: 5,
  fn: () => 1
});

console.log(o());
console.log(o.a);
const o = () => o.fn();

Object.defineProperties(o, {
  fn: { value: () => 1 },
  a: { value: 5 },
  name: { writable: true, value: 'whatever' },
});

console.log(o());
console.log(o.a);
console.log(o.name);
How to read the parent thread or parent function of a thread or call stack

How to read the parent thread or parent function of a thread or call stack


By : Muhammad Fazly
Date : March 29 2020, 07:55 AM
may help you . A bare address in the callstack means the code is not in any loaded module.
This could be for a few reasons:
Related Posts Related Posts :
  • Compiler error when overriding virtual methods
  • What is the point of function pointers?
  • Which is faster in memory, ints or chars? And file-mapping or chunk reading?
  • ISO file in C++
  • Expected Class-name before { token
  • Can I trust floats or doubles representing integers to retain precision?
  • Qt execute multiple get with QNetworkAccessManager
  • Big and Little endian question
  • Visual Studio 2008 compiles anything in C++ file?
  • C++ pointer to functions, Beginner Question
  • Fastest algorithm for primality test
  • Passing array of pointers to another class
  • Handling macro redefinition without modifying .h files ... C / C++ language
  • Implement SSL with SSPI: How to start?
  • Creating a simple VS2008 visualizer inside autoexp.dat (problem with casting)
  • C++ - Unicode Newline
  • Program crashing with 'std::out_of_range' error
  • Use signed or unsigned char in constructing CString?
  • Parallel execution policies in C++ 17
  • C++ Class Templates (Queue of a class)
  • Convert image into useable byte array in C?
  • pointer to preallocated memory as an input parameter and have the function fill it
  • Animated Image in Win32
  • error on compiling statically linked library created in Qt
  • How to easily pass a very long string to a worker process under Windows?
  • Can a class add friend classes at runtime in C++?
  • C++ priority queue in ascending order by specific method for objects
  • Initialize and declare dynamically multiple variables of random entities in a loop in C++
  • Serializing, integer without libaries , getting weird results
  • Function pointers with default parameters in C++
  • Compilation errors with RapidXML
  • Bad_alloc exception when using new for a struct c++
  • count specific things within a code in c++
  • How to extract 48*48 icon image from resource of an executable file?
  • C++ Convert string (or char*) to wstring (or wchar_t*)
  • C++ include .h includes .cpp with same name as well?
  • Any way in C++ to forward declare a function prototype?
  • boost graph adjacency_list, retrieving a node's parents
  • Copy method optimization in compilers
  • what the problem in this program? it doesn't use the second number, and doesn't print the last line?
  • Need to format character precedence in Strings
  • Cross-Platform Camera API
  • sizeof continues to return 4 instead of actual size
  • String search algorithm used by string::find() c++
  • Two-phase lookup: can I avoid "code bloat"?
  • Strongest cipher available to use with C/C++?
  • Why does my program occasionally segfault when out of memory rather than throwing std::bad_alloc?
  • Firefox XULRunner or TriXul?
  • Does GetSystemInfo (on Windows) always return the number of logical processors?
  • Where is the difference between these code? Shouldn't output be the same?
  • What does it mean mean by "Expected a statement" in C++
  • keybd_event is not working right =(
  • What native C++ profiling tool do you suggest?
  • how to copy char * into a string and vice-versa
  • C++ write to front of file
  • Delphi conversion of C++ header for DVP7010B video card DLL?
  • I keep Getting Control reaches end of non-void function. What am I doing wrong?
  • How to have struct members accessible in different ways
  • Am I abusing Policies?
  • Modern equivalent of BoundsChecker for Visual Studio 2008
  • shadow
    Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk