|
-
Dec 22nd, 2022, 03:53 AM
#1
Re: Same Code Compiled on windows 11 will not run on Windows 7
as I wrote, I use Direct2D, WIC, OLEEXP and DirectSound for my game. those typelibs are the same.
the other references are:
Visual Basic For Applications (that should be the same)
Visual Basic runtime objects and procedures (that is located in C:\Windows\sysWOW64, that could be a problem)
Visual Basic objects and procedures (that should be the same)
OLE Automation (that is different C:\Windows\sysWOW64\stdole2.tlb)
the last one I can be without, but if I want to use API like OleCreatePictureIndirect, I need to include it. its the IPicture/StdPicture reference.
but the issues I get are not related to this at all.
the game itself its buggy. resulting in glitches. like some "memory" issue. maybe related to msvbvm60?
since the values of the game gets altered and of course if messing with values too much, eventually it will crash.
if I compile in windows 7, the game works well in all OS, but compiling it in windows 10 result in this.
and theres no "error" code showing like axisdj has. its full crash. or full glitches.
so, lets assume theres some "odd" memory leaks that will show in "big projects" or "specific project"
it will work, but since theres a memory problem, eventually it will start causing issues. strange behavior. and sometimes crashes.
dilettante just compile a couple of projects, make a run and if its works = ITS WORKING, SEE?!? I KNOW EVERYTHING U ARE ALL WRONG.
but u need to do A LOT OF TESTING. since it require the memory to be used "A LOT". u can not just test-run it. it need to run for a long time and u need to have a project that require MANY things.
my game is that. doing A LOT OF CALCULATIONS.
so, sure, following dilettante's conclusion. IT WORKS. well. it do until it doesn't. what then?
my game require it to be 100% correct. I can not have values altered. people will complain if they lose money, or their character gets faulty health values, or one item disappear or get bad.
or when saving, the save-data is corrupted and he can not load it anymore. I mean.... I CAN NOT HAVE IT LIKE THAT.
its not a utility tool that do a couple of calculation and some text-editing.
for u it WILL NOT MATTER. it works. and probably it will always even if sometimes something odd happens. but its not the end of the world.
but, the problem is, THERES SOMETHING GOING ON. and it can affect everybody.
Last edited by baka; Dec 22nd, 2022 at 03:57 AM.
-
Dec 22nd, 2022, 02:02 PM
#2
Thread Starter
Hyperactive Member
Re: Same Code Compiled on windows 11 will not run on Windows 7
dilettante: I compiled the simple loadpicture sample you tested on win11, and it ran fine on win7 so it appears loadpicture on a single line app does not have an issue.
trick: I am attaching the stdole2 file traits
here are my reference entries in vpb
Windows11
Code:
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\Windows\SysWOW64\stdole2.tlb#OLE Automation
Reference=*\G{6B263850-900B-11D0-9484-00A0C91110ED}#1.0#0#C:\Windows\SysWow64\msstdfmt.dll#Microsoft Data Formatting Object Library 6.0 (SP6)
Reference=*\G{420B2830-E718-11CF-893D-00A0C9054228}#1.0#0#C:\Windows\SysWOW64\scrrun.dll#Microsoft Scripting Runtime
Reference=*\G{662901FC-6951-4854-9EB2-D9A2570F2B2E}#5.1#0#C:\Windows\system32\winhttpcom.dll#Microsoft WinHTTP Services, version 5.1
Reference=*\G{00000205-0000-0010-8000-00AA006D2EA4}#2.5#0#C:\Program Files (x86)\Common Files\System\ado\msado25.tlb#Microsoft ActiveX Data Objects 2.0 Library
Object={6BF52A50-394A-11D3-B153-00C04F79FAA6}#1.0#0; wmp.dll
Reference=*\G{7C0FFAB0-CD84-11D0-949A-00A0C91110ED}#1.0#0#C:\Windows\SysWOW64\msdatsrc.tlb#Microsoft Data Source Interfaces for ActiveX Data Binding Type Library
Object={EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0; ieframe.dll
Windows7
Code:
Reference=*\G{6B263850-900B-11D0-9484-00A0C91110ED}#1.0#0#..\..\..\..\Windows\SysWow64\MSSTDFMT.DLL#Microsoft Data Formatting Object Library 6.0 (SP6)
Reference=*\G{420B2830-E718-11CF-893D-00A0C9054228}#1.0#0#..\..\..\..\Windows\SysWOW64\scrrun.dll#Microsoft Scripting Runtime
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#..\..\..\..\Windows\SysWOW64\stdole2.tlb#OLE Automation
Reference=*\G{662901FC-6951-4854-9EB2-D9A2570F2B2E}#5.1#0#..\..\..\..\Windows\system32\winhttp.dll#Microsoft WinHTTP Services, version 5.1
Reference=*\G{00000205-0000-0010-8000-00AA006D2EA4}#2.5#0#..\..\..\..\Program Files (x86)\Common Files\System\ado\msado25.tlb#Microsoft ActiveX Data Objects 2.0 Library
Object={6BF52A50-394A-11D3-B153-00C04F79FAA6}#1.0#0; wmp.dll
Reference=*\G{7C0FFAB0-CD84-11D0-949A-00A0C91110ED}#1.0#0#..\..\..\..\Windows\SysWOW64\msdatsrc.tlb#Microsoft Data Source Interfaces for ActiveX Data Binding Type Library
Object={EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0; ieframe.dll
It would not let me upload the different stdole2 files but
the windows 7 one was 16,896 bytes and last modified on Monday, July 13, 2009, 6:43:54 PM
windows 11 one was 18,432 bytes and last modified at Saturday, June 05, 2021, 7:05:44 AM
Let me know what you think
-
Dec 22nd, 2022, 03:10 PM
#3
Thread Starter
Hyperactive Member
Re: Same Code Compiled on windows 11 will not run on Windows 7
Well its time to eat crow!!!
I found the issue , it was related to a different version of a dll. Instantiation order made it look like something else.
I guess the whole no support for win10-11 make me doubt it.
So with process of elimination I found the issue.
Sorry for the trouble
-
Nov 15th, 2023, 08:19 PM
#4
New Member
Re: [RESOLVED] Same Code Compiled on windows 11 will not run on Windows 7
Hi Everyone, i have the same problem with my project ... When compiled in win10 run in win11, when compiled in 11 not workin in 10 or earlier....
could be help me to the solve the problem? What could i'd try for the fix the problem.... Sorry for my bad inglish...
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|