ubi.com    Forums  Hop To Forum Categories  Lock On  Hop To Forums  Lock On: Modern Air Combat General Discussion    A true campaign fix for WinXP SP2 users? Say it ain't so!
Page 1 2 
Go
New
Find
Notify
Tools
Reply
  
  Login/Join 
Posted
I think I found the ultimate solution to the campaign/msvcrt.dll/instability problem on windows xp sp2.

First make sure you have the msvcrt.dll that came with lomac in the lomac folder (this is for those of you who tried replacing it with other versions). Now create an empty file named "lockon.exe.local" without the quotes of course in the same folder where lockon.exe is located (C:\Program Files\Ubisoft\Eagle Dynamics\Lock On).

When you start lomac you will get a couple of dialog boxes saying "The procedure entry point _resetstkoflw could not be located in the dynamic link library msvcrt.dll", just click ok and continue, go into your campaign and play it.

The explanation.
What we have here is a classic problem known as DLL HELL. Lomac comes with its own msvcrt.dll but due to the way it loads dlls, it ends up always loading the one in the /system32 folder which is buggy (it loads ntdll.dll which loads other dlls which load the wrong msvcrt.dll).

The trick to force windows to load the msvcrt.dll in the lomac folder was to create a file with a .local extension, as in lockon.exe.local, which forces windows to load the right dll.

I just tested the su25 campaign which worked for me and it flew it without errors for the first time ever. I would like to know how it works out for other sp2 users.


 
Posts: 518 | Registered: Mon April 19 2004Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Great stuff, it works brilliantly. Where did you get the inspiration from to try this?
 
Posts: 461 | Registered: Fri November 08 2002Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
I attached the windows debugger (windbg) to the lomac process and debugged it for a while. And then I noticed why it was always loading the dll in the /system32 folder. The .local file trick was something I learned a while back when dll hell was a major pain in a rear


 
Posts: 518 | Registered: Mon April 19 2004Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
This needs sticky glue. Veryhappy


_____________________________
"Nietzsche is dead." - God.
 
Posts: 34 | Registered: Sat May 22 2004Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Hey thanks alot. This finally fixed it!!!

Yamangman has been helping me, but nothing has been succesfull.

Great Job!!!


 
Posts: 398 | Registered: Fri January 07 2005Reply With QuoteEdit or Delete MessageReport This Post
Picture of MobyGrape
Posted Hide Post
this has been happening to me and others in MP..NTDLL error..it happens when quiting game..and going to debriefing screen..or Locks up..and windows reports this error..
There are some other dll's causing crashes too..



Shuttle ST61G4
P4 2.6C 800MHZ 1 GIG CORSAIR P3200 400MHZ C2
80 GIG SEAGATE SATA HD
LITEON 48X24X48CDRW +16 DVD
ATI X800 GTO
WINXP PRO
 
Posts: 123 | Registered: Fri March 26 2004Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Finally found this article after few days of fighting with this problem. Nice job coldcrew!
I wonder why isn't this wrong dll a problem for everyone?...
 
Posts: 9 | Registered: Wed April 20 2005Reply With QuoteEdit or Delete MessageReport This Post
Picture of suntrace1
Posted Hide Post
Excelent work, i had problems with non-stop crashing when i played campaigns - now i can finaly finish ''When Hogs Fly'' !!!

Thumbs Up


 
Posts: 382 | Registered: Sun January 18 2004Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
To help those who encouter this problem and eliminate confusion I need to add that the fix is to create a FOLDER called "lockon.exe.local".
 
Posts: 4 | Registered: Thu August 19 2004Reply With QuoteEdit or Delete MessageReport This Post
Picture of Air-Force-1
Posted Hide Post
quote:
Originally posted by coldcrew:
I think I found the ultimate solution to the campaign/msvcrt.dll/instability problem on windows xp sp2.

First make sure you have the msvcrt.dll that came with lomac in the lomac folder (this is for those of you who tried replacing it with other versions). Now create an empty file named "lockon.exe.local" without the quotes of course in the same folder where lockon.exe is located (C:\Program Files\Ubisoft\Eagle Dynamics\Lock On).

When you start lomac you will get a couple of dialog boxes saying "The procedure entry point _resetstkoflw could not be located in the dynamic link library msvcrt.dll", just click ok and continue, go into your campaign and play it.

The explanation.
What we have here is a classic problem known as DLL HELL. Lomac comes with its own msvcrt.dll but due to the way it loads dlls, it ends up always loading the one in the /system32 folder which is buggy (it loads ntdll.dll which loads other dlls which load the wrong msvcrt.dll).

