OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20-04-2010, 09:21
josh
Guest
 
Posts: n/a
Default Attaching to CorelDESIGNER with a debugger.

Hi,

I've seen this mentioned in a couple existing threads, but I wanted to start a topic specific one.

Is it possible to start or attach to Designer.exe with a debugger? Every time I try it Designer.exe starts hitting debugger interrupts and throwing exceptions like crazy. Eventually the process hangs. I've tried both Visual Studio and WinDbg.

I am building a prototype C++ plug-in and not being able to set breakpoints and step through code is seriously hindering progress ...

A colleague of mine has suggested that this is something that Corel has done to their application to hinder people trying to crack it (apparently Adobe has done similar things with Illustrator and Photoshop in the past). Anyone know if this is the case? Is there a developer build of Designer.exe that people use?

Here's my specifics if they are useful:

- VS 2005 (C++)
- CorelDESIGNER Technical Suite X4 (build 14.1.0.195)
- Windows 7

I'm currently working by adding alot alot alot of tracing and logging to my code.

Thanks to everyone posting information here on developing with CDR, this is a great resource!

Cheers,

Josh
Reply With Quote
  #2  
Old 20-04-2010, 12:57
josh
Guest
 
Posts: n/a
Default No, you can't ...

I got this reply from a Corel employee to my similar post over at coreldraw.com

"I'm afraid you can't debug it. This restriction is in place for security reasons "

So there you go. Can't be done. Ah well.
Reply With Quote
  #3  
Old 21-04-2010, 08:57
josh
Guest
 
Posts: n/a
Default But you can debug your own EXE

Another tip from Corel.

You can't debug (outside of logging) a plug-in DLL running inside Corel Designer (or Draw I imagine). However, you can access and use all of Corel's COM automation model from an external process. So, for debugging purposes you can build an EXE to load and run your code then repackage it as a plug-in DLL later.

This is far from ideal, but is working decently for me.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CorelDesigner 12 shelbym CorelDRAW/Corel DESIGNER VBA 1 28-02-2005 15:52
attaching a form bumblebee CorelDRAW/Corel DESIGNER VBA 4 04-10-2004 10:27


All times are GMT -5. The time now is 01:13.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com