Solved

qr_draw_png.mm file gives EXE_bad access error

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

There is a security feature on iOS devices that is nearly impenetrable when it has been activated.  This article will provide some possible solutions as well as necessary steps to take to ensure you do not end up with a locked device.
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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.

770 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