Yes, the Code 39 error for sound drivers is fixable in most cases. This error, which appears in Device Manager as “Windows cannot load the device driver for this hardware because a previous instance of the device driver is still in memory,” typically stems from a corrupted driver, a failed update, or a conflict left over from an uninstall. The fixes below range from a simple reboot to a clean driver reinstall, and they resolve the issue for the vast majority of users.
What Is the Code 39 Error?
Code 39 is one of several Windows Device Manager error codes. It means Windows cannot load the driver for a piece of hardware—in this case, your sound card or audio chip. The full message reads: “Windows cannot load the device driver for this hardware because a previous instance of the device driver is still in memory. (Code 39)”. This is not a hardware failure; it is a software conflict. The system thinks an old copy of the driver is still running, so it refuses to start the new one.
The error appears in the device’s Properties window under the General tab. You will see a yellow exclamation mark next to the audio device in Device Manager. Common affected devices include Realtek, Conexant, and Intel audio controllers, but the fix is the same regardless of the brand.
Why Does Code 39 Happen on Sound Drivers?
Several scenarios trigger this specific error:
- Incomplete driver update: A Windows Update or manual driver install got interrupted, leaving a partial driver in memory.
- Leftover driver files: Uninstalling an audio driver does not always remove all its files. The next driver install sees the old remnants and refuses to load.
- Registry corruption: The driver’s registry entries can become corrupted, especially after a system crash or forced shutdown.
- Third-party audio software: Programs like equalizers, virtual surround tools, or audio managers can lock driver files and cause conflicts.
- Windows Fast Startup: This feature can sometimes keep old driver states in memory across reboots, leading to the “previous instance” message.
How to Fix Code 39 for Sound Drivers
Try these fixes in order, from simplest to most thorough. Stop after each one and check if the error is gone.
- Restart your computer. A plain restart clears the driver from memory. This fixes the error if it was a one-time glitch.
- Disable Fast Startup. Go to Control Panel → Power Options → Choose what the power buttons do → Change settings that are currently unavailable. Uncheck “Turn on fast startup” and save. Then restart.
- Uninstall the sound device in Device Manager. Right-click the audio device with the yellow mark, choose Uninstall device, and check “Delete the driver software for this device” if the option appears. Restart. Windows will reinstall a generic driver automatically.
- Install the latest driver from the manufacturer. After the uninstall, download the newest audio driver from your PC or motherboard maker’s support page. Run the installer as administrator.
- Use the Windows built-in audio troubleshooter. Go to Settings → System → Sound → Troubleshoot. This can sometimes reset the audio stack automatically.
- Run a system file check. Open Command Prompt as administrator and run
sfc /scannow. Then runDISM /Online /Cleanup-Image /RestoreHealth. This repairs corrupted system files that may be blocking the driver. - Manually delete leftover driver files. If the error persists, open File Explorer and go to
C:\Windows\System32\drivers. Look for files with names likeRTKVHD64.sys(Realtek) orIntcDAud.sys(Intel). Delete them, then restart. Windows will rebuild them.
What to Do If the Fixes Don’t Work
If you have tried all the steps above and the code 39 error remains, the problem may be deeper. Check if the audio device appears in Device Manager under “Sound, video and game controllers” at all. If it is missing entirely, the issue could be with the BIOS or the physical connection. Try these additional steps:
- Check BIOS settings: Restart your PC and enter BIOS (usually by pressing Del or F2 during boot). Look for an option like “Onboard Audio” or “HD Audio Controller” and make sure it is enabled.
- Try a different PCI slot (desktop only): If you are using a dedicated sound card, move it to another slot. This can clear a resource conflict.
- Use System Restore: If the error started after a specific update or install, restore your system to a point before that change.
- Check for Windows updates: Install all pending updates, as some cumulative updates include audio driver fixes.
If none of this works, the hardware itself may be failing. Test the speakers or headphones on another device to rule out a simple connection issue.
Is Code 39 the Same as Code 28 or Code 43?
No. Code 39 is specific to a driver that is already loaded but not functioning. Code 28 means the driver is not installed at all. Code 43 means Windows has stopped the device because it reported a problem. The fixes differ: Code 28 usually requires a driver install, while Code 43 often indicates a hardware fault or a power management issue. If you see Code 43 on your sound device after fixing Code 39, the problem may be physical.
Preventing Future Code 39 Errors
Once you fix the error, take these steps to avoid it happening again:
- Always uninstall audio drivers properly: Use the manufacturer’s uninstaller or Device Manager, then restart before installing a new driver.
- Disable automatic driver updates from Windows Update: Windows Update can install a generic driver over your manufacturer’s driver, causing conflicts. You can block this via Device Installation Settings in System Properties.
- Keep your audio software up to date: If you use a third-party audio app, update it regularly to avoid compatibility issues.
- Create a restore point before major changes: This gives you a quick way back if something goes wrong.
Frequently Asked Questions
Why does the code 39 error keep coming back after I restart?
If the error returns after every restart, the driver files are likely corrupted on disk, not just in memory. Follow the uninstall and clean reinstall steps above. Also check that Fast Startup is disabled, as it can cause the old driver state to persist.
Can I fix code 39 without reinstalling Windows?
Yes, in almost all cases. The error is a driver issue, not a Windows issue. Reinstalling the driver or deleting leftover files usually resolves it. Reinstalling Windows is a last resort and rarely needed.
Will a system restore fix code 39?
It can, if the error was caused by a recent change like a driver update or software install. System Restore reverts the driver to a previous working version. However, it will not help if the corruption is older than your restore points.
Is code 39 on a sound driver a sign of hardware failure?
Rarely. Code 39 is almost always software-related. Hardware failure usually shows as Code 43 or the device disappearing entirely. If you have tried all software fixes and the error persists, test the audio hardware on another computer.
Do I need to uninstall the old driver before installing a new one?
Yes. Installing a new driver over an old, corrupted one often leaves the problem in place. Uninstall the device in Device Manager, check “Delete the driver software,” restart, and then install the new driver.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- OneDrive Connection Problem Windows 10: Fixes
- Android Battery Care: 12 Steps to Longer Life
- Could Not Assign Applications Error on MacBook: Fix
- Fix Slow Search on Windows 11: Top Methods
- Customize Mission Control & Desktop Spaces on Mac
- Fix Unknown USB Device? Troubleshooting Guide