The trick to force windows to load the msvcrt.dll in the lomac folder was to create a file with a .local extension, as in lockon.exe.local, which forces windows to load the right dll.

I just tested the su25 campaign which worked for me and it flew it without errors for the first time ever. I would like to know how it works out for other sp2 users.


This might be the answer to my "dll hell"
http://forums.ubi.com/eve/forums/a/tpc/f/38610606/m/8551009963


I will try it , here's hoping !!!
 
Posts: 388 | Registered: Wed December 03 2003Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Let us know,,, It worked great for me. Too Happy
 
Posts: 4 | Registered: Thu August 19 2004Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Wow, I just stumbled on to this thread. I hope this fixes my crashing problem loading mission 2 of the A-10 campaign in 1.1.
 
Posts: 41 | Registered: Tue May 14 2002Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Oh Mate!

I have been playing flight sims since my dad had a 25mhz 486sx. F15 Strike Eagle II (1989) and Falcon 3.0 (1991) and since that time have not come across another flight sim that I thought was amazing, until LOMAC. Well, that was until I played it more than once........ I bought this game over a year ago and have never been able to fly more that one or two missions due to the game crashing when I presses 'FLY' on certain (ultimately most) missions. I recently re-installed it after an upgrade, hoping my woes were no more but alas, I could do the first mission of a campaign and then CTD when I tried the next.

This evening, since I followed your long sought out instructions, I have had around four hours of unadulterated air combat bliss, including 3rd party missions and campaigns (I thought that would put your theory to the test) with no problems whatsoever. The game runs like a dream!

I owe you a beer, no a few rounds mate. I cannot thank you enough!

Thanks again bud, you are a star!


P4 3ghz
1024MB 3200
Radeon 9800pro (OC'd past XT speeds)
 
Posts: 1 | Registered: Mon January 02 2006Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
quote:
I think I found the ultimate solution to the campaign/msvcrt.dll/instability problem on windows xp sp2.

First make sure you have the msvcrt.dll that came with lomac in the lomac folder (this is for those of you who tried replacing it with other versions). Now create an empty file named "lockon.exe.local" without the quotes of course in the same folder where lockon.exe is located (C:\Program Files\Ubisoft\Eagle Dynamics\Lock On).

When you start lomac you will get a couple of dialog boxes saying "The procedure entry point _resetstkoflw could not be located in the dynamic link library msvcrt.dll", just click ok and continue, go into your campaign and play it.

The explanation.
What we have here is a classic problem known as DLL HELL. Lomac comes with its own msvcrt.dll but due to the way it loads dlls, it ends up always loading the one in the /system32 folder which is buggy (it loads ntdll.dll which loads other dlls which load the wrong msvcrt.dll).

The trick to force windows to load the msvcrt.dll in the lomac folder was to create a file with a .local extension, as in lockon.exe.local, which forces windows to load the right dll.

I just tested the su25 campaign which worked for me and it flew it without errors for the first time ever. I would like to know how it works out for other sp2 users.

hope this gets reported to ED for fixing.
 
Posts: 58 | Registered: Sat November 08 2003Reply With QuoteEdit or Delete MessageReport This Post
I get it now, do you?
Picture of redfeathers1948
Posted Hide Post
This works for the full updated Flaming Cliffs with patches,correct? It sounds genius!! bow


 
Posts: 186 | Registered: Thu February 17 2005Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
quote:
lockon.exe.local

So is the solution to create a file named lockon.exe.local or a folder?
 
Posts: 23 | Registered: Sun November 11 2001Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
I simply opened notepad and without typing anything I went to "save as" and called it lockon.exe.local and then saved it to my lockon folder, but I would imagine creating a folder and then naming it lockon.exe.local would have the same outcome which is a 0 byte file called lockon.exe.local. Smile


_____________________________
"Nietzsche is dead." - God.
 
Posts: 34 | Registered: Sat May 22 2004Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Holy jumping Jesus on a cracker... it really works.

Thanks for the fix. Previously, the chances of Lomac A) loading the campaign mission and B) not crashing until I landed were somewhere between 0% and 5%. Now it's 100%...
 
Posts: 11 | Registered: Sat August 06 2005Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Thanks - it works great!
 
Posts: 23 | Registered: Sun November 11 2001Reply With QuoteEdit or Delete MessageReport This Post
Picture of DRAKO_MDx
Posted Hide Post
!!! bow bow bowSTICKYbow bow bow!!!
 
Posts: 589 | Registered: Sat June 29 2002Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community Page 1 2  
 

ubi.com    Forums  Hop To Forum Categories  Lock On  Hop To Forums  Lock On: Modern Air Combat General Discussion    A true campaign fix for WinXP SP2 users? Say it ain't so!

Terms of Use