Skip to content

Interprocess Communication in C

Recently I’ve been trying to understand the concept of interprocess communication in C. I’ve looked at some example code, read the man pages for fork() dup() pipe(), exevc() and the like; but the concept just wouldn’t sink in. Luckily, someone I met from the Kirupa Forums, njs54345 said to search google for ‘Beej’. I followed his advice and was happy I did, Beej has some awesome information. I did some small example projects based of the IPC tutorial and posted the source files on the source section of this site. If your trying to learn network, or inter process communication in C I would highly recommend those tutorials- there great.

Continue Reading

attachSound() Won’t Play in Loaded Movie- Another Flash Bug!

I came across this bug awhile ago. Lets say you had the following code in a SWF: It worked perfectly, the sound with the linkage ID in my library names “asound” played and everything was great. Now try loading that SWF info another SWF, the sound will not play. I searched the net and found this nice little comment here: “For what it is worth, I had the same issue, and found a solution to this. When declaring the “new Sound”, you have to specify a target movie clip. For example: new_sound = new Sound(this)” Ah-Ha! Specifying this in the Sound object’s constructor magically makes it work. This isn’t anywhere in MM’s docs. Thanks MM for wasting 30 more minutes of my time!

Continue Reading

with() Problem/Bug

This is yet another bug I found while doing some Flash-dev, it has to do with the with() statement. If you use with(this){…} it will give you erratic/unpredicted behavior, for instance take this code: You would think that output would look like this: But, instead it comes out as: Seems as though Flash does not allow you to set variables when using this in a with() statement. You can get the .fla i used to make the test cases for this bug here. Thanks Macromedia for wasting another hour of my time! 😛

Continue Reading

App Stop V.9

App Stop V.9 has just been released, here is the list of changes: Added the much requested support for background applications Added a UID/User-name column to the table-view Fixed problem where the menu icon would be really small on OS X 10.3 Fixed a problem where checking for updated while disconnected from the internet would report than a new version is availible Obviously the big change in this update is the support for background processes. If you are running OS X 10.3 you may experience crashes when changing preferences related to background processes. I have no idea why these crashes are occurring, hopefully I will be able to track down the problem by the 1.0 release…

Continue Reading

Of Flash & ID3 Tags

Flash says it supports ID3 1.0 & 2.0 tags, but from my experience MM implementation of ID3 tags in Flash is very poor and half the time I cant get any ID3 information. Has anybody had any luck with ID3 information in Flash? Most Flash-based MP3 players out there don’t use ID3 information for song titles and such but load the information from an XML file, so I assume this is a commonly known bug although I haven’t seen any information about this anywhere on the net…

Continue Reading

Determining When A Movie Clip Is Initialized

This is a common problem in Flash, determining when a MC is fully initialized. This problem only really arises when you are using attachMovie() to dynamically make/attach MC’s to the stage. An example of this problem is if you have a MC with timeline animation that you are going to attach to the stage. The timeline animation has stop() on its first frame and its last frame. You use this code to attach it to the stage: The attached “box” MC wont play (Here’s an example of what I’m explaining). Other common problems like this are trying to grab the height of a dynamic textfield with autoSize = true contained in a MC that you have just attached to the stage and assigned alot of text to the internal textfield…

Continue Reading

App Stop .8 Released!

App Stop version .8 has just been released, it includes the following new features/enchancements: Fixed bug where CPU usage for applications running as root would display incorrectly, now applications running as root will display CPU usage as -1 Added ability to force update CPU usage Added ability to select all running applications Added ability to select all paused applications Rewrote the CPU refresh timer code, now allowing preference changes to be reflected immediatly without restarting App Stop Fixed human readable priority representation…

Continue Reading

Class Variable Weirdness

This is a weird bug/feature I found in Flash a week or two ago. I like to declare my variables in classes like this: Well, I was working on a project a few weeks ago and I had a class that looked something like this: Throughout the SWF I code like this: When I traced dataOb, I got this output: But I only added “info 1” and “info 2” to the dataOb.info array? Why would “info 3” and “info 4” be in their too? It seems as though if you declare a variable as an array in the variable declaration and dont re-initalizie it in the constructor (IE, info = []) then the array will be shared across instances of the class. This effect doesn’t seem to happen with number declaration like the one in the example electric class I posted…

Continue Reading

Vacation & App Stop

I just came back a few days ago from vacationing in NH and immediately following vacation, going on a retreat in Massachusetts. Both were awesome! New Hampshire has to be one of the best places in the world its so rural and beautiful, if i get some motivation I’ll post some pics from my vacation. On another note, a bug has been found in App Stop that will cause it to crash… alot. I am currently working on fixing this bug, but work is taking most of my time so I haven’t had alot of time to look into it. Hopefully in next week I’ll be able to find time to fix it.

Continue Reading