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

Search:

Type: Posts; User: UnderDog

Page 1 of 18 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    1
    Views
    742

    View Post

    Can you provide your file writing code?
  2. Replies
    10
    Views
    834

    Re: Application crash without error

    As a first step you should try capturing a crash dump for such 'random app crashes in production'. Dr Watson can help you get a crash dump. If you can get the crash dump, then you can at least point...
  3. Replies
    17
    Views
    1,437

    Re: How to catch if buffer memory is full

    The way a debugger may implement 'break on memory write' is as follows

    1. Set the memory protection on the (virtual memory) page of interest.
    2. Trap the interrupt that is generated.
    3. Check...
  4. Thread: Weird Problem

    by UnderDog
    Replies
    1
    Views
    628

    Re: Weird Problem

    ofstream is inside of namespace std. Use it like this


    std::ofstream f;
  5. Replies
    6
    Views
    757

    Re: What is wrong here

    I do not see anything wrong with the code. I tried on my machine and FunctionMain should be called. How did you verify that it is not called?

    On a side note, while(true) is the common paradigm for...
  6. Re: Is it possible to ensure a piece of code executed without context switch?

    One 'hack' is to raise the thread priority to Real Time for that portion of the code. But there are no gaurantees even then because

    1. There may be other (system) threads running at that priority....
  7. Replies
    10
    Views
    863

    Re: Open file wont work, it says wrong path

    The file name (with a space in it) needs to be enclosed in qoutes.
  8. Replies
    10
    Views
    991

    Re: List iteration Problem

    Is there any multithreading involved, by any chance?
  9. Re: Why the app will run slower when it occupied more memory?

    Are you making copies/multiple objects of MyDoc?
  10. Replies
    10
    Views
    991

    Re: List iteration Problem

    I do not see anything wrong with the code that you have pasted so far. You will have to send in more code to show us where that rectangle list is coming from - how it is created, how it was...
  11. Re: Terminating Worker Thread from my UI thread causing problem?

    Would "int i = 0" line execute if you write the following in any of your thread?




    ExitThread(0);
    int i = 0;
  12. Replies
    1
    Views
    842

    Re: Invalid thread handle

    CWinThread invalidates the handle when the thread ceases to exist. That would explain it.
  13. Re: Why the app will run slower when it occupied more memory?

    When you say the app runs slowly what exactly do you mean? Slowly as in running the app in one shot is slow, OR slowly as in application is used over a period of time and it runs slowly during that...
  14. Replies
    1
    Views
    572

    Re: Thread creates thread

    No issues. Infact you always create a thread from within a thread; there is no other way/place to create a thread.

    Is there a specific issue that you are expecting? Of course you will take care...
  15. Replies
    10
    Views
    991

    Re: List iteration Problem

    Paste more code to show where/how rects is coming from.
  16. Replies
    3
    Views
    667

    Re: Data type question

    You can use __int64 variables. It is NOT part of standard and is microsoft specific, but may get your job done if you are working with Visual Studio.
  17. Re: Please help me fix this conversion problem

    Try this - Delete the /Zc:wchar_t compiler option in your project settings. Then see if it compiles with original unsigned short* and if your other problems go away. Please let us know what you find...
  18. Replies
    6
    Views
    813

    Re: binary calculation overflow?

    1. You are going in a very roundabout way of doing things.
    2. Your code works because you have ** force ** treated your integer variable as a literal binary representation of your input (which it...
  19. Replies
    6
    Views
    813

    Re: binary calculation overflow?

    The exercise exists because they want you to read up a binary (string) and convert it into a Decimal (number).

    e.g. read this 011 as string, interpret it as binary, and transform it into decimal...
  20. Re: How Do I send Parameters to a Thread in Motion?

    You can pass data by passing in pointers to lists or Qs and then can implement your own synchronization mechanisms. That is what I also said as one of the mechanisms. But why would you want to go to...
  21. Re: How Do I send Parameters to a Thread in Motion?

    Any type of producer/consumer problem can be neatly solved by using thread messages. Just passing the this pointer works only in cases where the worker thread just munges on some data from the class...
  22. Replies
    7
    Views
    1,006

    Re: Problem with std::map find using MSVC 6.0

    You do not need to make it a friend. That sort of does not even make sense. If a function is part of a class, it is part of the class. It is more than a friend. Real life analogy - if you are part of...
  23. Replies
    7
    Views
    1,006

    Re: Problem with std::map find using MSVC 6.0

    You do not necessarily need to make the operator as friend. You need to make it a friend only if both of the following cases are true

    1. Your operator (function) is not part of your class.
    2....
  24. Re: How Do I send Parameters to a Thread in Motion?

    Passing the this pointer works in some cases.

    For other cases, the easiest, and most straightforward way is to use thread messsage Qs and send windows messages to your worker thread. Remember to...
  25. Re: What is the difference between CreateThread and beginThreadex

    Jeffery Richter book - 'Programming Applications for Microsoft Windows' has a whole page dedicated to this. It is a good read. Basically, the reasons are same as the ones pointed to by kirants.
    ...
Results 1 to 25 of 432
Page 1 of 18 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center