[Cs-dev] PreCompile()
Date | 2007-12-19 20:25 |
From | "Rory Walsh" |
Subject | [Cs-dev] PreCompile() |
I'm trying to port an application that I built on windows to my linux machine and each time I call PreCompile() Csound spits out a segmentation fault and quits. This is the offending code csound = new Csound(this); dataout = new PVSDATEXT; csound->SetMessageCallback(csoundMessageCall); csound->PreCompile(); //causes seg fault It's a GUI app built using wxWidgets. So far I've been impressed at how easy it was to port, it's just this issue that's causing problems. If I take out the PreCompile() and simply call compile() I still get the same error. Any ideas? Rory. ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2007-12-19 20:46 |
From | Anthony Kozar |
Subject | Re: [Cs-dev] PreCompile() |
I believe that PreCompile() resets the message callback. So, I always set it after calling PreCompile(). Not sure if that would have any effect on your code though ... Anthony Rory Walsh wrote on 12/19/07 3:25 PM: > I'm trying to port an application that I built on windows to my linux > machine and each time I call PreCompile() Csound spits out a segmentation > fault and quits. This is the offending code > > csound = new Csound(this); > dataout = new PVSDATEXT; > csound->SetMessageCallback(csoundMessageCall); > csound->PreCompile(); //causes seg fault > > It's a GUI app built using wxWidgets. So far I've been impressed at how > easy it was to port, it's just this issue that's causing problems. If I > take out the PreCompile() and simply call compile() I still get the same > error. Any ideas? ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2007-12-19 21:16 |
From | "Rory Walsh" |
Subject | Re: [Cs-dev] PreCompile() |
Thanks for the suggestion Anthony, that's a good tip for the future but I'm afraid that still doesn't do it. Since posting my last mail I've built a really basic commandline app that works fine with the same code. It must have something to do with the way I've implemented my GUI. I'll have to sit down and take a detailed look over the code. Rory. > I believe that PreCompile() resets the message callback. So, I always set > it after calling PreCompile(). Not sure if that would have any effect on > your code though ... > > Anthony > > Rory Walsh wrote on 12/19/07 3:25 PM: > >> I'm trying to port an application that I built on windows to my linux >> machine and each time I call PreCompile() Csound spits out a >> segmentation >> fault and quits. This is the offending code >> >> csound = new Csound(this); >> dataout = new PVSDATEXT; >> csound->SetMessageCallback(csoundMessageCall); >> csound->PreCompile(); //causes seg fault >> >> It's a GUI app built using wxWidgets. So far I've been impressed at how >> easy it was to port, it's just this issue that's causing problems. If I >> take out the PreCompile() and simply call compile() I still get the same >> error. Any ideas? > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |