Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > Apps

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 08-26-2015, 08:26 PM
BaraoZemo BaraoZemo is offline
Senior Member
 
Join Date: Nov 2001
Posts: 3,598
Unhappy 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>
Reply With Quote
  #2  
Old 08-27-2015, 05:00 AM
kolbasz kolbasz is offline
Senior Member
 
Join Date: Nov 2013
Posts: 841
Default

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.
Reply With Quote
  #3  
Old 08-27-2015, 04:29 PM
BaraoZemo BaraoZemo is offline
Senior Member
 
Join Date: Nov 2001
Posts: 3,598
Default

how can I setup this without user intervention?
I use innosetup , is this possible ?
Reply With Quote
  #4  
Old 08-27-2015, 05:52 PM
kolbasz kolbasz is offline
Senior Member
 
Join Date: Nov 2013
Posts: 841
Default

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
Reply With Quote
  #5  
Old 08-27-2015, 08:05 PM
BaraoZemo BaraoZemo is offline
Senior Member
 
Join Date: Nov 2001
Posts: 3,598
Exclamation

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 View Post
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
Reply With Quote
  #6  
Old 11-08-2016, 01:09 AM
Rantor777 Rantor777 is offline
Junior Member
 
Join Date: Nov 2016
Location: 127.0.0.1
Posts: 10
Default Delphi 7 Enterprise UP1 Running Ok

Delphi 7 Enterprise UP1 Running Ok

Long time no see, @BaraoZemo
Reply With Quote
  #7  
Old 11-08-2016, 02:13 PM
BaraoZemo BaraoZemo is offline
Senior Member
 
Join Date: Nov 2001
Posts: 3,598
Default

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 View Post
Delphi 7 Enterprise UP1 Running Ok

Long time no see, @BaraoZemo
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:36 PM.


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