Delphi Pages Forums

Delphi Pages Forums (http://www.delphipages.com/forum/index.php)
-   Apps (http://www.delphipages.com/forum/forumdisplay.php?f=8)
-   -   app compile with D7 and problem windows 10 (http://www.delphipages.com/forum/showthread.php?t=217255)

BaraoZemo 08-26-2015 08:26 PM

app compile with D7 and problem windows 10
 
hi,

My application is refusing to run in windows 10 Pro.

when I open taskmanager in details about my programm
in the "analyze wait chain" windows says that my app1.exe is waiting for another process
______________________________________________
[ ]app1.exe (PID: 592) Thread: 4924
\
\_[ ] SearchUI.exe (PID: 3740) Thread: 3852
______________________________________________

sometimes I got the same problem but in the "is waiting for another process" appears "skype.exe"

so I have to CLOSE the "searchui.exe" process to my delphi 7 app1.exe runs...

I use delphi 7 to compile my app.exe with this manifest.

I don't know how to solve this...

Code:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" >
  <dependency>
    <dependentAssembly>
      <assemblyIdentity
        type="win32"
        name="Microsoft.Windows.Common-Controls"
        version="6.0.0.0"
        publicKeyToken="6595b64144ccf1df"
        language="*"
        processorArchitecture="*"/>
    </dependentAssembly>
  </dependency>
  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
      <requestedPrivileges>
        <requestedExecutionLevel
          level="asInvoker"
          uiAccess="false"/>
        </requestedPrivileges>
        </security>
  </trustInfo>
  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
  <application>
      <!--The ID below indicates application support for Windows 10 -->
      <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>       
      <!--The ID below indicates application support for Windows 8.1 -->
      <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
      <!--The ID below indicates application support for Windows 8 -->
      <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
      <!--The ID below indicates application support for Windows 7 -->
      <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
      <!--The ID below indicates application support for Windows Vista -->
      <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
    </application>
  </compatibility> 
</assembly>


kolbasz 08-27-2015 05:00 AM

Quote:

so I have to CLOSE the "searchui.exe" process to my delphi 7 app1.exe runs...
Disable Cortana(searchui.exe), it's useless anyway. Another good practice is to set compatibility mode for your application. Right Click the exe-->Properties-->Compatibility-->Run this program in compatibility mode. For a delphi 7 application choose XP.

BaraoZemo 08-27-2015 04:29 PM

how can I setup this without user intervention?
I use innosetup , is this possible ?

kolbasz 08-27-2015 05:52 PM

I don't think it's a good idea to disable cortana without user agreement. However, you can set the compatibility mode programatically, by adding a string to the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

String: Path to your exe
Value: WinXPSP3

BaraoZemo 08-27-2015 08:05 PM

my program runs fine in windows 7 and 8 an 8.1.

I try to change some things to disable virtualization (force user local app data to save files,etc..)


Quote:

Originally Posted by kolbasz (Post 231812)
I don't think it's a good idea to disable cortana without user agreement. However, you can set the compatibility mode programatically, by adding a string to the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

String: Path to your exe
Value: WinXPSP3


Rantor777 11-08-2016 01:09 AM

Delphi 7 Enterprise UP1 Running Ok
 
Delphi 7 Enterprise UP1 Running Ok :)

Long time no see, @BaraoZemo

BaraoZemo 11-08-2016 02:13 PM

Hi Rantor777,

The problem was occuried due to delphi 7 problems with windows because the "normal" api hangs with windows 7 up to 10... and the solution was change the command that used the "normal" api to another.. and my program didn't hangs anymore.. and who help me to debug this was skydevil (a big friend from another forum).

This problem haunted me since windows 7, and only after debugging the code thoroughly did I discover the problem and the solution was to change the command

(windows 7 upto 10) sometimes it hangs the application
SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);

and the solution..
change the command to "postmessage" and no hangs anymore.
PostMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0);

Quote:

Originally Posted by Rantor777 (Post 233473)
Delphi 7 Enterprise UP1 Running Ok :)

Long time no see, @BaraoZemo



All times are GMT. The time now is 07:51 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.