Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Exception "A breakpoint has been reached"

843829Feb 16 2004 — edited Feb 16 2004

Finally I managed to create a shared dll.
My C program works fine, but if I want to start it from Java, I get the following error message:
"The exception Breakpoint
A breakpoint ahs been reached
(0x80000003) occured in the application at location 0x02c9d330."

Because I have MS VisualC++ installed I can choose to debug the program. By doing so, I end up in a file called dbgheap.c

The comment header says:
/***
* dbgheap.c - Debug CRT Heap Functions
*
* Copyright (c) 1988-1997, Microsoft Corporation. All rights reserved.
*
*Purpose:
* Defines debug versions of heap functions.
*
*******************************************************************************/

The critical line is:

/* break into debugger at specific memory allocation */
if (lRequest == _crtBreakAlloc)
_CrtDbgBreak();

Most likely this corresponds to the following line in my actual c program:

po = (Parse_Options) xalloc(sizeof(struct Parse_Options_s));

Does somebody know what's going on here? That's a bit strange isn't it? Some Microsoft program starts the debugger if I try to allocate memory!?!?!

Any Help is highly appreciated!
Carl




Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 15 2004
Added on Feb 16 2004
1 comment
468 views