symbols

In windbg, what can cause the message “WARNING: Unable to verify timestamp for mydll.dll”?

六眼飞鱼酱① 提交于 2019-12-04 05:55:46
I have a dump (created by SysInternal's procdump ) and when I ask to view the call stack of a thread I get the error: "WARNING: Unable to verify timestamp for mydll.dll" I own the source code for mydll.dll and I have the PDB file for it, the call stack seems valid but I would like to know what can be the cause of the message. In the past I did not get that warning message. Thank you. The reason might be that you don’t have the the binary for your mydll.dll available. Try to either put it in the same location as the .pdb or use the File -> Image path to point at the location. NB both the .pdb

Resolving symbols in a Common Lisp list

大兔子大兔子 提交于 2019-12-04 04:23:50
问题 Suppose I have a function CL-USER> (defun trimmer (seq) "This trims seq and returns a list" (cdr (butlast seq))) TRIMMER CL-USER> (trimmer '(1 2 3 VAR1 VAR2)) (2 3 VAR1) CL-USER> Notice how, due to QUOTE, VAR1 and VAR2 are not resolved. Suppose I want to resolve the symbols VAR1 and VAR2 to their values - is there a standard function to do this? 回答1: Do not use quote to create a list with variables; use list instead: CL-USER> (trimmer (list 1 2 3 var1 var2)) (2 3 value-of-var1) (where value

How do you access the symbol table in Ruby?

回眸只為那壹抹淺笑 提交于 2019-12-04 04:19:05
Is there a way to access everything in the symbol table in Ruby? I want to be able to serialize or otherwise save the current state of a run of a program. To do this, it seems I need to be able to iterate over all the variables in scope. I think he comes from a perl background , and that he would like to obtain all the variables defined in a script and serialize them . This way , when he'll load the file , he'll get them back . I'm still searching about how to get a list of the variables , but serialization will be made using Marshal.dump and reading them back will be made with Marshal.load .

getContext() doesn't exist

落爺英雄遲暮 提交于 2019-12-04 03:19:32
So I have been going through the Android Developer training on the official site and there is a point where they want us to finally instantiate our database. So they tell us to use this snippet of code: FeedReaderDbHelper mDbHelper = new FeedReaderDbHelper(getContext()); However, I'm getting an error for the getContext() method. It states that it cannot find a symbol for that method. So I searched the source and that method in the View class just cannot be found. Is this a deprecated method? And if this isn't an option, is there any other way we can grab the context of a view? Thank you!

Using a class in a namespace with the same name?

こ雲淡風輕ζ 提交于 2019-12-04 02:56:15
问题 I have to use an API provided by a DLL with a header like this namespace ALongNameToType { class ALongNameToType { static void Foo(); } } Is there a way to use ALongNameToType::ALongNameToType::Foo without having to type ALongNameToType::ALongNameToType each time? I tried using using namespace ALongNameToType but got ambiguous symbol errors in Visual Studio. Changing the namespace name or removing it gives me linker errors. 回答1: I don't know what's ambiguous, but you can avoid all conflicts

How to get source/line number for IL instruction using Mono.Cecil

给你一囗甜甜゛ 提交于 2019-12-04 02:48:56
I'm using Mono.Cecil to write a simple utility that looks for type/method usage within .NET assemblies (ex. calling ToString on enums). I am able to get find the method, but it would be cool to display the source/line information to the user. Is this possible with Mono.Cecil? It is possible. First you should read the guide from the Mono.Cecil wiki about debugging symbols . Make sure you have Mono.Cecil.Pdb.dll near Mono.Cecil.dll, set the ReaderParameters to read the symbols as indicated in the guide, and then, instructions who have a sequence point in the pdb file will have their

How do I use TeX/LaTeX formatting for custom data tips in MATLAB?

只谈情不闲聊 提交于 2019-12-04 01:28:51
问题 I'm trying to annotate a polar plot with data tips labelled with 'R:...,Theta:...' where theta is actually the Greek symbol, rather than the word spelled out. I'm familiar with string formatting using '\theta' resulting in the symbol, but it doesn't work in this case. Is there a way to apply the LaTeX interpreter to data tips? Here's what I have so far: f1=figure; t=pi/4; r=1; polar(t,r,'.'); dcm_obj = datacursormode(f1); set(dcm_obj,'UpdateFcn',@polarlabel) info_struct = getCursorInfo(dcm

Cannot find symbol Java error?

ⅰ亾dé卋堺 提交于 2019-12-04 00:59:59
问题 The code works when I used java.util.Arrays.sort(numbers); Am I doing something wrong? This seems weird to me. import java.util.Arrays.*; class Test { public static void main(String[] args) { double[] numbers = {6.0, 4.4, 1.9, 2.9, 3.4, 3.5}; char[] chars = {'a', 'A', '4', 'F', 'D', 'P'}; sort(numbers); System.out.println(binarySearch(numbers, 3)); } } (Error displayed in terminal) Test.java:8: error: cannot find symbol sort(numbers); ^ symbol: method sort(double[]) location: class Test Test

Can you debug a .NET app with ONLY the source code of one file?

江枫思渺然 提交于 2019-12-03 21:32:03
I want to debug an application in Visual Studio but I ONLY have the source code for 1 class. I only need to step through a single function in that file, but I don't understand what I need to do it. I think the steps are normally something like this: Open a file in VS Load in the "symbols" (.PDB file) Attach to the running process I know how to do #1 and #3, but I don't how to do #2 without the .PDB file. Is it possible to generate the .PDB file for this to make it work? Thanks! You need *.pdb files (step 2 from your post) These files contain mapping between source code and compiled assembly.

How to add an asterisk symbol in a mathematical expression?

北战南征 提交于 2019-12-03 16:56:31
问题 I'm trying to annotate a plot with R² value and significance coding, but I can't pass * as a symbol and not as the juxtaposition operator. I've tried ?plot.math , here is what I tried plot(1:10,1:10) text(6,4,expression(R^2==8)) text(6,4,expression(R^2==8^{**})) Error: unexpected '^' in "text(6,4,expression(R^2==8^{**" 回答1: You need to use paste inside your expression: text(4,6,expression(paste(R^2==8^"**"))) or text(6,4,expression(paste(R^2==8, "**"))) 来源: https://stackoverflow.com/questions