comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Debugging DLMs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Debugging DLMs [message #48364] Thu, 13 April 2006 06:54 Go to next message
gareth.price is currently offline  gareth.price
Messages: 3
Registered: May 2004
Junior Member
Hi there,

I've been using a few DLMs that I wrote (with the guidance of Ronn
Kling's "Calling C from IDL" book) for a while now with excellent
results. However I've recently noticed an error I want to debug and
have been unable to get the Visual C++ .NET debugger to work, despite
the fact that it used to work fine when I originally wrote the code
(using the method described in appendix C of the book).

The breakpoints are fine until IDL is started when they drop out as "No
executable code is currently loaded at this location". The only change
I can possibly think of is that I've changed from IDL 6.1 to 6.2, but
I've altered this in all the relevent parts of the VC++ project
properties.

I'm not particularly experienced with the VC++ compiler but don't think
I've done anything stupid. Has anyone else had this problem and know
what I'm doing wrong, I'm a bit stuck?

Cheers, Gareth Price
Re: Debugging DLMs [message #48417 is a reply to message #48364] Tue, 18 April 2006 03:55 Go to previous message
gareth.price is currently offline  gareth.price
Messages: 3
Registered: May 2004
Junior Member
Hi there,

Thanks everyone for replying, sorry for the delay in my getting back,
its been a bank holiday weekend.

I've managed to figure out what I was doing wrong and it was a bit
stupid, somehow the C/C++ -> General -> Debug Information Format had
changed to disabled in the compiler project property pages.

Everything now works fine - thanks all again for your time in replying,

Gareth

Marc Reinig wrote:
> If the code is optimized, you may be on a part of the code that has been
> optimized away. Does it not work at all, or only on certain lines in the
> DLL source?
>
> Is there a difference when you compile the DLL in debug mode vs. release
> mode?
>
> --
> Marco
> ________________________
> Marc Reinig
> UCO/Lick Observatory
> Laboratory for Adaptive Optics
>
> <gareth.price@physics.cr.man.ac.uk> wrote in message
> news:1144936496.377991.13420@i40g2000cwc.googlegroups.com...
>> Hi there,
>>
>> I've been using a few DLMs that I wrote (with the guidance of Ronn
>> Kling's "Calling C from IDL" book) for a while now with excellent
>> results. However I've recently noticed an error I want to debug and
>> have been unable to get the Visual C++ .NET debugger to work, despite
>> the fact that it used to work fine when I originally wrote the code
>> (using the method described in appendix C of the book).
>>
>> The breakpoints are fine until IDL is started when they drop out as "No
>> executable code is currently loaded at this location". The only change
>> I can possibly think of is that I've changed from IDL 6.1 to 6.2, but
>> I've altered this in all the relevent parts of the VC++ project
>> properties.
>>
>> I'm not particularly experienced with the VC++ compiler but don't think
>> I've done anything stupid. Has anyone else had this problem and know
>> what I'm doing wrong, I'm a bit stuck?
>>
>> Cheers, Gareth Price
>>
Re: Debugging DLMs [message #48433 is a reply to message #48364] Fri, 14 April 2006 10:52 Go to previous message
Marc Reinig is currently offline  Marc Reinig
Messages: 30
Registered: June 2004
Member
If the code is optimized, you may be on a part of the code that has been
optimized away. Does it not work at all, or only on certain lines in the
DLL source?

Is there a difference when you compile the DLL in debug mode vs. release
mode?

--
Marco
________________________
Marc Reinig
UCO/Lick Observatory
Laboratory for Adaptive Optics

<gareth.price@physics.cr.man.ac.uk> wrote in message
news:1144936496.377991.13420@i40g2000cwc.googlegroups.com...
> Hi there,
>
> I've been using a few DLMs that I wrote (with the guidance of Ronn
> Kling's "Calling C from IDL" book) for a while now with excellent
> results. However I've recently noticed an error I want to debug and
> have been unable to get the Visual C++ .NET debugger to work, despite
> the fact that it used to work fine when I originally wrote the code
> (using the method described in appendix C of the book).
>
> The breakpoints are fine until IDL is started when they drop out as "No
> executable code is currently loaded at this location". The only change
> I can possibly think of is that I've changed from IDL 6.1 to 6.2, but
> I've altered this in all the relevent parts of the VC++ project
> properties.
>
> I'm not particularly experienced with the VC++ compiler but don't think
> I've done anything stupid. Has anyone else had this problem and know
> what I'm doing wrong, I'm a bit stuck?
>
> Cheers, Gareth Price
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Uniting IDL and Matlab
Next Topic: Input/Output, C++ to IDL, using Procedures

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:39:56 PDT 2025

Total time taken to generate the page: 0.00672 seconds