We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › what is a breakpoint and how do i set one
Page Index Toggle Pages: 1
what is a breakpoint and how do i set one? (Read 852 times)
what is a breakpoint and how do i set one?
Mar 29th, 2010, 10:23pm
 
I'm having memory issues with my program. the error line is as follows:

java(3353,0xb11ba000) malloc: *** mmap(size=536875008) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

so how can i set this breakpoint in malloc_error_break??????? what does this mean?
Re: what is a breakpoint and how do i set one?
Reply #1 - Mar 30th, 2010, 2:52am
 
As I wrote earlier, it seems to be an issue with a native library, either in Java itself or in a library you use.
The advice in the message is quite useless, particularly if you don't have the source code of the native library.

To answer your question, a breakpoint is a mark one puts in the source code, in an IDE like Eclipse or NetBeans (or Visual Studio in the Windows world for C/C++ coding, or XCode in the Mac world).
When the IDE runs the code in debug mode, it makes it stop on the breakpoint, and then one can examine variable contents, step in the code, etc.
Page Index Toggle Pages: 1