Search:
Type: Posts; User: wlof
Search:
Search took 0.03 seconds.
-
August 23rd, 2010, 08:14 AM
I just tried it, it seems to work fine and it makes the code simpler and more elegant. Thanks for the suggestion!
-
August 20th, 2010, 04:27 AM
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...
-
August 18th, 2010, 10:16 AM
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...
-
August 18th, 2010, 09:34 AM
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...
-
September 1st, 2009, 07:38 AM
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...
-
September 1st, 2009, 05:37 AM
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...
-
August 25th, 2009, 04:59 AM
Actually, I just added libcmt.lib to the ignored libraries in the linker input, and it works like a charm. Thanks anyway!
-
August 24th, 2009, 11:59 AM
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...
-
October 24th, 2008, 11:51 AM
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...
-
October 24th, 2008, 11:32 AM
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?
-
October 24th, 2008, 11:22 AM
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...
-
June 24th, 2008, 08:25 AM
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...
-
June 24th, 2008, 08:03 AM
Yep. From what I can tell, it changes nothing.
-
June 24th, 2008, 07:50 AM
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...
-
June 24th, 2008, 05:49 AM
'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...
-
October 2nd, 2007, 09:34 AM
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 ...
-
October 2nd, 2007, 08:18 AM
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...
-
September 6th, 2007, 08:56 AM
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...
-
July 27th, 2007, 07:37 AM
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...
-
July 27th, 2007, 04:10 AM
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()...
-
July 26th, 2007, 11:05 AM
Hello,
I have a class which encapsulates a COleVariant. Here's a brief outlook of the class:
CEncaps::CEncaps() :
m_pVariant(new COleVariant())
{
}
-
July 23rd, 2007, 10:22 AM
Alright, problem solved! Thanks a lot VictorN!
BOOL CMyView::PreTranslateMessage(MSG* pMsg)
{
UINT msg = pMsg->message;
if (msg == WM_CHAR)
{
UINT nChar = pMsg->wParam;
-
July 23rd, 2007, 09:48 AM
I'll try that. Thanks a lot!
-
July 23rd, 2007, 09:26 AM
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...
-
July 23rd, 2007, 08:17 AM
'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...
|
Click Here to Expand Forum to Full Width
|