
jiminaus
Apr 24, 07:51 AM
Basically you are freeing memory you did not malloc/calloc.
Actually there is a malloc, it's embedded in the memcpy.
void *pointerGivenByInstanceFunction = memcpy(malloc(byteSizeOfElement),storage+i*byteSizeOfElement,byteSizeOfElement);
EDIT: Sorry ignore that. It's the "read out values bis" loop that's the problem.
Yes it's as robbieduncan says. In your one-line version, you're losing the pointer the copy of the double on the heap. Then later you try to pass the address of the copy on the stack to free, which rightly causes a crash.
Basically you can't do this in one line. You could, though, cast directly to a double pointer and still free it, like so:
double *pointerGivenByInstanceFunction = (double *)memcpy(malloc(byteSizeOfElement),storage+i*byteSizeOfElement,byteSizeOfElement);
double returnElement = *pointerGivenByInstanceFunction;
NSLog(@"%g",returnElement);
free(pointerGivenByInstanceFunction);
Actually there is a malloc, it's embedded in the memcpy.
void *pointerGivenByInstanceFunction = memcpy(malloc(byteSizeOfElement),storage+i*byteSizeOfElement,byteSizeOfElement);
EDIT: Sorry ignore that. It's the "read out values bis" loop that's the problem.
Yes it's as robbieduncan says. In your one-line version, you're losing the pointer the copy of the double on the heap. Then later you try to pass the address of the copy on the stack to free, which rightly causes a crash.
Basically you can't do this in one line. You could, though, cast directly to a double pointer and still free it, like so:
double *pointerGivenByInstanceFunction = (double *)memcpy(malloc(byteSizeOfElement),storage+i*byteSizeOfElement,byteSizeOfElement);
double returnElement = *pointerGivenByInstanceFunction;
NSLog(@"%g",returnElement);
free(pointerGivenByInstanceFunction);

TheMacBookPro
Apr 30, 10:30 AM
I was wondering if anyone else has seen this issue while running Windows 7 from boot camp: My internal speakers don't work - but all sounds work perfectly if I plug in a pair of headphones. I've read about a lot of cases where Windows 7 still assumes a pair of headphones have been plugged in with other Macs and that 'jiggling' the headphones resolves the issue, but that's not my problem. Windows 7 reports - correctly - that headphones are NOT plugged in, yet still no sound through my speakers.
To make it even more frustrating, my speakers were working for the first few boots into Windows 7, but now I can't get a single sound. I've tried reloading all the latest bootcamp drivers, installing other sound drivers (Realtek and Cirrus) with no results. I don't boot into Win 7 often, but it would be nice to have sound. It's these kind of issues that do NOT make me miss the Win experience. :)
Anyone else with this experience? I can't find anything that reports this problem with other MBAs. I'm running a 13" ultimate, but was curious to see if any other Late 2010 MBA owners were running into the same issue.
Thanks for sharing any similar experiences!
Just fyi- never had this problem with any of my Windows based desktops/laptops and my Macs with W7 installed. It isn't a common problem with Windows.
That said- make sure you've updated to the latest version of Boot Camp, updated all the software updates available, and enabled the speakers as an output device (Control Panel\Hardware and Sound, then click Sound, then right click Speakers and click enable if it's disabled). Try the Configure option to test sound output in that menu too.
To make it even more frustrating, my speakers were working for the first few boots into Windows 7, but now I can't get a single sound. I've tried reloading all the latest bootcamp drivers, installing other sound drivers (Realtek and Cirrus) with no results. I don't boot into Win 7 often, but it would be nice to have sound. It's these kind of issues that do NOT make me miss the Win experience. :)
Anyone else with this experience? I can't find anything that reports this problem with other MBAs. I'm running a 13" ultimate, but was curious to see if any other Late 2010 MBA owners were running into the same issue.
Thanks for sharing any similar experiences!
Just fyi- never had this problem with any of my Windows based desktops/laptops and my Macs with W7 installed. It isn't a common problem with Windows.
That said- make sure you've updated to the latest version of Boot Camp, updated all the software updates available, and enabled the speakers as an output device (Control Panel\Hardware and Sound, then click Sound, then right click Speakers and click enable if it's disabled). Try the Configure option to test sound output in that menu too.

