• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

Need a bit of help debugging some code...

onlyonemac

Well-known member
Hi!

I'm writing a program on my Mac, but this one seems to be a bit troublesome. It crashes randomly (I suspect due to memory leaks), but no matter how long I stare it my code for, I just can't find what's wrong with it.

I literally spent hours going over this code and it all looks OK to me. Please could someone help out with fixing this?

I've attached the source code, along with a compiled application file and a document giving more information about the program.

Thanks,

onlyonemac

[attachment=0]MultiSynth Source Code.sit.zip[/attachment]

 

techknight

Well-known member
No, I only know BASIC. But I posted that in regards to troublesome bugs that you cant find, but when you do its staring at you right in front of your face.

Happens quite often in the world of programming.

The biggest cause is how you handle variables, thier sizes, datatypes and boundaries. Plus whether or not they get overwritten with one subroutine and causing another one to crash for the failure of variable checks and balances.

I would start by installing a debugger like macsbug; etc so you can find out when where and how it crashes

 
Top