Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Identifying threads in VS .NET 2003

1 view
Skip to first unread message

lance...@yahoo.com

unread,
Dec 9, 2009, 4:21:56 AM12/9/09
to
Hi all,

I'm converting a Linux program to a Windows program using Visual
Studio .NET 2003. The code was written using pthread.

I have a "First-chance exception at 0x100084c8 in project.exe:
0xC0000005: Access violation reading location 0x000001dc" error that
is causing my program to crash, and all but one thread "has exited
with code 0 (0x0)." The one thread (0xfe4) exited with code
-1073741819 (0xc0000005). I read that if threads exited with code 0,
then everything is fine. I'm guessing the one thread that did not
caused the error, especially the same code 0xC0000005 showed up.

As there are groups of threads doing different tasks, I wish to track
down the thread that did not exit correctly, so as to debug the
program. Is there a way to identify which thread it is, like using the
(0xfe4) value?

Thank you.

Regards,
Rayne

David Schwartz

unread,
Dec 9, 2009, 8:02:53 AM12/9/09
to
On Dec 9, 1:21 am, "lancer6...@yahoo.com" <lancer6...@yahoo.com>
wrote:

> I have a "First-chance exception at 0x100084c8 in project.exe:
> 0xC0000005: Access violation reading location 0x000001dc" error that
> is causing my program to crash, and all but one thread "has exited
> with code 0 (0x0)." The one thread (0xfe4) exited with code
> -1073741819 (0xc0000005). I read that if threads exited with code 0,
> then everything is fine. I'm guessing the one thread that did not
> caused the error, especially the same code 0xC0000005 showed up.

You should be able to immediately drop into a debugger. If not, you
can attach a debugger to the process before it crashes. VS.NET
includes one.

I'd recommend ditching VS.NET 2003 and moving to 2005 ASAP.

DS

0 new messages