rainbowboi
Oct 23, 08:52 AM
when do you guys think people will start lining up...I'm trying to figure out when I should (if i have to) leave school to get a t-shirt!

PurrBall
Jan 20, 06:27 PM
Interesting, this only shows in Software Update and not in the Mac App Store.
more...

SideStepSociety
Apr 27, 05:38 PM
Gentle nudge + some more info.
After playing around a bit, I discovered the files are named, "MuteOnButton" and "MuteOffButton".
Still in the same folder:
"/System/Library/CoreServices/SpringBoard.app"
If anyone's able to snag these files for me from their iPad, it'd be greatly appreciated. :)
Thanks again!
After playing around a bit, I discovered the files are named, "MuteOnButton" and "MuteOffButton".
Still in the same folder:
"/System/Library/CoreServices/SpringBoard.app"
If anyone's able to snag these files for me from their iPad, it'd be greatly appreciated. :)
Thanks again!

darylsudden
Mar 18, 04:49 AM
I will most likely be in my iCaptain-cosplay... and this Allnighter really sounds inviting. Let's be the firsts in line! :cool:
more...

lynkynpark86
Feb 7, 09:03 AM
hi i have an ipod touch 4 JB on 4.1 i was just wondering that is there a way to put songs in to the ipod without connecting to itunes
and also any app for bluetooth transfer
Well, MewSeek is like limewire and, if you get the paid version, you can add songs to the ipod/music app. And Wifi sync lets you do just that, sync over wifi (but sadly not bluetooth)
and also any app for bluetooth transfer
Well, MewSeek is like limewire and, if you get the paid version, you can add songs to the ipod/music app. And Wifi sync lets you do just that, sync over wifi (but sadly not bluetooth)

