1
Answer

How do you kill a thread aside from abort()?

Photo of mdlardizabal

mdlardizabal

21y
4.3k
1
Hi, As the subject states, how can I kill a thread aside from abort()? I'm asking this question because it appears that abort method does not complete a task before it "aborts" the current thread, so I end up doing some cleaning up of my own, making extra lines of code. Or am I missing something? I am sorry if its odd but I believe that the less number of lines I code the less bugs I need to fix. Hanggang sa muli, Tikbalang

Answers (1)

0
Photo of Vulpes
NA 98.3k 1.5m 13y
None of those functions are anything to do with ASP.NET as such though they can be called from it (using the Platform Invoke mechanism in the case of the first two).

Briefly:

* LoadLibrary is an unmanaged function which loads a dll into a process's address space.

* CoCreateInstance is an unmanaged funmction which creates a COM object using its Class Id (CLSID).

* CreateObject is a VB library function which creates a COM object using its Program Id (ProgID).

* Assembly.Load is a .NET method which loads an assembly at runtime.