i finally found out why labview was crashing when i open a project window.
the problem was actually a corrupted MAX Data folder. I missed out the link that
explained me how to rectify it, but i had copied the contents of that link. Im pasting it below:
MAX maintains a backup copy of the database file, which can be used to recover from a database corruption. To revert to the uncorrupted backup, please log in as an Administrator or another user with Administrator privileges in order to complete the following steps (If you have a firewall such as F-Secure installed, make sure it's disabled during this procedure!):
- Exit all NI applications.
- Launch the command window:
- On Windows XP/ 2000/ Vista:
- Select Run... from the Windows Start menu.
- Type cmd, and click OK.
- Type net stop mxssvr and press Enter to stop the MAX database service. If you are prompted to stop other services, stop them.
- Type exit and press Enter to close the command window.
- On Windows 7:
For Windows 7, the command prompt needs to be run as an administrator. If not, as you try these steps, you will receive System error 5 has occurred. Access is denied.- Select Programs � Accessories from the Windows Start menu.
- Right click Command Prompt and select Run as administrator
- Type net stop mxssvr and press Enter to stop the MAX database service. If you are prompted to stop other services, stop them.
- Type exit and press Enter to close the command window.
- Find the Last folder:
- On Windows XP and Windows 2000:
- Navigate to C:\Documents and Settings\All Users\Application Data\National Instruments\MAX\Data Dictionaries\Last
- The folder named Application Data is a hidden folder. You can view hidden folders by selecting Tools � Folder Options..., click the View tab, and selecting Show hidden files and folders.
- On Windows Vista:
- Navigate to C:\ProgramData\National Instruments\MAX\Data Dictionaries\Last
- If this folder cannot be seen, go to the C: drive and then in the menu bar, choose Organize � Folder and Search Options, click the View tab.
- Select the Show hidden files and folders option.
- Deselect the Hide protected Operating System files option.
- On Windows 7:
- Navigate to C:\ProgramData\National Instruments\MAX\Data Dictionaries\Last
- If this folder cannot be seen, go to the C: drive and then in the menu bar choose Tools � Folder Options..., click the View tab, and select Show hidden files and folders.
- If you do not have the menu bar visible, select Organize�Folder and Search Options..., click the View tab, and select Show hidden files and folders.
- Deselect the Hide protected Operating System files option.
- Create a backup copy of the Last folder, and store it in another location.
- Find the Data folder:
- On Windows XP and Windows 2000:
- Navigate to C:\Documents and Settings\All Users\Application Data\National Instruments\MAX\Data\
- The folder named Application Data is a hidden folder. You can view hidden folders by selecting Tools � Folder Options..., click the View tab, and selecting Show hidden files and folders.
- On Windows Vista:
- Navigate to C:\ProgramData\National Instruments\MAX\Data
- If this folder cannot be seen, go to the C: drive and then in the menu bar, choose Organize � Folder and Search Options, click the View tab.
- Select the Show hidden files and folders option.
- Deselect the Hide protected Operating System files option.
- On Windows 7:
- Navigate to C:\ProgramData\National Instruments\MAX\Data\
- If this folder cannot be seen, go to the C: drive and then in the menu bar choose Tools � Folder Options..., click the View tab, and select Show hidden files and folders.
- Deselect the Hide protected Operating System files option
- Create a backup copy of the Data folder, and store it in another location.
- Open the original Data folder and find the file named config3.mxs.bak. Check this file's creation/modification time by right-clicking the file and choosing Properties. The General tab will list the time it was created and the time it was last modified.
If that file is dated such that it would contain your recent changes, continue with the following steps. If the file is old, or you are not sure of the status of MAX at the time of that file's creation, or if the config3.mxs.bak file is the same size as the config3.mxs file, simply delete the entire Data folder and skip to step 10.
Note: Deleting the Data folder in its entirety will remove all configuration settings. The next time MAX is launched, you will have to configure all of your hardware again.
- Still in the MAX\Data folder, delete the file named config3.mxs or save it with a different name. Do the same for any of these files if they exist in the Data folder: config3.mxc, config3.mxd, config3.mx5, and storage.mxc.
Note: You might not be able to delete or rename those files. In this case, rename the Data and Last folders and skip to step 10.
- Rename config3.mxs.bak to config3.mxs.
- Reboot your computer.
- Start MAX. MAX should launch with the configuration information that was stored as a backup if you did not completely delete the Data folder.
- If reverting to the back-up version of your MAX database resolves this error for you, please send your original corrupt Last and Data folders along with a MAX Support Report to NI Technical Support. You can create this report in MAX by choosing File � Create Report in the menu.
I hope this helps.