Open Source Platform
for interconnected virtual worlds

Adding Viewer Components

From RexWiki

Adding new components or libraries to realXtend Viewer requires some caution. Because it is based on the Second Life viewer, it uses the static Multithreaded (/MT switch in Visual Studio) C++ runtime, and thus any new libraries should also be compiled with the static Multithreaded runtime, and linked statically.

DLLs *can* be used, if one watches out for the following things:

  • The DLL should not share memory allocation responsibilities with the main program, because the DLL & viewer will be using different memory heaps.
  • The DLL should not expose any C++ classes, and especially not STL based classes, to the main program.

To be sure, test on Windows Vista, which seems to be most strict in detecting conflicts (and terminating the offending application!) resulting from mixed runtimes or mixed heap usage.