Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / April 2007

Tip: Looking for answers? Try searching our database.

Thread deadlock inside CString::AllocBuffer and sudden crashes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rajayan - 27 Apr 2007 16:53 GMT
Am facing a issue similar to what we have under
[url]http://www.codecomments.com/archiv[/url]<...-11-706874.html

I work for a imaging system software and modules are a mixture of pure
ATL d
ll, "ATL using MFC" components, COM EXE servers, regular MFC dll, MFC
EXE an
d extension MFC dlls.

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.

One interesting thing I found yesterday is the following

We have a MFC document view architecture based EXE component. This in
turn h
as couple of "ATL using MFC" components. These ATL components in turn
makes
call to a MFC extension dll.

I realized that we are not following all the rules as described under
[url]http://support.microsoft.com/kb/q173974/.[/url] For our "ATL using
MFC" components
Basically none of our COM interface methods and COM eventsink methods
are
using the AFX_MANAGE_STATE at all. Both COM interface methods and the
events
ink methods in turn uses MFC.

I would like to know how serious could this issue be. Could this lead
to issues as desc
ribed under
[url]http://www.codecomments.com/archive...11-706874.html.[/url]
Jochen Kalmbach [MVP] - 28 Apr 2007 10:11 GMT
Hallo rajayan!

> Now that we are towards the fag end of the project, we are getting
> occasiona
[quoted text clipped - 3 lines]
> seeing
> deadlock cases like the link I have mentioned above.

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

Signature

Greetings
  Jochen

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


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.