mactype icon indicating copy to clipboard operation
mactype copied to clipboard

The ordinal 345 could not be located in the dynamic link library ....xxxx.exe

Open perdrix52 opened this issue 2 years ago • 38 comments

I though this was a fixed issue? But it bit me today.

David

perdrix52 avatar May 23 '22 08:05 perdrix52

No fixes yet, 'cause nobody knows why it happened, and I can't reproduce it personally on any of my computers.

snowie2000 avatar May 23 '22 08:05 snowie2000

This symptoms (Ordinal 345 error) occur in Call of Duty Warzone (Modern Warfare) and cannot be resolved by adding the corresponding exe file to Unloaddll. The only workaround is to turn off Mactype. The game is free and can be downloaded from Battle.net outside of Mainland China.

liberaldev avatar Jun 13 '22 10:06 liberaldev

I have this exact same issue, whenever I start the mactype service, warzone (modern warfare) cannot be launched and I will keep getting ordinal 345 error, but if I turn off mactype service the error will go away, I'm not sure what is causing it and event viewer doesn't even flag it as warning or error, the log also contains no useful information besides how is the error described: Application popup: ModernWarfare.exe - Ordinal Not Found : The ordinal 345 could not be located in the dynamic link library D:\COD\Call of Duty Modern Warfare\ModernWarfare.exe. I can provide more info from my PC if you need it for this issue.

anAyasaMade-of-Kirby avatar Jun 16 '22 22:06 anAyasaMade-of-Kirby

I have this exact same issue, whenever I start the mactype service, warzone (modern warfare) cannot be launched and I will keep getting ordinal 345 error, but if I turn off mactype service the error will go away, I'm not sure what is causing it and event viewer doesn't even flag it as warning or error, the log also contains no useful information besides how is the error described: Application popup: ModernWarfare.exe - Ordinal Not Found : The ordinal 345 could not be located in the dynamic link library D:\COD\Call of Duty Modern Warfare\ModernWarfare.exe. I can provide more info from my PC if you need it for this issue.

Yes, I also get the same error in service mode. My OS is Windows 11.

liberaldev avatar Jun 19 '22 01:06 liberaldev

As a general rule you should exclude game executables from MacType.ini in the [UnloadDll] section. Many games will work, but many won't because they do weird things we can't predict with font rendering.

sammilucia avatar Jun 19 '22 21:06 sammilucia

As a general rule you should exclude game executables from MacType.ini in the [UnloadDll] section. Many games will work, but many won't because they do weird things we can't predict with font rendering.

I've already added that game executable to the [UnloadDll] section, and the symptoms are still reproduced.

liberaldev avatar Jun 20 '22 03:06 liberaldev

reopened

sammilucia avatar Jun 20 '22 11:06 sammilucia

same, i tried to add MW executable as an exception(), but i still get the same error if i start the mactype service image

anAyasaMade-of-Kirby avatar Jun 20 '22 19:06 anAyasaMade-of-Kirby

Maybe there are some companion application started along side the COD game? like the infamous RuntimeBroke.exe?

snowie2000 avatar Jun 22 '22 08:06 snowie2000

As a general rule you should exclude game executables from MacType.ini in the [UnloadDll] section. Many games will work, but many won't because they do weird things we can't predict with font rendering.

I've already added that game executable to the [UnloadDll] section, and the symptoms are still reproduced.

I would like know that if you started up your game via a shortcut? If yes, try to execute the .exe file directly. I'm kinda suspect that MacType has failed to correctly extracted your game executable filename from your shortcut.

I really have no more thoughts besides that.

snowie2000 avatar Jun 23 '22 02:06 snowie2000

As a general rule you should exclude game executables from MacType.ini in the [UnloadDll] section. Many games will work, but many won't because they do weird things we can't predict with font rendering.

I've already added that game executable to the [UnloadDll] section, and the symptoms are still reproduced.

I would like know that if you started up your game via a shortcut? If yes, try to execute the .exe file directly. I'm kinda suspect that MacType has failed to correctly extracted your game executable filename from your shortcut.

I really have no more thoughts besides that.

This error only occurs when running from a shortcut or through the battle.net launcher. I was able to play the game by running the .exe file directly from the install path.

My environment is Windows 11 21H2 build 22000.739.

liberaldev avatar Jun 23 '22 02:06 liberaldev

@ssharp0614 I guess I got the idea.

Please send me the problematic shortcut (.lnk file). I won't able to launch your game from that, but I think the information it carries is enough for me. Thanks.

snowie2000 avatar Jun 23 '22 02:06 snowie2000

If it is relevant, one of the programs I have this issue with is sidebar.exe started with a lnk file: C:\Users\amonra\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\Sidebar602.lnk sidebar.zip

perdrix52 avatar Jun 23 '22 10:06 perdrix52

