View Single Post
Old 12-12-2013, 06:17
Plixo Plixo is offline
Junior Member
Join Date: Oct 2011
Location: Singapore
Posts: 19
Smile Debugging C++, C# etc add-on to CorelDraw X6 64 bits

I faced this issue for long time so I'm sharing the solution I finally found

Problem: CorelDraw include some protection probably to avoid reverse engineering and thus will crash if he detects a debugger is present.

This makes it almost impossible to write C++ DLL or C# WPF.

Solution: Use API Monitor v2 to launch CorelDRAW, ignore Unhandled exception dialogs and attach VisualStudio to CorelDraw ;-)

Full process with picture below:
1) launch CorelDraw with API Monitor using RemoteThread (Extended):

2) Ignore the Exception dialogs, i.e. leave them open, don't click on any buttons, CorelDRAW will continue to launch normally ;-)

3) Attach VisualStudio to CorelDRAW process:

4) You can now fully debug your DLL/WPF, including seen variables, invoking Coreldraw object in watch window etc...

Comment: this is for CorelDRAW X6 64 bits but I would guess similar trick should work with other versions

Last edited by Plixo; 12-12-2013 at 06:19. Reason: highlight important points
Reply With Quote