April 17th, 2012 06:17 AM
When an application make multiple calls at once using a callback or delay, the engine will crash.
With appartment threading, global variables for flags do not work between different simultaneous...
April 15th, 2012 11:22 AM
April 15th, 2012 08:01 AM
My real code is around 100000 lines and not easy to show.
If I understand the threading model correct then Visual Basic is going around the mutex because each call is made to a different copy of the...
April 13th, 2012 05:21 PM
ok, thanks for your time anyway.
April 13th, 2012 05:11 PM
Multiple threads does not work either when I call my C++ component from Visual Basic 6. If Visual Basic make all calls from the same thread then this type of mutex is useless.
April 13th, 2012 04:35 PM
Why does this code not deadlock when entering the same critical section 2 times in a row?
#define _WIN32_WINNT 0x0403
February 25th, 2011 11:03 AM
Checking for return values all the time makes the engine less user friendly and I can't have multiple return values. I have a delayed message system that puts a message in a queue when an error...
February 25th, 2011 06:16 AM
Yes, that is what I try to protect it from because my engine should be foolproof for beginners.
February 25th, 2011 04:06 AM
Yes, they share absolutely nothing like a regular ActiveX component.
February 24th, 2011 04:34 PM
The engine is created when the control is created but a starting call is needed before the engine is running and accepting input.
February 24th, 2011 04:09 PM
Multiple instances of the engine do work 100% of the time as long as the user don't make 2 calls to the same instance. I use ActiveX with no data outside of the class since sharing data between them...
February 24th, 2011 02:50 PM
I have done that and it is safe when the instances don't have any memory in common. The problem with thread safety occur when the user make two calls to the same instance.
February 24th, 2011 02:33 PM
I need multiple instances of the engine.
February 24th, 2011 02:08 PM
Yes, I wrote that in the first post.
February 24th, 2011 02:05 PM
With shared data, I mean outside of the called function and not global memory.
February 24th, 2011 02:00 PM
I don't need synchronization between different class instances because I can run 2 instances of the engine at the same time without collisions.
February 24th, 2011 10:58 AM
They are declared in the first post.
February 24th, 2011 03:51 AM
I use the macros START_CALL and END_CALL in each area that reads or writes using the engine's shared data but the last time I tried, more than 10 threads was in the critical section at once and...
February 22nd, 2011 11:04 AM
I use the whole engine as a resource so that the caller should only be allowed to use one method at a time. My new error message system makes it safe to call from VB6 but a multicore application...
February 11th, 2011 02:59 PM
It seems to be better to just put all error messages in a queue and wait for the calling application to read them.
February 11th, 2011 07:17 AM
The matrices in the graphics hardware is a transpose to the matrices in DirectX math. Whenever you give a matrix to a constant buffer, use the transpose of the matrix.
February 11th, 2011 07:06 AM
I have to make thread safety for my MFC ActiveX graphics engine because Windows 7 allow an application to run with a messagebox waiting for the user and even allowing the messagebox to be in the...
January 11th, 2011 07:10 AM
January 10th, 2011 07:59 AM
The best thing would be to move the application to a component project that can be called from a higher language. If you use .NET then this should be quite safe and easy but ActiveX with ATL is to...
January 10th, 2011 02:48 AM
I use shader model 4 with DirectX 11 and VC++ 2005. I have no controll of the sampler states in my graphics engine. I even tried setting them direcly in HLSL but that only changed how the bug...