Alaska Software Inc. - Debug issues
Username: Password:
AuthorTopic: Debug issues
Itai Ben-ArtziDebug issues
on Sat, 25 Oct 2014 22:54:39 -0700
When running the debugger, the error message “The process cannot be created 
because of the following reason(s): The current target is a DLL and cannot 
be executed…”
I am trying to debug a regular EXE (which calls for a DLL at start).  How 
can I skip the annoying window?

Also:
I have a procedure:
Static Procedure SetTenantChargeMenu( oMenu, aMenu, aLine)
Where aline is: @abrw[oBrw:cargo]
When the mouse is over the parameter aLine, nothing is shown (oMenu and 
aMenu are showing the values alright).
Any suggestion?

-Itai
Jan EscholtRe: Debug issues
on Sun, 26 Oct 2014 16:17:27 +0100
Itai,

when you hit F9 within a project with exe and dll, be shure that the exe 
is the active project part. It's shown by highlighting it's name.

Jan

Am 26.10.2014 um 06:54 schrieb "Itai Ben-Artzi":
> When running the debugger, the error message “The process cannot be
> created because of the following reason(s): The current target is a DLL
> and cannot be executed…”
> I am trying to debug a regular EXE (which calls for a DLL at start).
> How can I skip the annoying window?
>
> Also:
> I have a procedure:
> Static Procedure SetTenantChargeMenu( oMenu, aMenu, aLine)
> Where aline is: @abrw[oBrw:cargo]
> When the mouse is over the parameter aLine, nothing is shown (oMenu and
> aMenu are showing the values alright).
> Any suggestion?
>
> -Itai
Itai Ben-ArtziRe: Debug issues
on Sun, 26 Oct 2014 21:38:18 -0700
I only select "Reset Program" from the Run menu item.
Andreas HerdtRe: Debug issues
on Mon, 27 Oct 2014 10:00:41 +0100
Hi Itai,

Jan is absolutely right. The debugger can not make anything usefull
when trying to debug a target which is a DLL. At least the debugger
needs some help here.

You have two options:

1) Select a exe target as active one that is using the DLL. Whenever
code in the DLL is executed breakpoints that you have set are
significant and make the debugger to stop the application

2) In the menu Run -> Parameters select a hostprocess which
is a target that use the DLL. In this case the debugger knows what
executable to start in an attemp to debug a DLL.

>> I have a procedure:
>> Static Procedure SetTenantChargeMenu( oMenu, aMenu, aLine)
>> Where aline is: @abrw[oBrw:cargo]
>> When the mouse is over the parameter aLine, nothing is shown (oMenu and
>> aMenu are showing the values alright).

Can you post a sample. Following is showing the tooltip with
valid information:

/////////////////////////////// snip 
/////////////////////////////////////////
CLASS Test
  EXPORTED:
    VAR Cargo
    INLINE METHOD init()
      ::Cargo := 1
    RETURN(self)
ENDCLASS

PROCEDURE Main
  LOCAL o := Test():new()
  LOCAL aBrows := {10,20,30}

  TestFunc( @aBrows[o:Cargo] )

RETURN

FUNCTION TestFunc( aLine )  <- Cursor on aLine shows 10
RETURN(.T.)
/////////////////////////// snap 
////////////////////////////////////////////

  Andreas Herdt
  Alaska Software

--------------------------------------------------------------------

Technical Support:      support@alaska-software.com

News Server:            news.alaska-software.com
Homepage:               http://www.alaska-software.com
WebKnowledgeBase:       http://www.alaska-software.com/kbase.shtm

Fax European Office:    +49 (0) 61 96 - 77 99 99 23
Fax US Office:          +1 (646) 218 1281
--------------------------------------------------------------------

"Jan Escholt" wrote in message 
news:db4d4fd$13111b7c$82472@news.alaska-software.com...
> Itai,
>
> when you hit F9 within a project with exe and dll, be shure that the exe 
> is the active project part. It's shown by highlighting it's name.
>
> Jan
>
> Am 26.10.2014 um 06:54 schrieb "Itai Ben-Artzi":
>> When running the debugger, the error message “The process cannot be
>> created because of the following reason(s): The current target is a DLL
>> and cannot be executed…”
>> I am trying to debug a regular EXE (which calls for a DLL at start).
>> How can I skip the annoying window?
>>
>> Also:
>> I have a procedure:
>> Static Procedure SetTenantChargeMenu( oMenu, aMenu, aLine)
>> Where aline is: @abrw[oBrw:cargo]
>> When the mouse is over the parameter aLine, nothing is shown (oMenu and
>> aMenu are showing the values alright).
>> Any suggestion?
>>
>> -Itai