Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Watch DLL variables

onkelhotte
New Contributor II
1,239 Views
Hi there,
in my project I havetwo DLLs and a main program. One DLL only contains a sharedVariablesmodule, the second DLL initialises the sharedVariables and the main program uses them.

But now I cannot watch the sharedVariables in the debugger, although they are used correctly (i.e. by writing their value ina textfile).

sharedVariables::alpha for example is evaluated as "Undefined variable", the tool tip while moving the mouse over alpha says3.6433238E-29.

Is there a way to watch these values in debugger? I use IVF10.1.025.

Thanks in advance,
Markus

PS: This is why I use thetwo DLL and main program mechanism: Before thatI read a textfile which contained the start values. To preventthe customer can edit this textfile, I wrote a subroutine that initialises the variables. Because I want to be able to substitute these intial values I create a DLL that I could send the customer.
Creating a MD5 hash of the textfile wont do the trick because the MD5 would be different when I manipulate the textfile.
0 Kudos
10 Replies
onkelhotte
New Contributor II
1,239 Views
PPS: This is how I declare Alpha in the module sharedVariables...

real(kind=4) :: Alpha
!DEC$ ATTRIBUTES DLLEXPORT :: Alpha

In my main program I dont use the DLLIMPORT attribute because it is not neccesary. Alpha is declared in a module and so the DLLIMPORT is absolete.

Markus
0 Kudos
Steven_L_Intel1
Employee
1,239 Views
Try version 11, or at least 10.1.029. We have made improvements in "watching" since 025. 11.0.066 would be my recommendation.
0 Kudos
onkelhotte
New Contributor II
1,239 Views
My licence expired shortly after 10.1.025, so I have to renew it... Not I by myself but my boss (like every boss)doesnt want to spend extra money :-)

By the way, is this error fixed in the latest IVF version?Tool tip of german Umlaute freezes debugger http://software.intel.com/en-us/forums/showthread.php?t=58552

I just locked in into the Registration center to find out the price for a renewal of my lincense. I have Fortran with MKL right now. I was confused that there is a buy link at the Intel Compiler Suite as well (but not at the Fortran with IMSL version). Can I upgrade to the Compiler Suite through a support renewal?

Markus
0 Kudos
Steven_L_Intel1
Employee
1,239 Views
I believe that the umlaunt problem will be fixed in an update later this month. No, you can't change products using a support renewal. I know some companies offer that sort of upgrade but we don't at present. The Compiler Suite product is not offered with IMSL.

I'm not entirely certain of what you are seeing at the Intel Registration Center. Perhaps you can use the "Live Chat" feature there to get assistance.
0 Kudos
onkelhotte
New Contributor II
1,239 Views
Try version 11, or at least 10.1.029. We have made improvements in "watching" since 025. 11.0.066 would be my recommendation.

I renewed my license, but I still cant watch variables that were declared in a DLL (IVF 11.0.072).

Is this still on the IVF Integration Teams to do list?

The other problems Ive had in the past (umlaut freeze, crash when watch var*2.1) were fixed, thanks for the good job!

Markus
0 Kudos
Steven_L_Intel1
Employee
1,239 Views
The watch issues should be fixed, but you have to rebuild the appliication. It isn't just the debugger.
0 Kudos
onkelhotte
New Contributor II
1,239 Views
The watch issues should be fixed, but you have to rebuild the appliication. It isn't just the debugger.

No, I cant watch this variable. My code looks like this:

[cpp]module sharedDLL

implicit none

real(kind=4) :: variableInDLL = 0.5
!DEC$ ATTRIBUTES DLLEXPORT :: variableInDLL

end module sharedDLL[/cpp]

But when I try to watch the value of variableInDLL, it says 2.5305179E-29. When I assign the value to the variable runTime, runTime has the value 0.5

Markus
0 Kudos
Steven_L_Intel1
Employee
1,239 Views
Does watching sharedll::variableinDLL work?
0 Kudos
onkelhotte
New Contributor II
1,239 Views
Does watching sharedll::variableinDLL work?

No. In that case the value is "Undefined variable sharedDLL::variableInDLL".


Markus

0 Kudos
onkelhotte
New Contributor II
1,238 Views
Does watching sharedll::variableinDLL work?

With release 74 of IVF11 it works!

Thanks for adding this feature.

Markus
0 Kudos
Reply