# I use Drawings and Kernel archives (static configuration mddbg). The build succeeds, but when I run main.exe, I get the following output: ERROR: Null Ptr

 1. [FAQ](/faq)
2. »
3. [STEP](/faq/step)

### Pay attention to content of TOOLKIT\_IN\_DLL defines in each main .cpp of examples. There is an initialization of modules needed in static:

```plaintext
#ifndef TOOLKIT_IN_DLL
INIT_IFC_STATIC_MODULES_NO_GEOM;
#endif
```

and

```plaintext
#ifndef TOOLKIT_IN_DLL
ODRX_INIT_STATIC_MODULE_MAP();
#endif
```

So in md configuration each module should been previously initialized for our rt linker can work with them.
