Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Dawoodoz

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    1,143

    Re: Mutex never works

    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...
  2. Replies
    12
    Views
    1,143

    Re: Mutex never works

    That might solve it.
  3. Replies
    12
    Views
    1,143

    Re: Mutex never works

    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...
  4. Replies
    12
    Views
    1,143

    Re: Mutex never works

    ok, thanks for your time anyway.
  5. Replies
    12
    Views
    1,143

    Re: Mutex never works

    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.
  6. Replies
    12
    Views
    1,143

    Mutex never works

    Why does this code not deadlock when entering the same critical section 2 times in a row?



    #define _WIN32_WINNT 0x0403
    #include <Windows.h>
    #include <stdio.h>
    #include <tchar.h>
    ...
  7. Re: Enforcing single thread in MFC ActiveX using Mutex

    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...
  8. Re: Enforcing single thread in MFC ActiveX using Mutex

    Yes, that is what I try to protect it from because my engine should be foolproof for beginners.
  9. Re: Enforcing single thread in MFC ActiveX using Mutex

    Yes, they share absolutely nothing like a regular ActiveX component.
  10. Re: Enforcing single thread in MFC ActiveX using Mutex

    The engine is created when the control is created but a starting call is needed before the engine is running and accepting input.
  11. Re: Enforcing single thread in MFC ActiveX using Mutex

    Multiple instances of the engine do work 100&#37; 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...
  12. Re: Enforcing single thread in MFC ActiveX using Mutex

    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.
  13. Re: Enforcing single thread in MFC ActiveX using Mutex

    I need multiple instances of the engine.
  14. Re: Enforcing single thread in MFC ActiveX using Mutex

    Yes, I wrote that in the first post.
  15. Re: Enforcing single thread in MFC ActiveX using Mutex

    With shared data, I mean outside of the called function and not global memory.
  16. Re: Enforcing single thread in MFC ActiveX using Mutex

    I don't need synchronization between different class instances because I can run 2 instances of the engine at the same time without collisions.
  17. Re: Enforcing single thread in MFC ActiveX using Mutex

    They are declared in the first post.
  18. Re: Enforcing single thread in MFC ActiveX using Mutex

    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...
  19. Re: Enforcing single thread in MFC ActiveX using Mutex

    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...
  20. Re: Enforcing single thread in MFC ActiveX using Mutex

    It seems to be better to just put all error messages in a queue and wait for the calling application to read them.
  21. Replies
    1
    Views
    2,273

    Re: D3D9 Matrices + HLSL

    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.
  22. Enforcing single thread in MFC ActiveX using Mutex

    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...
  23. Re: [RESOLVED] Issue with sampler states in HLSL.

    http://forums.create.msdn.com/forums/p/72080/440124.aspx#440124
  24. Replies
    3
    Views
    2,521

    Re: putting a GUI wrapper around console app

    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...
  25. [RESOLVED] Issue with sampler states in HLSL.

    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...
Results 1 to 25 of 89
Page 1 of 4 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center