Solved

qr_draw_png.mm file gives EXE_bad access error

Posted on 2013-05-14
1
439 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 27

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I recently went through the process of creating an installable image of an iPhone mobile app (an .ipa file) that beta testers could load onto their test devices. The process involved quite a few steps, but both Appcelerator and Diawi.org had decent …
The release of the iPhone 6 and the iPhone 6 Plus was extremely successful for Apple. However when iOS 8.1 was introduced, many iPhone users complained of quick battery drainage. Without even knowing, you may be unnecessarily using up your battery p…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
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.

758 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

22 Experts available now in Live!

Get 1:1 Help Now