First, I use Visual Studio. Invalid after adding add "/fixed" linker option. and error LNK1146: no argument specified with option '/base'
User 13049321
Posts
-
How to make the heap address(by new) have the same every time the program runs? -
How to make the heap address(by new) have the same every time the program runs?Thanks
-
How to make the heap address(by new) have the same every time the program runs?Thanks
-
How to make the heap address(by new) have the same every time the program runs?char* str = new char[128];
At first run, the address of str is 0x12345678, and second run, the address of str is 0x00123456, I want the address of str constant, not change every time run. I wish: At first run, the address of str is 0x12345678, and second run, the address of str is 0x12345678, every time run, the address of str is 0x12345678.
-
How to show UserControl(WPF) in a form project with not use ElementHost?Thank you.
-
How to show UserControl(WPF) in a form project with not use ElementHost?thanks
-
How to show UserControl(WPF) in a form project with not use ElementHost?I know how to show a UserControl(WPF) by ElementHost in a form. like this:
private ElementHost m_elementHost;
private UserControl1 m_uc;private void button1_Click(object sender, EventArgs e)
{
m_elementHost.Child = m_uc;
}but I want to do show UserControl1 not use ElementHost, like this:
private void button1_Click(object sender, EventArgs e)
{
UserControl1 uc = new UserControl1();uc.Show();
}
-
How to print all source code what was running?Thank you!
-
How to print all source code what was running?If the code like below: if(iVal < 10) { FunA(); } else { FunB(); } When first run, iVal=1. So the first.txt Should be: if(iVal < 10) FunA(); And second run, iVal=20. The second.txt Should be: if(iVal < 10) FunB(); I could compared two file(first.txt and second.txt) to find code execution difference. I need it, because my codes very very larged. when iVal differeced every times, the differece appeard at after hundreds lines between first.txt and second.txt.
-
How to print all source code what was running?First, I sure. I run DIA SDK\Samples\DIA2Dump\Dia2Dump.exe myProgram.pdb I can view values and functions list when Dia2Dump.exe is run. But, How to "set the hardware breakpoints at DR0-DR7 and automate every single-step through your entire program"? Is modify dia2dump.cpp -> main(), start my program by dia2dump.exe? and WaitForDebugEvent(&dbgEvent, INFINITE); in dia2dump.exe? Can you give me a sample?
-
How to print all source code what was running?Using your method, I need add “__asm int 3;” for every line of code?
-
How to print all source code what was running?struct stNode
{
union sss_ {
struct sns_ {
int iType;
float fType;
} s_name;
} s_ss;stNode\* pNext;
};
int FunA(stNode* pNode)
{
if (pNode->pNext->pNext->pNext->s_ss.s_name.iType>10)
{
...
pNode->pNext->s_ss.s_name.fType = 4.0f;
pNode->pNext = pNode->pNext + pNode->iType;return pNode->pNext->pNext->s\_ss.s\_name.iType; } pNode->pNext = pNode->pNext + pNode->iType; pNode->pNext->s\_ss.s\_name.fType = 7.0f; ... return pNode->s\_ss.s\_name.iType;
}
main()
{int iVal = 2;
for(int i = 0; i < 100; ++i) { iVal++; stNode stMyNode; if (iVal<100) { iVal = FunA(&stMyNode+iVal); } else { iVal = FunB(&stMyNode+iVal); } }
}
With difference iVal initialization. the difference of execution occured at hundreds lines run after begin of main(). And, the actual code of mine, are complex than above are. Very very complex, run one FunA(),need a lot of times. (many lines code)
-
How to print all source code what was running?Thank you
-
How to print all source code what was running?Thanks, but I want to find a way that don't add any code like DEBUG_LOG(), to print source code. because the source code too many. I wouldn't be do this otherwise.
-
How to print all source code what was running?The problem is I don't know where are the "condition is met". Whether input's iVal is 1 or 2, first hundreds line code execution are equals. I want to find first diffence between 1 and 2 (iVal), and I sured the diffence appeared after "execution long line codes ago".
-
How to print all source code what was running?Thanks,but I sure "
A line by line code execution logger does make sense for me
I have very large storage capacity, and I can wait for long time to output.
-
How to print all source code what was running?Thanks, I known how to "using run to cursor",but the problem is I need to pressed F10 button hundreds, for execution whole program. I need to view "execution whole program line by line" exacts
-
How to print all source code what was running?If the code like below:
if(iVal < 10)
{
FunA();
}
else
{
FunB();
}When first run, iVal=1. So the first.txt Should be:
if(iVal < 10)
FunA();And second run, iVal=20. The second.txt Should be:
if(iVal < 10)
FunB();I could compared two file(first.txt and second.txt) to find code execution difference.
I need it, because my codes very very larged. when iVal differeced every times, the differece appeard at after hundreds lines between first.txt and second.txt.
-
How to print all source code what was running?When breaked at debugging, I can press F10, line by line to view the current execution of the source code. Suppose my program has 1000 lines of code, I don't want to press F10 1000 times to watch all the 1000 line in the order of execution. I wish output whole 1000 lines of code in execution order. surce code like below:
id fun(int* piVal)
{
*piVal = 0;
}main()
{
int iTemp = 0;
fun();
iTemp = 1;
}I need a text file after running the program. The contents of the file are like below:
int iTemp = 0;
*piVal = 0;
iTemp = 1;text file has 3 line, It exact save the three lines of execution.
-
Break when address readingUse Windbg "ba r1 0000ffff" can break when address(0x0000ffff) reads. But I don't know how to open and location the source code.