MrFusion
Apr 24, 07:21 AM
I recently realized the existence of void pointers. These are quite useful if the primitive type for a data storage class is not known. Though, I have a question as to whether I am using them correctly.
My storage class will allocate memory and keep track of the byte size of the individual pieces. The user then set and extract bytes via void * pointers.
The storage class then copies bytes to and from the storage memory as needed. Basically my own crude implementation of NSMutableArray/NSMutableData.
The user gets back a void * pointer and then casts this into whatever is needed. Yes, probably too much responsibility is given to the user.
Anyway, I am concerned about memory leaks. To return a value, I memcpy() the bytes into a newly created memory malloc(). But there is no corresponding free().
The user has to free the memory. But calling free after casting and dereferencing causes a crash. Does memory have to be freed in this case? See last for loop.
Thanks for reading, replying and hopefully a lesson in pointers.
int main (int argc, const char * argv[]) {
These bezel set diamond studs
4 Prong Diamond Studs
studs to diamond studs,
more...
2 carat princess cut diamond
Hilton#39;s diamond studs!
more...
diamond studs by Kwiat,
diamond-stud-ipod-f?
more...
with diamond studs,
I#39;ll put on diamond studs
more...
Pave Diamond Studs paired
with diamond stud accents.
more...
Diamond Stud, I-J Color,
high end Diamond stud
more...
diamond studs…oo-la-la!
Flavio with diamond studs
more...
princess-cut diamond studs
white gold diamond studs?
and white diamond studs in
My storage class will allocate memory and keep track of the byte size of the individual pieces. The user then set and extract bytes via void * pointers.
The storage class then copies bytes to and from the storage memory as needed. Basically my own crude implementation of NSMutableArray/NSMutableData.
The user gets back a void * pointer and then casts this into whatever is needed. Yes, probably too much responsibility is given to the user.
Anyway, I am concerned about memory leaks. To return a value, I memcpy() the bytes into a newly created memory malloc(). But there is no corresponding free().
The user has to free the memory. But calling free after casting and dereferencing causes a crash. Does memory have to be freed in this case? See last for loop.
Thanks for reading, replying and hopefully a lesson in pointers.
int main (int argc, const char * argv[]) {
shakeman0
Mar 4, 09:57 AM
Personally, I can't even fathom still being on 3.2.1, considering how many changes/features have been added since then to 4.2.1. And considering how easy it is to jailbreak, it's a total no-brainer.
I totally agree.
I totally agree.
mrgreen4242
Apr 16, 08:58 AM
I don't know how accurate this is, I'm not saying that its upscaling the DVDs but I am getting 1080p thru component. My TV will show me the resolution at the press of a button and when it changes. The Xbox is 1080p and when I place a DVD in the drive and play it, it does not (any longer) change down to 480p.
Could be changed. There was a Dashboard update that changed what resolutions were available with VGA cables, so they may have changed it. That said, the issue at hand is the DVD Consortium's rules on upscaling. They typically don't allow it over component... most upscaling players HAVE to use HDMI. It's a stupid rule, seeing as you can rip DVDs with complete impunity and then software scale them to any resolution you want (and they MUST know that), and it doesn't effect anything, but that's the general rule.
MS may have a special deal with them though, so who knows.
Could be changed. There was a Dashboard update that changed what resolutions were available with VGA cables, so they may have changed it. That said, the issue at hand is the DVD Consortium's rules on upscaling. They typically don't allow it over component... most upscaling players HAVE to use HDMI. It's a stupid rule, seeing as you can rip DVDs with complete impunity and then software scale them to any resolution you want (and they MUST know that), and it doesn't effect anything, but that's the general rule.
MS may have a special deal with them though, so who knows.
egraphixstudios
Jun 20, 04:59 PM
Eating, Sleeping, and Working
You forgot praying ;)
You forgot praying ;)
more...
Spario
Oct 11, 06:09 AM
Hello everyone,
I would like to now how i could use FTP with Blogger. All i have is my PowerBook. I don't know anything about anything when it comes to this stuff. But i would like to put something together like the Mike Mata's Blog (http://www.mikematas.com) Thanks ~Spario
I would like to now how i could use FTP with Blogger. All i have is my PowerBook. I don't know anything about anything when it comes to this stuff. But i would like to put something together like the Mike Mata's Blog (http://www.mikematas.com) Thanks ~Spario
xUKHCx
Aug 6, 04:20 PM
Aren't we playing strip poker? ;)
To bad, iBlue just lost her current hand. Let's see, have to remove something. What could that be? :D
Sorry e. :eek:
The thing that is holding her hair up.
Nice picture BTW.
To bad, iBlue just lost her current hand. Let's see, have to remove something. What could that be? :D
Sorry e. :eek:
The thing that is holding her hair up.
Nice picture BTW.
more...
Rgladman
May 6, 08:56 AM
Seagate 7200.12 on 2.7 27".
AJ Muni
Sep 27, 08:33 PM
http://www.datamem.com/parts_that_fit_view.asp_Q_K_E_220534_A_M_E_PowerBook+G4+1%2E5GHz+%28M9690LL%2FA%29+12%22_A_MF_E_Appl e_A_C_E_
how about that one?? i kinda wanna save her some money...so thats why i was looking into the one a newegg, but if this is the best price $144...then ill have to get this one..
how about that one?? i kinda wanna save her some money...so thats why i was looking into the one a newegg, but if this is the best price $144...then ill have to get this one..
more...
Doctor Q
Oct 31, 12:27 PM
This is one of the 8 first-round voting pools in the 3,000,000 Post Apple Advertisement Contest "Best Apple Print Ad" competition.
Vote for your 1 favorite in each of the 8 "Best Apple Print Ad" pools (and your 1 favorite in each of the 4 "Best Apple Video Ad" pools).
This poll will be open through the end of Wednesday November 1, closing at midnight EST. The two entries with the most votes will move on to the semi-final round.
Vote for your 1 favorite in each of the 8 "Best Apple Print Ad" pools (and your 1 favorite in each of the 4 "Best Apple Video Ad" pools).
This poll will be open through the end of Wednesday November 1, closing at midnight EST. The two entries with the most votes will move on to the semi-final round.
Shaan
Jun 10, 05:35 PM
Good thing you reminded me about the mall opening time, I was thinking we would be able to line up outside but since my local Apple Store is in a mall we will only be able to start lining up once the mall opens, right?
more...
taylorwilsdon
Mar 18, 11:06 PM
Did you already have an iPhone that you then used the packaging from for this refurb?
Yes I'm putting it into one of the "official" boxes instead of the dreary brown ones they give you. Figure I might as well dress it up :)
For all purposes it appears to be brand new, but I put refurb just to be honest.
Currently at $275 on ebay. Get your bids in early!
Yes I'm putting it into one of the "official" boxes instead of the dreary brown ones they give you. Figure I might as well dress it up :)
For all purposes it appears to be brand new, but I put refurb just to be honest.
Currently at $275 on ebay. Get your bids in early!
myjay610
Mar 7, 02:26 PM
Are you doing this for internal traffic only? Or from traffic being routed between en0 and en1?
more...
ndraves
May 1, 08:34 AM
apple 5770 / 5870 supports xfire afaik.
I would very much like to implement this if they do. Do you have any info on this please? I couldn't find anything that suggested that anyone has it working with the Apple cards.
I would very much like to implement this if they do. Do you have any info on this please? I couldn't find anything that suggested that anyone has it working with the Apple cards.
Mr. Retrofire
Mar 17, 04:06 AM
I don't like Graphite because it's not grey, it's slightly purple grey, which I think doesn't look good for some reason.
Calibrate your monitor!
Calibrate your monitor!
more...
Alrescha
Mar 1, 12:06 PM
I have an original Mac mini running Leopard. I sleep it every night and wake it up every weekday. It randomly wakes with this Bonjour problem (I've never seen it happen while the machine is awake).
I haven't yet determined a pattern. Note that it's not an IP address problem � this is a Bonjour (or mDNS) naming error. The machine has a fixed IP address acquired via DHCP. I also have an Airport Extreme which can proxy Bonjour.
On the other hand, I have a Macbook running Snow Leopard that is slept/started much more often but has never experienced this problem. I wonder if it is an old Leopard problem which has since been solved.
A.
I haven't yet determined a pattern. Note that it's not an IP address problem � this is a Bonjour (or mDNS) naming error. The machine has a fixed IP address acquired via DHCP. I also have an Airport Extreme which can proxy Bonjour.
On the other hand, I have a Macbook running Snow Leopard that is slept/started much more often but has never experienced this problem. I wonder if it is an old Leopard problem which has since been solved.
A.
CalfCanuck
Dec 20, 05:14 PM
The Nikon line, with digital ICE (as mentioned above) are a very capable line. I have the earlier Coolscan 4000, with the optional (but critical) scan feeder. It costs more, but when scanning thousands of images it was well worth it.
I believe the new Coolscan 5000 line is both improved and cheaper, so I'd look into that if you have a large quantity of images to scan.
My feeder (I believe they've modified the current feeder) needed a few modifications (searchable via google) to work with thinner cardboard mounts, but once done it worked fairly well. Plastic mounts were never a problem. Of course one had the odd jam, and all images still needed the normal digital darkroom work in Photoshop. But that's standard for every image.
Edit - Just saw your "25,000 images to scan". Be sure to get scanning ASAP - I find that my limit is about 100 per day, allowing time for each image in photoshop.
If I was you, i'd be more selective and only scan the images you were at least considering printing
I believe the new Coolscan 5000 line is both improved and cheaper, so I'd look into that if you have a large quantity of images to scan.
My feeder (I believe they've modified the current feeder) needed a few modifications (searchable via google) to work with thinner cardboard mounts, but once done it worked fairly well. Plastic mounts were never a problem. Of course one had the odd jam, and all images still needed the normal digital darkroom work in Photoshop. But that's standard for every image.
Edit - Just saw your "25,000 images to scan". Be sure to get scanning ASAP - I find that my limit is about 100 per day, allowing time for each image in photoshop.
If I was you, i'd be more selective and only scan the images you were at least considering printing
more...
WinterMute
Mar 27, 06:54 PM
I'm sorry but this is still an illegal activity under the terms of the EULA that all users of the game agree to when they install the code.
Blizzard own the rights to the game, the code and the ideas behind the game where applicable, and that is what they are protecting.
For sure they want the player base to keep paying the fees for server access, but they put the money into the development, publishing and maintenance of the multitude of game servers, and they have the legal right to profit from their endeavors.
Whilst you may not agree that pirating a beta test client to run on a server is a big deal, Blizzard do and the law is on their side.
MacRumors cannot condone the promotion of illegal activities on these forums.
Blizzard own the rights to the game, the code and the ideas behind the game where applicable, and that is what they are protecting.
For sure they want the player base to keep paying the fees for server access, but they put the money into the development, publishing and maintenance of the multitude of game servers, and they have the legal right to profit from their endeavors.
Whilst you may not agree that pirating a beta test client to run on a server is a big deal, Blizzard do and the law is on their side.
MacRumors cannot condone the promotion of illegal activities on these forums.
KameronBriggs
Sep 30, 09:26 PM
lol dude. so today at school, i was walking...and I saw some person, with an iPod touch 4 in an iPhone 4 case, with it UP to his ear and pretending to have a phone conversation. I thought I was seeing things, so I did a double take...hahahah, ya...it was real.
Steven1621
Oct 26, 02:09 PM
when going from my powerbook keyboard to another PC, i find that the best annd closest feel are those of dell computers. not sure why, but they just working nicely. i also think the feel on the MS internet keyboard is comparable. but certainly my typing needs are different.
JML42691
Jan 14, 12:29 PM
how long will it take for the video to b online roughly:apple:
:D:D:D:D:apple::apple::apple::cool::cool::cool::p;);)
Enough smilies? :rolleyes: lol
:D:D:D:D:apple::apple::apple::cool::cool::cool::p;);)
Enough smilies? :rolleyes: lol
MacRumorUser
Mar 23, 05:45 AM
^ I'm in the dark about that as much as you.
Xavier
Aug 8, 09:03 PM
I like the "wooden" looking ones
Spanky Deluxe
Jan 17, 06:44 PM
Reminds me of this:
98259
"Handsfree"
In all seriousness though, I could see myself buying something a bit similar to this if it were dirt cheap and had the option of a kind of blackout cloth around it. Not for what you might imagine although I would use it in bed. The girlfriend goes to bed hours before I do. I often stay up much later or I might listen to an audiobook and sometimes I like to watch tv shows. It'd be nicer being able to do that in the bedroom. She hates any form of lights in the bedroom so it would need to be able to black out the rest of the world. I don't care how stupid I look if its in the dark after all.
98259
"Handsfree"
In all seriousness though, I could see myself buying something a bit similar to this if it were dirt cheap and had the option of a kind of blackout cloth around it. Not for what you might imagine although I would use it in bed. The girlfriend goes to bed hours before I do. I often stay up much later or I might listen to an audiobook and sometimes I like to watch tv shows. It'd be nicer being able to do that in the bedroom. She hates any form of lights in the bedroom so it would need to be able to black out the rest of the world. I don't care how stupid I look if its in the dark after all.
iBlue
Aug 7, 08:07 AM
Did you do the photo edesignuk ? If so excellent job.
He took the photo, I did the editing and such.
Crikey, thanks everyone! :o :)
He took the photo, I did the editing and such.
Crikey, thanks everyone! :o :)
No comments:
Post a Comment