If it is relevant, one of the programs I have this issue with is sidebar.exe started with a lnk file: C:\Users\amonra\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\Sidebar602.lnk sidebar.zip

Okay, but what you sent is an exe.

snowie2000 avatar Jun 23 '22 10:06 snowie2000

Drats - 7-Zip being too smart for its own good followed the lnk file and added the exe instead of adding the lnk file to the archive sidebar.zip

perdrix52 avatar Jun 23 '22 11:06 perdrix52

@perdrix52 @ssharp0614 Replace mactype files with this one: MacType-BetterGuess.zip

Turned out I misunderstood the rules of the CreateProcess parameters, and MacType may extract the wrong name from it. And in certain cases failed to apply the unloadDll rules in the first chance, which may cause some applications to not run properly.

Please try this improved version and see if it makes any difference.

snowie2000 avatar Jun 24 '22 03:06 snowie2000

Files are in use of course ... How should I install the replacements? Using Safe Mode?

perdrix52 avatar Jun 24 '22 07:06 perdrix52

Files are in use of course ... How should I install the replacements? Using Safe Mode?

Windows rules: executable files (.exe, .dll) in-use can't be replaced, but they can be renamed, then you can put new files in, and restart your computer.

snowie2000 avatar Jun 24 '22 07:06 snowie2000

As a general rule you should exclude game executables from MacType.ini in the [UnloadDll] section. Many games will work, but many won't because they do weird things we can't predict with font rendering.

Thank you, This worked for me

cmihairo avatar Jun 28 '22 08:06 cmihairo

Problem has recurred: image

Starting it again worked fine

perdrix52 avatar Jul 01 '22 08:07 perdrix52

So it is still a mystery to be solved.

I've fixed serval bugs these days and I'll release a new version once I am done, but this problem is not one of them😕

snowie2000 avatar Jul 01 '22 08:07 snowie2000

This is a duplicate of #488. I used to be haunted by that issue periodically. After a long struggle, Snowie had posted a fix for that issue. After applying that patch, I no longer got that "345" dialog any more. PS: I don't know whether it was "fixed" because that I bought a new computer... Please see: https://github.com/snowie2000/mactype/issues/488#issuecomment-714879581

wmjordan avatar Jul 11 '22 07:07 wmjordan

Problem has recurred: image

Starting it again worked fine

I haved this bug serveral days before. It only appears once when i open any program after restart windows, then it does not appear again when i work . After reinstalling windows and everything else, it become ..381.. instead of ..345.. So funny.

gagomap avatar Jul 12 '22 13:07 gagomap

I noticed that some of the mactype dlls have manifests embedded. I've removed them and here they are: nomanifest.zip

Also, my last patch in https://github.com/snowie2000/mactype/issues/864#issuecomment-1165148711 introduced a serious buffer overflow bug, please update with this hotfix ASAP.

snowie2000 avatar Jul 13 '22 05:07 snowie2000

I had turn off Clear Type in Windows Settings and apply your new dll. A new dll error still appears once when i open a program ( not 381 or 345). And when it happens, i can not open my start menu, it becomes blank. //sr for my english Chrome: 2022-07-16_cr

Office 365 2022-07-16 (2)

gagomap avatar Jul 16 '22 04:07 gagomap

Hi, sorry to bother. Has there been any progress on this, by chance? I'm encountering this same "ordinal 345 not found" error re: 'cod.exe' after trying to install and launch the Call of Duty Warzone game. I'm guessing it's most likely from MacType, then, and not something else with my setup?

image image

Should I try the nomanifest.zip variant mentioned above at https://github.com/snowie2000/mactype/issues/864#issuecomment-1182794113?

jessicaknotts avatar Nov 25 '22 10:11 jessicaknotts

Hi friend, I have the same problem, please help me.

tapiaso avatar Nov 28 '22 15:11 tapiaso

I'm very sorry about this mysterious issue, but till now, it never occurred to me in any form in whatever software I was using.

So there is really nothing I can do to mitigate this problem.

snowie2000 avatar Nov 29 '22 02:11 snowie2000

GRACIAS AMIGO!

El lun, 28 nov 2022 a las 21:27, snowie2000 @.***>) escribió:

I'm very sorry about this mysterious issue, but till now, it never occurred to me in any form in whatever software I was using.

So there is really nothing I can do to mitigate this problem.

— Reply to this email directly, view it on GitHub https://github.com/snowie2000/mactype/issues/864#issuecomment-1329993094, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4OPIGVGKQYARECXVWUZN5TWKVSY5ANCNFSM5WU6DIUA . You are receiving this because you commented.Message ID: @.***>

-- @.***@soStudio

tapiaso avatar Nov 29 '22 03:11 tapiaso

Made a video explaining all the fixes besides delete max type.

https://youtu.be/ihSBdq_co3w

DevinDesigns avatar Dec 25 '22 19:12 DevinDesigns