Problems with threads after dlls are loaded

Updated on technology 2024-03-28
9 answers
  1. Anonymous users2024-02-07

    2. Open the toolbox and find "Computer Clinic".

  2. Anonymous users2024-02-06

    DLL files, etc. are missing, corrupted, and some applications, including games, cannot be launched.

    The workarounds are:

    1. Use the windows system disk function to repair files;

    2. If there has been a one-click backup before this, it can be restored again;

    4. Due to the incompatibility of system files from the Internet, the system files may be incompatible because the system file version does not match the operating system, and it is best to use a professional tool to repair the system files with one click.

  3. Anonymous users2024-02-05

    Uh, I don't know. If it is a window loaded inside the dll, it seems to be written under the starter subroutine to load (), I hope not to start the thread, the thread sometimes crashes, and it is very slow, but it can effectively prevent the program from freezing death; If the window is to be called externally, create a new subroutine to disable the window. Please understand that there is any error in this method.

  4. Anonymous users2024-02-04

    It cannot be said that none of the functions in the DLL can be called in parallel. But if the dll itself uses global variables and is not synchronized, it definitely won't work, and this is the case with your dll.

    Then you need to synchronize yourself, i.e. make sure that there is always only one thread calling:

    object lockobj = new object();i) =>

  5. Anonymous users2024-02-03

    The reason for this involves the DLL loading and running mechanism, and there are two main points:

    1) The DLL dynamic link library cannot be run independently, and can only be used after it is loaded into the process space by an application process. The process that loads the DLLs is called the host process. The loaded DLLs belong to the host process, not to a thread in the host process.

    2) The host process can be called repeatedly, or even load the dll repeatedly. The first call to the dll or the first load of the dll, the host process introduces the dll into the process space. Once the host process successfully loads the DLL, subsequent repeated calls or repeated loads will only increase the "reference count" and will not load multiple DLLs, so there will only be one DLL in the process.

  6. Anonymous users2024-02-02

    c itself can support threads, so why bother to call dll to create threads.

    I have the impression that Microsoft said not to create threads in dllmain, otherwise it will die miserably. MSDN

    However, it should be possible to create threads in the export function. It should be your ** writing is wrong, but there is no need to go far.

  7. Anonymous users2024-02-01

    It should be the implementation of your A function written in the header file. A calls Thread Create, but the implementation of Thread Create does not export from the dll, so this error occurs.

    Solution: Write the implementation of the A function to a file, and only one declaration in the header file is enough. Remember to export the a function...

    thread create does not need to be exported. One rule: as long as your client (i.e. the program calling the dll) can see thread create, there will definitely be a problem.

    You just need to put the A function in the C file of DLL**, and leave only a declaration in the header file, so that the client will not see Thread Create, and there will be no error just now.

  8. Anonymous users2024-01-31

    Nothing, equivalent to calling a function,

  9. Anonymous users2024-01-30

    dll process. Are you sure you read Win Core Programming?

Related questions
13 answers2024-03-28

The solution is as follows:

1. Run "msconfig" and remove the hooks in front of the relevant items in the startup items! >>>More

10 answers2024-03-28

Good horses don't eat back grass, think about it yourself, she may have someone.

2 answers2024-03-28

"Braveheart".The end isHuo XiaolinIn the end, he died, and he died on the battlefield. When people found Huo Xiaolin, he had already been beheaded by the Japanese invaders. Rehe War of Resistance. >>>More

16 answers2024-03-28

Like the flowers in the room, they can't withstand the ravages of society. The traditional test model focuses on language writing and expression skills, which is more suitable for the intellectual characteristics of girls, so boys have always grown up in a relatively disadvantaged environment during their student life, which will also have an impact on their character formation. "Experts say that the current education system and environment cultivate obedient children, emphasizing discipline and uniformity, and the flamboyant personality of men is worn out. >>>More

7 answers2024-03-28

If the equity is frozen, its shareholder qualifications and shareholder rights still exist, but the right to dispose of the frozen equity is restricted. Therefore, the company can introduce new shareholders by increasing capital and shares.