03-16-2022, 12:45 AM
(This post was last modified: 03-16-2022, 12:46 AM by Alexandre Machado.)
First things first:
AllocateHWnd is not thread-safe. This has been known for a long time now. Your code the way it is shouldn't be running at all inside a multi-threaded server.
IntraWeb doesn't call/use AllocateHWnd like that. Instead it uses a patched version of MakeObjectInstance() which is thread-safe.
I suggest that you attach your sample project (zip file containing the whole source code) to this thread and I can take a look. However, as mentioned above, this code of yours the way it is can only be used for testing purposes, otherwise it will definitely crash your server.
AllocateHWnd is not thread-safe. This has been known for a long time now. Your code the way it is shouldn't be running at all inside a multi-threaded server.
IntraWeb doesn't call/use AllocateHWnd like that. Instead it uses a patched version of MakeObjectInstance() which is thread-safe.
I suggest that you attach your sample project (zip file containing the whole source code) to this thread and I can take a look. However, as mentioned above, this code of yours the way it is can only be used for testing purposes, otherwise it will definitely crash your server.

