How to fix runtime error r6031

Written by jason candanedo
  • Share
  • Tweet
  • Share
  • Email

Runtime errors occur when a problem is encountered as a program application is being executed. Runtime errors happen in software environments for a variety of reasons. Some reasons may be invalid instructions or peripheral devices are not activated. One example of a runtime error is the error R6031. This type of error occurs because of an "attempt to initialise the CRT more than once. This indicates a bug in your application," according to Microsoft. To fix this problem, you must edit the registry using the Microsoft Registry Editor.

Skill level:
Moderately Easy

Other People Are Reading

Things you need

  • Microsoft Registry Editor

Show MoreHide


  1. 1

    Click the "Start" button in the Windows desktop to open the "Start" menu.

  2. 2

    Click the "Run" icon and type "regedit" (without quotes) into the "Run" text field and click the "OK" button. The Microsoft Registry Editor will open.

  3. 3

    Go to the left-side pane of the registry and locate the "HKEY_LOCAL_MACHINE" entry. Open the entry.

  4. 4

    Open these folders in the following order: "Microsoft">"Windows">"NT">"CurrentVersion">"AppCompatFlags">"Layers."

  5. 5

    Locate any keys that contain the "Relex.exe." path in them and right-click, then select "Delete." Close the editor afterward.

Don't Miss


  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.