473,379 Members | 1,511 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Thread deadlock inside CString::AllocBuffer and sudden crashes


Jochen Kalmbach [MVP] wrote:
*Hallo rajayan!
Now that we are towards the fag end of the project, we are getting
occasiona
lly hit by sudden crashes where our top level exception handler is
not
even
able to come into play and create the required .dmp file. We also
are
seeing
deadlock cases like the link I have mentioned above.

Any chance you are using Terminate-/Suspend-/ResumeThread?

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/ *

Thank you for your reply. Yes we do. Could you please elaborate. Are
you referring to the CString::AllocBuffer related hangs or sudden
crashes

--
rajayan
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

May 1 '07 #1
1 2492
Hi rajayan!
>>Any chance you are using Terminate-/Suspend-/ResumeThread?

Thank you for your reply. Yes we do. Could you please elaborate. Are
you referring to the CString::AllocBuffer related hangs or sudden
crashes
Never ever call Terminate/SuspendThread!!!
Redesign your app!

See: Why you should never call Suspend/TerminateThread (Part I-III)
http://blog.kalmbachnet.de/?postid=6
http://blog.kalmbachnet.de/?postid=16
http://blog.kalmbachnet.de/?postid=17

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
May 1 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Robert Wille | last post by:
I have an application that uses Postgres 7.2.3. It appears to deadlock fromtime to time. I'm not absolutely sure that it deadlocks, but I'm pretty sure because all of a sudden all my updates block,...
5
by: Victor | last post by:
Hi everybody! VS.NET 2003 C++ MFC-SDI-Standard project. I would like to show some current info in the status bar of the SDI-Window. As long as I use the following code CStatusBar* pStatus...
11
by: seattleboatguy | last post by:
I am trying to send a message from a visual c++ user-thread to the main window, so the main window can update text on the window to reflect what the user-thread is doing. I have tried 2 different...
6
by: Extremest | last post by:
I am new to threading and trying to figure some things out. Are all variables in a thread set to only that thread? Meaning if I create 2 instances of a class and then put each one in a different...
6
by: robert | last post by:
I get python crashes and (in better cases) strange Python exceptions when (in most cases) importing and using cookielib lazy on demand in a thread. It is mainly with cookielib, but remember the...
0
by: rajayan | last post by:
Jochen Kalmbach wrote: Thank you for your reply. Yes we do. Could you please elaborate. Are you referring to the CString::AllocBuffer related hangs or sudden crashes --
9
by: cgwalters | last post by:
Hi, I've recently been working on an application which does quite a bit of searching through large data structures and string matching, and I was thinking that it would help to put some of this...
4
by: Jack | last post by:
Hi, In multi-thread programming, if I using smart pointers to store pointers to the same dynamically allocated objects, can memory leak be avoided? For example, two threads share the same...
1
by: [david] | last post by:
What am I doing wrong? I'm trying to capture stdErr in a multi-threaded program. This code crashes wxPython with /Py Assertion Error: C++ assertion "m_count=-1 || m_count=-2" failed/ What I'm...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.