Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Windows-CPP-und-C ► ««« »»»

Fix VC6 Debugging Hangs with the latest DM.dll and TLLOC.dll!


My VC6-debugged program cannot be terminated – neither with Task Manager. Fixing it with other tools like ProcessKO  by replacing DM.dll and TLLOC.dll with the latest versions resolves the problem!






1. Download the fix
2. My VC6-debugged program cannot be terminated – neither with Task Manager nor with ProcessKO. What to do?
3. Why does `TerminateProcess` fail with debugged processes?
4. Can ProcessKO still terminate debugged VC6 processes?
5. Security note
6. Conclusion








1.) Download the fix




📦 Download:  >> Last_DM.dll_and_TLLOC.dll.zip

Password: `vc6` (due to virus scanners)

Included files:

fileIncorrect versionCorrect version
DM.dll 6.0.8168.0 6.0.9782.0
TLLOC.dll 6.0.8168.0 6.00.8168.292








2.) My VC6-debugged program cannot be terminated – neither with Task Manager nor with ProcessKO. What should I do?




problem


After ending a debugging session with `Shift+F5`, the process sometimes remains as a "ghost" in the Task Manager. Even `taskkill /F` and external tools like ProcessKO are ineffective – access is denied.

Caused


A version conflict between two DLLs in your Virtual Console 6 installation after Service Pack 6:


| `DM.dll` | 6.0.8168.0 | 6.0.9782.0 |
| `TLLOC.dll` | 6.0.8168.0 | 6.00.8168.292 |

The `DM.dll` was updated by SP6, the `TLLOC.dll` remained at the old version. This incompatibility leads to the described behavior on modern Windows versions (7/10/11).

Solution


Replace the two files in the directory:
C: \ Program Files ( x86 )\ Microsoft Visual Studio \ Common \ MSDev98 \ Bin \

installation


1. Close VC6 completely.
2. Navigate to the `Bin` folder (see path above).
3. Create a backup of the old files (e.g., rename them to `DM.dll.old` and `TLLOC.dll.old`).
4. Extract the ZIP file with the password `vc6`.
5. Copy the two DLLs into the `Bin` folder (overwriting the existing files).
6. Restart VC6.

After the replacement, `Shift+F5` should work properly again – no more ghost processes.







3.) Why does `TerminateProcess` fail on debugged processes?




Technical background


Windows distinguishes between two process states:


- Exiting – The process has called `ExitProcess` and is in the normal termination process.

- Terminating – The process is terminated externally with `TerminateProcess`.

A debugged process terminated with `Shift+F5` enters the "exiting" state. In this state, the system denies any external intervention – even with administrator privileges. `TerminateProcess` then fails with `ERROR_ACCESS_DENIED` (5).

consequence


No external tool (Task Manager, Process KO, `taskkill /F`) can terminate a process in the "exiting" state. The only solution is the DLL fix described above.







4.) Can ProcessKO still terminate debugged VC6 processes?




Short answer


No. ProcessKO uses `TerminateProcess` just like all other tools. If Windows classifies the process as "exiting", it denies all access.

What ProcessKO can do instead


ProcessKO can reliably terminate undebugged processes and is particularly useful for:


- Hanging applications without a debugger

- Processes with blocked windows

- Batch termination of multiple processes

Workaround for VC6 debugging processes (if download is not possible)


Always let the program finish running normally (e.g., via a custom "Exit" button with `::ExitProcess(0)`), instead of pressing `Shift+F5`. This completely bypasses the faulty mechanism.







5.) Safety Notice





- The DLLs are original Microsoft files, only password-protected due to virus scanners

. - After copying, check the digital signature (right-click → Properties → Digital Signatures → Microsoft Corporation).







6.) Conclusion




situationRecommendation
VC6 main development Replace the DLLs (one-time only) – then everything will run smoothly.
Occasional VC6 debugging Workaround: Custom exit button with ::ExitProcess(0)
Terminate processes (not debugged) Use ProcessKO – reliable and easy
















FAQ 51: Updated on: 15 April 2026 15:38 Windows
Windows-CPP-und-C

Why is compiling GLSL in the browser slower than C++ apps?


Compiling GLSL OpenGL Shading Language in a WebGL context is generally slower than in a C++ application, even though the compiler on the GPU is actually
Windows-CPP-und-C

How can I query whether my x86 application is currently running on x64?


IsWow64Process abfrage unter x64 MS OS nach ob die exe im WOW64 Modus arbeitet   1. Query whether the x86 application runs under x64 2. Advantages
Windows-CPP-und-C

How can I query whether a path is a folder or directory?


Querying whether a path is a folder or directory is quite simple in C ++  BOOL IsThePathFolderLPCTSTR pfad { ifpfadreturn FALSE; DWORD dwAttr = GetFileAttributespfad;
Windows-CPP-und-C

Trim string in cpp?


With your own trim string in cpp, simply shorten the strings individually ////////////////////////////////////////////////// ////////////////////// // //
Windows-CPP-und-C

Was with error code -1073741701 (0xc000007b)!


The solution is very simple to fix the error code: "was ended with code -1073741701 0xc000007b error message" Mostly there are errors in the * .manifest
Windows-CPP-und-C

RGB Pixel to Negative!


Here is the solution to make an RGB pixel a negative RGB PIXEL BYTE R = 255-R;  BYTE G = 255-G;  BYTE B = 255-B;    Or with gray scaling:    BYTE gray_value
Windows-CPP-und-C

ListView_GetItemImage, ListView_GetISubtemImage!


The solution is very simple to find out in ListView Get Item Image and List View GetI Subtem Image ////////////////////////////////////////////////// //////////////////////

»»

  My question is not there in the FAQ
Asked questions on this answer:
Keywords: windows, debugging, hangs, with, latest, tlloc, vc6-debugged, program, cannot, terminated, neither, task, manager, fixing, other, tools, like, processko, replacing, Questions, Answers, Software




  

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks
  + Security

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + RAMagic
  + DesktopDigitalClock
  + Find Same Images
  + Print Folder Tree


  + Freeware
  + Q-Dir
  + DirPrintOK
  + FontViewOK
  + WinScan2PDF
  + TheAeroClock
  + MeinPlatz
  + WinBin2Iso
  + DesktopOK
  + RAMagic
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Settings | Windows 10 | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2026 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu
32.95 msec.


>> ☕ Buy SoftwareOK a Coffee ☕ <<



► NewFileTime Video! ◄
► Effective unlocking of gapped files under Windows 10, 8.1, ...! ◄
► Find Character Map in Windows 11? ◄
► Dock the window in the screen area under Windows 11! ◄


This website does not store personal data. However, third-party providers are used to display ads,
which are managed by Google and comply with the IAB Transparency and Consent Framework (IAB-TCF).
The CMP ID is 300 and can be individually customized at the bottom of the page.
more Infos & Privacy Policy

....