<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dialog not closing in 2021.9.0 in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1571029#M170842</link>
    <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/315392"&gt;@LarsJ&lt;/a&gt;,&amp;nbsp;what version of Visual Studio Shell are you using with I&lt;SPAN&gt;ntel Fortran Compiler Classic 2021.9.0?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Feb 2024 16:06:42 GMT</pubDate>
    <dc:creator>Barbara_P_Intel</dc:creator>
    <dc:date>2024-02-09T16:06:42Z</dc:date>
    <item>
      <title>Dialog not closing in 2021.9.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1570893#M170826</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We recently changed from using intel visual fortran compiler 19.0.8.234 (using visual studio shell 2015) to using intel Fortran Compiler Classic 2021.9.0 (oneAPI) both in x64.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We noticed that our modeless dialogs does no longer respond when pushing the close button in the corner of the dialog.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made the attached example using the template for windows application -&amp;gt; Dialog Code in 19.0.8.234 in visual studio shell 2015.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We found that a work-around was to place a hidden "cancel" button in the dialog and then intercept the IDCANCEL, however I would rather not do this for all my dialogs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 07:53:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1570893#M170826</guid>
      <dc:creator>LarsJ</dc:creator>
      <dc:date>2024-02-09T07:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog not closing in 2021.9.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1570926#M170831</link>
      <description>&lt;P&gt;That is the behaviour in&amp;nbsp;Intel® Fortran Compiler Classic 2021.11.0 [Intel(R) 64] also FYI. the x32 is also the same. I question for Intel staff really as to what the expected behaviour of the IFLOGM routines is as to if this is a bug or a feature!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 09:17:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1570926#M170831</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2024-02-09T09:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog not closing in 2021.9.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1571029#M170842</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/315392"&gt;@LarsJ&lt;/a&gt;,&amp;nbsp;what version of Visual Studio Shell are you using with I&lt;SPAN&gt;ntel Fortran Compiler Classic 2021.9.0?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 16:06:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1571029#M170842</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2024-02-09T16:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog not closing in 2021.9.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1571049#M170846</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/44501"&gt;@Barbara_P_Intel&lt;/a&gt;&amp;nbsp; I used the OP's example with OneAPI 2024.0 and VS2022 17.0.5 and get the same behaviour.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 16:33:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1571049#M170846</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2024-02-09T16:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog not closing in 2021.9.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1571472#M170867</link>
      <description>&lt;P&gt;The lines in iflogm.f90 that are responsible for the change in behaviour are (from line 1953 in the current file)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;  ! ignore unsupported controls
  if (i .eq. 0 .and. id .eq. IDCANCEL .and. hwndControl .eq. 0) then
        call DefaultPushbuttonCallback(dlg,IDCANCEL,0)
        return
  end if

  if (hwndControl .eq. 0_HANDLE) then
     return
  endif&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the old cvf version it was just&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;! ignore unsupported controls
  if (i .eq. 0) return
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which actually reflects the comment. Intel have added to it over the years. Firstly&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt; ! ignore unsupported controls
  if (i .eq. 0 .and. id .eq. IDCANCEL .and. hwndControl .eq. 0) then
        call DefaultPushbuttonCallback(dlg,IDCANCEL,0)
        return
  end if&lt;/LI-CODE&gt;&lt;P&gt;which is an error as the if statement is never .true.&amp;nbsp; so the effect, as far as the dummy IDCANCEL button that presumably this is supposed to catch, is the same as before - though an unsupported control now drops through. The most recent change which has caused the behaviour you are seeing is&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;  ! ignore unsupported controls
   if (i .eq. 0 .and. id .eq. IDCANCEL .and. hwndControl .eq. 0) then
        call DefaultPushbuttonCallback(dlg,IDCANCEL,0)
        return
  end iff

  if (hwndControl .eq. 0_HANDLE) then
     return
  endif&lt;/LI-CODE&gt;&lt;P&gt;Presumably this is supposed to trap a control that has hwndContrl equal to zero. Unfortunately the dummy IDCANCEL button that closes the dialog does have a zero hwndControl value and so now is ignored. (A real button with id IDCANCEL, visible or invisible, on the dialog has a non-zero value of hwndControl and drops through to the subsequent code and is handled correctly.)&lt;/P&gt;&lt;P&gt;To keep the changes that Intel have made the code could perhaps be modifed to&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;! ignore unsupported controls
  if (i .eq. 0) return
  
  if (id .eq. IDCANCEL .and. hwndControl .eq. 0) then
        call DefaultPushbuttonCallback(dlg,IDCANCEL,0)
        return
  end if

  if (hwndControl .eq. 0_HANDLE) then
     return
  end if&lt;/LI-CODE&gt;&lt;P&gt;Until Intel releases a fix you can copy iflogm.f90 from the Intel include folder, edit it and add it to your project.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 09:25:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1571472#M170867</guid>
      <dc:creator>mfinnis</dc:creator>
      <dc:date>2024-02-12T09:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog not closing in 2021.9.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1571482#M170868</link>
      <description>&lt;P&gt;Good spot&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/75179"&gt;@mfinnis&lt;/a&gt;&amp;nbsp;but I will further muddy the water in that IDCANCEL is set in IFWINTY (&amp;nbsp;integer, parameter :: IDCANCEL = 2 ). In a C++ app it is set in the .h headers. It should not be coming back as zero so there is an initialisation issue somewhere.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 10:28:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1571482#M170868</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2024-02-12T10:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog not closing in 2021.9.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1571483#M170869</link>
      <description>&lt;P&gt;IDCANCEL is, as you say, a parameter with value 2. The value of hwndControl is the window handle of a control. For the dummy button with id IDCANCEL it is zero. The variable i is the index into Intel's list of a dialog's controls which, if the control isn't supported by Intel, is zero.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 10:37:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1571483#M170869</guid>
      <dc:creator>mfinnis</dc:creator>
      <dc:date>2024-02-12T10:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog not closing in 2021.9.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1571515#M170870</link>
      <description>&lt;P&gt;By the dummy button I think you mean the [x] on the window/dialog menu. That should return IDCANCEL value. The fact that is isn't doing that&amp;nbsp; is part of the problem.&amp;nbsp; I haven't used IFLOGM for some years I use the SDK direct and the [X] returns 2 (IDCANCEL) irrespective if&amp;nbsp; I have a cancel button (with ID =IDCANCEL) or not .&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 14:44:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1571515#M170870</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2024-02-12T14:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog not closing in 2021.9.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1571519#M170871</link>
      <description>&lt;P&gt;The dummy button is an entry in Intel's list of controls for the dialog. When the dialog's close command is issued the above code is run after the index of the control with an id of IDCANCEL is determined, which is either a real button with id IDCANCEL or the dummy button if there isn't a real button. There is no problem other than the code in iflogm.f90 has been modified so that it inadvertently returns without processing the dummy button.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 14:58:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1571519#M170871</guid>
      <dc:creator>mfinnis</dc:creator>
      <dc:date>2024-02-12T14:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog not closing in 2021.9.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1571568#M170880</link>
      <description>&lt;P&gt;The [x] button is a standard Microsoft&amp;nbsp; window control that has a defined default action to close the window. You can chose to process that control in a call back if you wish by the a setsub with IFLOGM or a windows dlgproc with sdk. The point I am making the issue with different behaviours is entirely a product of the intel code IMO.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 18:36:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1571568#M170880</guid>
      <dc:creator>andrew_4619</dc:creator>
      <dc:date>2024-02-12T18:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog not closing in 2021.9.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1574210#M171008</link>
      <description>&lt;P&gt;We use two different setups:&lt;/P&gt;&lt;P&gt;1) VS2015Shell + Intel fortran&amp;nbsp;&lt;SPAN&gt;19.0.8.234 - works as expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2)&amp;nbsp;&lt;/SPAN&gt;VS2022 17.5.4 +&amp;nbsp;&lt;SPAN&gt;2021.9.0 (oneAPI) - does not close when pushing [x]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 14:26:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1574210#M171008</guid>
      <dc:creator>LarsJ</dc:creator>
      <dc:date>2024-02-21T14:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog not closing in 2021.9.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1577554#M171153</link>
      <description>&lt;P&gt;Thanks for all the input.&lt;BR /&gt;&lt;BR /&gt;For info. We made this work around (placed in main message loop):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;        !handle close button [x] in the corner and close command in menu (work around due to change in iflogm behaviour)
        if ( (msg%message == WM_COMMAND .and. msg%wParam .eq. IDCANCEL) .or.  (msg%message == WM_SYSCOMMAND .and. msg%wParam .eq. SC_CLOSE) ) then
          
          ignor = DestroyWindow(msg%hwnd)
          cycle
          
        endif&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Regards&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 10:52:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1577554#M171153</guid>
      <dc:creator>LarsJ</dc:creator>
      <dc:date>2024-03-04T10:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog not closing in 2021.9.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1580549#M171292</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I've noticed the same problem with IFX. This issue has been forwarded to our engineering team for a fix. Thank you for your report.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 19:04:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1580549#M171292</guid>
      <dc:creator>Devorah_H_Intel</dc:creator>
      <dc:date>2024-03-14T19:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog not closing in 2021.9.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1635034#M173848</link>
      <description>&lt;P class="sub_section_element_selectors"&gt;This issue was fixed in ifx 2025.1&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;A class="sub_section_element_selectors" href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/hpc-toolkit-download.html?packages=fortran-essentials&amp;amp;fortran-essentials-os=windows&amp;amp;fortran-essentials-win=offline" target="_blank" rel="nofollow noopener noreferrer"&gt;Get Intel® oneAPI HPC Toolkit&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 18:39:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Dialog-not-closing-in-2021-9-0/m-p/1635034#M173848</guid>
      <dc:creator>Devorah_H_Intel</dc:creator>
      <dc:date>2025-04-03T18:39:36Z</dc:date>
    </item>
  </channel>
</rss>

