Skip to content

Troubleshooting target program crash #16

@martty

Description

@martty

Hey, thanks for this great library! I am having trouble making it work though.
Here is what I tried:

  • get the blink repo
  • build blink x64 Debug (Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27012.6 for x64)
  • create target directory & cd there
  • create test.cpp with:
#include <iostream>
void fn();
int main() {
	while (true) {
		fn();
	}
}

using std::cout; using std::endl;
void fn() {
	cout << "Hello World" << endl;
}
  • compile test.cpp in a VS console with cl.exe /Z7 /Od /MDd /nologo /EHsc /std:c++latest test.cpp

  • cd back to blink root

  • launch blink with test.exe (bin\x64\Debug\blink.exe target\test.exe) in VS console
    output:
    Launching in target application ...
    Entry point was written to address 000000013F1A0000
    Reading PE import directory ...
    Reading PE debug info directory ...
    Found program debug database: C:\dev\blink\target\test.pdb
    Found source file: c:\dev\blink\target\test.cpp
    Starting compiler process ...
    Started process with PID 31796
    Starting file system watcher for 'c:\dev\blink\target' ...

  • change output string in test.cpp to something else & save
    output:
    Detected modification to: c:\dev\blink\target\test.cpp
    Finished compiling "c:\dev\blink\target\test.obj" with code 0.
    Successfully linked object file into executable image.
    Detected modification to: c:\dev\blink\target\test.cpp
    The target application has exited with code 3221225501.

  • the test.exe program crashes

  • the additional change in blink was that I disabled commandline detection from the .obj file, as that didn't work, so the commandline used to build is the built-in (as described in Duplicate file modification notifications #13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions