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

Search:

Type: Posts; User: wlof

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    983

    Re: Out of virtual memory?

    I just tried it, it seems to work fine and it makes the code simpler and more elegant. Thanks for the suggestion!
  2. Replies
    6
    Views
    983

    Re: Out of virtual memory?

    I figured out what was wrong.

    Many of the temporary threads I mentioned in the first post need to be destroyed prematurely (i.e. while they're still blocked in the Sleep() function and before they...
  3. Replies
    6
    Views
    983

    Re: Out of virtual memory?

    Thanks for your reply.


    I think so, but it's hard to be sure. Is there a function like GlobalMemoryStatus(), or some external utility, that could help me track the number of opened HANDLE...
  4. Replies
    6
    Views
    983

    [SOLVED] Out of virtual memory?

    Hello everyone,

    I have a problem with an application. It establishes a bunch (between 5 and 100) of client connections, plus 2 server connections, to other applications and sends, receives and...
  5. Thread: Partial crash

    by wlof
    Replies
    2
    Views
    372

    Re: Partial crash

    Thanks, but that doesn't seem to be it. There are a few, very localized try/catch statements, but they are unrelated to the crashes. Besides, if the error is caught, there should not be a crash at...
  6. Thread: Partial crash

    by wlof
    Replies
    2
    Views
    372

    Partial crash

    Hi everyone,

    I'm working on a fairly complex legacy application, which uses several threads to do its job.

    When it crashes (for instance when it tries to access a deleted object, or stuff like...
  7. Re: How to compile one project in Release in a Debug solution

    Actually, I just added libcmt.lib to the ignored libraries in the linker input, and it works like a charm. Thanks anyway!
  8. [SOLVED] How to compile one project in Release in a Debug solution

    Hello all,

    My solution is made up of several different projects. I want to be able to compile one of these projects in Release all the time, even if the global configuration and all the other...
  9. Thread: False memory leak

    by wlof
    Replies
    9
    Views
    761

    Re: False memory leak

    Thank you for the link. I was able to correct those false positives by moving the destructor of my static object in a new method, and calling this method from the destructor and also manually from my...
  10. Thread: False memory leak

    by wlof
    Replies
    9
    Views
    761

    Re: False memory leak

    Actually, I searched a little more and just found a page that says it might be because the object where the false memory leaks happen is static. Is there anything that can be done?
  11. Thread: False memory leak

    by wlof
    Replies
    9
    Views
    761

    [SOLVED] False memory leak

    Hello all,

    In order to track and correct memory leaks in my program, I've been using the crtdbg.h tools with the _CRTDBG_MAP_ALLOC symbol defined.

    I was able to correct every memory leak. My...
  12. Replies
    8
    Views
    931

    Re: Modal dialog and messages

    Well, I managed to solve my bug in a simpler way. The exact problem was that the main window can receive messages from other threads that triggers graphical changes, but the graphical elements might...
  13. Replies
    8
    Views
    931

    Re: Modal dialog and messages

    Yep. From what I can tell, it changes nothing.
  14. Replies
    8
    Views
    931

    Re: Modal dialog and messages

    Thanks to you both.

    HoM: Thanks, but the problem isn't whether the call is blocking or not. The PostMessage() is actually the last step of an initialization thread, which terminates itself right...
  15. Replies
    8
    Views
    931

    Modal dialog and messages

    'lo everybody.

    I'm working on this very complex software, and there is this small bug I don't know how to get rid of. Perhaps some of you might be able to help.

    Here is what happens : a...
  16. Replies
    6
    Views
    771

    Re: Memory leak problem

    Of course. Have a look:

    Detected memory leaks!
    Dumping objects ->
    {103801} normal block at 0x06A6D978, 48 bytes long.
    Data: < e o A ?> D0 65 03 10 CD CD CD CD F1 0C 6F CB 41 86 E8 3F ...
  17. Replies
    6
    Views
    771

    Memory leak problem

    Hello all,

    My application produces plenty of memory leaks, and I'm unsure of how to track them down.

    This app uses several different DLLs, the DLL projects and the app project are all in the...
  18. Replies
    0
    Views
    542

    DirectShow / Writing a codec (?)

    Hello all,

    Let me state my problem: we have proprietary media files (based on a variation of MPEG) and a library which does the decoding. Currently, it is implemented this way: an ActiveX control...
  19. Replies
    4
    Views
    1,538

    Re: COleVariant and strings

    I fixed it. That was actually an unrelated bug, nothing to do with heap or stack.


    I've added a delete [] pBuf instruction to fix the leak, but I'll switch to CString anyway.


    I didn't wonder...
  20. Replies
    4
    Views
    1,538

    Re: COleVariant and strings

    Out of habit, I guess. I usually use pointers. I tried changing it to use the stack, but this produces an error box at runtime which simply says "Incorrect variable type." :/


    CFile::Read()...
  21. Replies
    4
    Views
    1,538

    [RESOLVED] COleVariant and strings

    Hello,

    I have a class which encapsulates a COleVariant. Here's a brief outlook of the class:


    CEncaps::CEncaps() :
    m_pVariant(new COleVariant())
    {
    }
  22. Replies
    5
    Views
    629

    Re: Mouse messages work fine, keybord don't ?

    Alright, problem solved! Thanks a lot VictorN!



    BOOL CMyView::PreTranslateMessage(MSG* pMsg)
    {
    UINT msg = pMsg->message;
    if (msg == WM_CHAR)
    {
    UINT nChar = pMsg->wParam;
  23. Replies
    5
    Views
    629

    Re: Mouse messages work fine, keybord don't ?

    I'll try that. Thanks a lot!
  24. Replies
    5
    Views
    629

    Re: Mouse messages work fine, keybord don't ?

    Sorry, I guess I was a bit vague.

    My view (let's call it CMyView) is derived from CFormView. The handlers are defined as usual, i.e. "afx_msg void OnChar(params);" in the header, "ON_WM_CHAR()" in...
  25. Replies
    5
    Views
    629

    Mouse messages work fine, keybord don't ?

    'lo all,

    I have a view with a few OnMouseWhatever() handlers set up, all of these work fine. But keyboard handlers (OnChar(), OnKeyDown()...) don't seem to work ! It seems like the handler...
Results 1 to 25 of 55
Page 1 of 3 1 2 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center