Solved

qr_draw_png.mm file gives EXE_bad access error

Posted on 2013-05-14
1
441 Views
Last Modified: 2013-06-28
-I have problem while creating qrcode  image from my data.
-I have application to read and write qrcode of data. When i am entering data to my application it will generate qrcode.
-while creating qrcode image some times it crash application and gives Thread 1:
-EXC_BAD_ACCESS on the following code.
Code.txt
0
Comment
Question by:rigelnet
1 Comment
 
LVL 28

Accepted Solution

by:
serialband earned 500 total points
ID: 39191376
I found this

http://stackoverflow.com/questions/3332621/exc-bad-access-while-calling-malloc-function
Which points to this
http://developer.apple.com/mac/library/qa/qa2004/qa1367.html

This kind of problem is usually the result of over-releasing an object. It can be very confusing, since the failure tends to occur well after the mistake is made. The crash can also occur while the program is deep in framework code, often with none of your own code visible in the stack.

Memory management is tricky.  I assume this is just a fragment of your code and you're calling malloc and free elsewhere and that's causing a problem when you reach this point.  You may have released a pointer when it pointed to a different location in memory, or didn't allocate the correct amount in another part of your program.  I remember spending hours on debugging malloc & free.  Even well seasoned programmers will mess inadvertently mess this up.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article I'm going to cover the basics and usages of NSInvocation. What is NSInvocation? Apple Developer Reference describes NSInvocation this way: An NSInvocation is an Objective-C message rendered static, that is, it is an action tur…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now