NASA WorldWind1.4.0 source code debugging Summary

Source: Internet
Author: User

1. First, download the source code world_wind_1.4.0_source.zip from the official website of nasa.

Http://worldwind.arc.nasa.gov/download.html.
2. The WorldWind operation requires DirectX support. Download The DirectX 9.0c multi-country language edition, decompress and run dxsetup.exe, and install it

Default path. Then go to the system directory (assuming drive C) C: \ WINDOWS \ Microsoft. NET \ DirectX for Managed Code to check

Check the nine dll files in the 1.0.2902.0 folder. These dll files are the files to be applied.

Microsoft. DirectX. Direct3DX. dll version 5.4.0.3900 cannot meet World_Wind_1.4.0 requirements.

The Microsoft. DirectX. Direct3DX. dll file version in the 1.0.2911.0 folder is 9.12.589.0. Otherwise

The MeasureString attribute cannot be found. You can use ildasm to view the differences between the two files.
3. Reference DirectX related components to compile the source code. World_Wind_1.4.0 contains 16 engineering files, wherein WorldWind is started

. Pay attention to the dependencies between various projects. If it is successfully compiled and run, a virtual Earth will appear.

Information:
(1) LoaderLock Detected
Message: DLL "E: \ project \ Digital Earth \ World_Wind_1.4.0_Source \ bin \ Debug \ Microsoft. DirectX. dll"

Attackers attempt to execute managed code within the OS loader lock. Do not try to run managed code in the DllMain or image initialization function.

The application will be suspended.
Solution: click "debug" in the VS2005 toolbar --> select Managed Debugging Assistants in the open window to go

Drop the check box that is triggered by LoaderLock.

(2) System. IO. FileNotFoundException not processed
Message: the specified module cannot be found. (Exception from HRESULT: 0x8007007E)
World Wind Error
A Fatal Error has occurred:
The following error (s) occurred:
Unable to locate a compatible graphics adapter. Make sure you are running the latest

Version of DirectX.
Errors in the application.
Solution: Run dxdiag in the windows Start Menu to view the DirectX information of the Local Machine and check whether the Direct3D function is available (this

This problem occurs because the 3D function is not enabled.) If this problem is disabled, right-click the desktop and choose Properties> Settings> advanced

--> For troubleshooting, set hardware acceleration to the maximum. If not, download the latest video card driver and try it.

 

 

You can see the effect after you check it out.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.