Home > Windows Tips > > What? Entry point not found?
Win IT Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 


What? Entry point not found?


Serdar Yegulalp
03.13.2002
Rating: -3.93- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


 

What? Entry point not found?
Serdar Yegulalp

One common, confusing and sometimes panic-inducing error message that appears in Windows 2000 is when a user attempts to execute an application and is greeted with the following error:

"Entry Point Not Found. The procedure entry point <procedurename> could not be located in the dynamic link library KERNEL32.DLL."

Because of the wording of the error message, it may inspire people to believe that KERNEL32.DLL is damaged in some way, and is missing some critical function. The real explanation is usually somewhat more benign.

Many .DLLs depend on function calls in the kernel (that's what the error message refers to as a "procedure entry point") to accomplish certain tasks. Some of these functions exist only in specific versions of Windows, such as Windows 98 or Windows Me. In Windows 2000, these "missing" functions may be rolled into other functions, or may simply not exist. The .DLL usually has no way of knowing this and will simply put the call through, yielding this error. The SetHandleContext() API is one such function call.

Generally this happens when an application is written and compiled for Windows 9x, without proper regard for compatibility with other versions of Windows. In some instances this is unavoidable, but generally speaking, it is possible to write the vast majority of generic applications to run transparently on all 32-bit versions of Windows. Often what will happen is a .DLL written specifically for another version of Windows will come packaged with a particular application, and the installer will not correctly sense that the host OS requires a different edition of the DLL. Many games written for Win98 will yield this error when run on Win2K, and some network applications written for Win98 will also return it if they came bundled with an older version of Winsock.DLL.

The solution is usually to find an upgraded version of the program that is written to run on Win2K as well as Win98, or to replace the offending .DLL, making the function call with one that works with Win2K APIs.

Note that Windows XP has a special trapping mechanism that redirects most, if not all, invalid entry-point errors, so they are handled by the correct kernel routines.


Serdar Yegulalp is the editor of the Windows 2000 Power Users Newsletter.


Rate this Tip
To rate tips, you must be a member of SearchWinIT.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Windows Technology Updates, Reviews and Solutions

Laptop Discounts with free coupon codes, huge savings at Notebook Review

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts