| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| How do you debug a Empty4 DLL? https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=1709 |
Page 1 of 1 |
| Author: | jcl [ Fri Mar 29, 2013 8:50 am ] |
| Post subject: | How do you debug a Empty4 DLL? |
I recently had to debug a C++ DLL for an Empty4 EA, but Empty4 crashes whenever I attach the VC++ debugger to the terminal.exe process. This seems to be due to some crude mechanism in Empty4 to prevent reverse engineering. Has someone else run into the same problem? Is there a safe method to debug DLL functions called from an EA, or do I have to write some Empty4 simulator for that purpose? |
|
| Author: | stratman [ Tue Apr 02, 2013 8:27 pm ] |
| Post subject: | Re: How do you debug a Empty4 DLL? |
The last build of Empty4 that could be debugged was 225. Empty4 has debug protection built in provided by 'themida'. As a DLL developer I have the same issues. I program using a lot of unit testing by debugging directly in my IDE. This does mean that I have to simulate a lot of the trading platform functions. I load bars and ticks from text files. I also include pre-calculated indicator values for each bar. Here's the code (no cpp as all code is in this header). I'll do a second post to show how I unit test: Code: Select all
|
|
| Author: | stratman [ Tue Apr 02, 2013 8:40 pm ] |
| Post subject: | Re: How do you debug a Empty4 DLL? |
I read the bars from the text file using Code: Select all Code: Select all I use eclipse for my dll programming and the CUTE unit testing framework. You can see how to use eclipse to develop Empty4 dlls on a thread I wrote at forex factory for that purpose. Code: Select all |
|
| Author: | jcl [ Sat Apr 13, 2013 11:34 am ] |
| Post subject: | Re: How do you debug a Empty4 DLL? |
Thanks! I had meanwhile written a sort of Empty4 emulator for passing data to the DLL and debugging it. Meanwhile, there are rumors that Metaquotes will disable not only debugging, but even using DLLs in their platform with one of the next updates... |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|