Applicable Versions
NetSim Standard 
NetSim Pro


Applicable Releases
v10v11
v12

This usually happens with the following cases.

  • CASE 1: Visual Studio Solution Platform and NetSim Installed Platform.(32-bit/64-bit) does not match
    • Before any code modification, check the platform of NetSim that is installed in your system.
      • Open NetSim Home Screen, you'll find the information on whether it is 32bit or 64bit as shown below:
      • In the older versions of NetSim, this information can be found from the Design window by going to Help -> About NetSim
    • Since NetSim is available in 64/32 bit, the source code must have complied with respect to the NetSim Platform.
      • Once you open code in Visual Studio set the solution platform as per the NetSim's Platform as shown below:



  • CASE 2: Protocol modified and the protocol running involved in the running simulation do not match
    • This is a special case where if you are trying to modify say TCP Source code but while configuring the application you have set UDP protocol or disabled TCP in NetSim GUI then there will be no impact of the code changes in the simulation and results.
    • Before modifying the source codes make sure to 
      • Select the appropriate Source Code Library
      • check whether the modified protocol is present and enabled in its respective layer.
    • Change the solution platform to NetSim's platform and start modifying the code
    • After modification Build the code before running simulation.