How do I debug my program when it hangs?

前端 未结 5 1438
面向向阳花
面向向阳花 2021-01-03 10:29

I have an application which takes measurements every second (I am running it in demo mode & generating random data, so the problem is not to do with reading from devices

5条回答
  •  佛祖请我去吃肉
    2021-01-03 11:20

    First: try to debug it in Delphi IDE. Second: if you can't do this (on customer PC), try the "Process Stack Viewer" of my (open source) sampling profiler: http://code.google.com/p/asmprofiler/wiki/ProcessStackViewer
    (you need some debug info: a .map or .jdbg file) Then look at the stack of your threads (probably main/first thread). You can post the stack trace here then (if you can't find the problem).

提交回复
热议问题