ITASOR
Nov 8, 01:49 PM
To be honest, I think the only way to achieve 100% Excel compatibility is to, well, use Excel.
I mean for ordinary personal stuff I'm sure cross-compatibility will be no problem. But if you are running a business in which you are constantly sending and receiving Excel files, I'd probably just bite the bullet and continue to use Excel.
It may be somewhat easier to achieve good results with Excel than Word though, since spreadsheets typically are less focused on style and formatting.
And not only Excel, but to 100% guarantee things look the same, you need to use the PC version (if you're dealing with PC customers) and you need to make sure you use a font that they have, the same screen resolution they are running, etc.
I mean for ordinary personal stuff I'm sure cross-compatibility will be no problem. But if you are running a business in which you are constantly sending and receiving Excel files, I'd probably just bite the bullet and continue to use Excel.
It may be somewhat easier to achieve good results with Excel than Word though, since spreadsheets typically are less focused on style and formatting.
And not only Excel, but to 100% guarantee things look the same, you need to use the PC version (if you're dealing with PC customers) and you need to make sure you use a font that they have, the same screen resolution they are running, etc.
more...

TheWart
Jun 20, 07:50 PM
Hey!
Anyone planning on going to the Apple store in Reston VA this thursday? I pre-ordered my phone and plan on swinging by before work at around ~6:30.
I know some Macrumors users live in the area because when I went to go play with an iPad, I punched in www.macrumors.com and it popped up in the history lol.
Anyone planning on going to the Apple store in Reston VA this thursday? I pre-ordered my phone and plan on swinging by before work at around ~6:30.
I know some Macrumors users live in the area because when I went to go play with an iPad, I punched in www.macrumors.com and it popped up in the history lol.

roxor
Apr 4, 08:33 AM
Hi,
I know there are many threads on it. But nowhere have I been able to find a clear answer as to whether it is possible or not to perform the following:
- I have an internet box from which I get the connection to Internet
- I have a third-party (Linksys) router that does my routing and my wifi
- My home is built in a way so that I cannot get wifi everywhere (possibly because the Linksys has crappy range), though I think one extra spot would help
Can I use an Airport Express device to extend my Linksys' wifi coverage?
Many threads exist but all contradict on whether it is possible or not to extend non-Apple-based networks with an Apple device.
If not, does the following architecture work?:
- Linksys still there to be doing my wired-ethernet routing
- One Airport Express device plugged to the switch of the Linksys and that delivers wifi
- A second Airport Express plugged in another room that only extends wifi provided by the first one
If this still is not possible, what would be? By now, if you're still reading, you must have gotten a clue of what I am trying to achieve ;)
The thing I'd like to avoid is to have to replace the Linksys by the Airport Extreme that could do my wired-Ethernet routing and still have to get an express one for range extension...
Thank you.
I know there are many threads on it. But nowhere have I been able to find a clear answer as to whether it is possible or not to perform the following:
- I have an internet box from which I get the connection to Internet
- I have a third-party (Linksys) router that does my routing and my wifi
- My home is built in a way so that I cannot get wifi everywhere (possibly because the Linksys has crappy range), though I think one extra spot would help
Can I use an Airport Express device to extend my Linksys' wifi coverage?
Many threads exist but all contradict on whether it is possible or not to extend non-Apple-based networks with an Apple device.
If not, does the following architecture work?:
- Linksys still there to be doing my wired-ethernet routing
- One Airport Express device plugged to the switch of the Linksys and that delivers wifi
- A second Airport Express plugged in another room that only extends wifi provided by the first one
If this still is not possible, what would be? By now, if you're still reading, you must have gotten a clue of what I am trying to achieve ;)
The thing I'd like to avoid is to have to replace the Linksys by the Airport Extreme that could do my wired-Ethernet routing and still have to get an express one for range extension...
Thank you.
more...

FFTT
Sep 20, 07:17 AM
Student union deal ends September 24th bannered
on education store page.
Not awake. Was that there before?
on education store page.
Not awake. Was that there before?

kelving525
Sep 25, 08:46 PM
what was the app? sounds interesting.
Blackbook. lol... It gave me 20% off a retail store. :D
Blackbook. lol... It gave me 20% off a retail store. :D
more...

Jakeoster
May 6, 09:19 PM
I've heard my parents talking about getting iPhones. I guess this is all they needed to make it happen because they arnt ones to buy unlocked black-market phones.

garybUK
Feb 16, 08:56 AM
What frequency range will the xion usb turntable sample at? 44khz, try and go for 96khz to get a better de-clicking and de-popping result (though there's some debate about this). Vinyl has better results when recording at 24bit also.
The file format is kind of mute, but I always record mine in WAV to keep a master copy, then convert later using DBPowerAmp tools (on windows).
Plus Wav is supported in iTunes so you can convert using their dubious converters within iTunes itself.
Edit: I also use Audacity as it enables you to do a lot more filters without damaging the original copy.
The file format is kind of mute, but I always record mine in WAV to keep a master copy, then convert later using DBPowerAmp tools (on windows).
Plus Wav is supported in iTunes so you can convert using their dubious converters within iTunes itself.
Edit: I also use Audacity as it enables you to do a lot more filters without damaging the original copy.
more...

mrapplegate
Apr 12, 09:57 PM
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8G4 Safari/6533.18.5)
I'll glance at it when back online. Post it as a bug, the worst they can do is mark it as a duplicate.
I'll glance at it when back online. Post it as a bug, the worst they can do is mark it as a duplicate.

res1233
May 1, 02:43 AM
The iMac uses a desktop CPU while the Samsung uses a mobile CPU.
But the i7 2630qm beats the i3 2100 CPU in the iMac by a wide margin. In a passmark benchmark the is scores over 6,000 compared to the i3 which scores almost 4,000.
Here are the benchmark links:
Intel Core i7 2630QM (http://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i7-2630QM+%40+2.00GHz)
Intel Core i3 2100 (http://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i3-2100+%40+3.10GHz)
And the graphics card in the Samsung is more powerful than the ATI 6490.
So in this case the Samsung is a more powerful machine.
You can upgrade the 21.5'' to the i5 bud. Not such a huge difference. At the end of the day, the iMac's hardware is competitive, and also, notice he said the "SB iMac" whose GPU we don't really know about ATM. It's entirely possible Apple will chose a mobile i7 for the high-end 21.5'', but even if they keep the i5 as high-end, the main reason you get a mac is for Mac OS, and the majority of mac users who care about performance get a maxed out 27'' with SSDs, a maxed out boat anchor of a 17'' MBP, or a mac pro. The other offerings are not being sold to performance junkies most of the time...
But the i7 2630qm beats the i3 2100 CPU in the iMac by a wide margin. In a passmark benchmark the is scores over 6,000 compared to the i3 which scores almost 4,000.
Here are the benchmark links:
Intel Core i7 2630QM (http://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i7-2630QM+%40+2.00GHz)
Intel Core i3 2100 (http://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i3-2100+%40+3.10GHz)
And the graphics card in the Samsung is more powerful than the ATI 6490.
So in this case the Samsung is a more powerful machine.
You can upgrade the 21.5'' to the i5 bud. Not such a huge difference. At the end of the day, the iMac's hardware is competitive, and also, notice he said the "SB iMac" whose GPU we don't really know about ATM. It's entirely possible Apple will chose a mobile i7 for the high-end 21.5'', but even if they keep the i5 as high-end, the main reason you get a mac is for Mac OS, and the majority of mac users who care about performance get a maxed out 27'' with SSDs, a maxed out boat anchor of a 17'' MBP, or a mac pro. The other offerings are not being sold to performance junkies most of the time...
more...

MobiusCreative
Apr 13, 12:48 PM
I have an iPad v.1 running iOS 4.2 that won't update to iOS 4.3. Says "Your iPad software is up to date". I've got the latest iTunes (10.2.1) and I've even updated my wife's iPad just fine. Thoughts? The Googles hasn't helped.
On top of that the 4.3 IPSW is gone from the wife's install so I can't restore to that.
On top of that the 4.3 IPSW is gone from the wife's install so I can't restore to that.

stridemat
Mar 3, 08:59 AM
It only suggests unnecessary urgency and importance to the thread the poster has written.
Thanks,
.
Surely that would be !!!!!!!!!!
???????? would mean its a very big question.
Thanks,
.
Surely that would be !!!!!!!!!!
???????? would mean its a very big question.

andrewr2123
May 5, 02:49 PM
For about 2 seconds I thought they were actually phones :o
lol though!
lol though!
NavyIntel007
Jul 1, 10:47 PM
Good question...
It didn't used to do that in 10.1 and it annoys me because it's a very Windowesque feature. I think when I click shutdown, I really mean shutdown and don't need to be asked.
It didn't used to do that in 10.1 and it annoys me because it's a very Windowesque feature. I think when I click shutdown, I really mean shutdown and don't need to be asked.
ohla313
Dec 8, 10:57 PM
I don't know where to post this but was wondering if someone can direct me to the wallpaper in this photo, on the macbook pro desktop? Its the same as the one in the default iPhone wallpaper library.
Thanks!
http://farm5.static.flickr.com/4148/5075530830_7ca48e14df_b.jpg
Thanks!
http://farm5.static.flickr.com/4148/5075530830_7ca48e14df_b.jpg
TMA
Nov 4, 06:26 PM
on their way to you now!
Kwyjibo
Jul 5, 10:37 PM
I like to partition my drives....it keeps everything more organized...I uslly have 10gb for my os and apps and then all my docs and music and stuff on whatever space is left
Macabron
Sep 27, 11:14 AM
Besides what everyone else has said, you can also lower the transmission power so that it covers a small area around the express base station.
That and bieng a hidden network should work.
That and bieng a hidden network should work.
No comments:
Post a Comment