Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Programming Question (again)

0 views
Skip to first unread message

Joerg Polzfusz

unread,
Jul 3, 1996, 3:00:00 AM7/3/96
to

Hello to all SDK-users!
Please take a look at http://www.cs.tu-berlin.de/~pilz/stuff/wavy.zip
and tell me why it doesn't work ... .
Thanks
Regards
Joerg
P.S.: Since it isn't error-free, wavy.zip contains ONLY SOURCECODE!
,,,,
(.)-(.)
------------------------------------oOO-(_)-OOo--------------------------------
pi...@cs.tu-berlin.de
http://www.cs.tu-berlin.de/~pilz
-------------------------------------------------------------------------------

--
,,,,
(.)-(.)
------------------------------------oOO-(_)-OOo--------------------------------
pi...@cs.tu-berlin.de

Cami Lee

unread,
Jul 8, 1996, 3:00:00 AM7/8/96
to

<< Hello to all SDK-users!
Please take a look at http://www.cs.tu-berlin.de/~pilz/stuff/wavy.zip
and tell me why it doesn't work ... .
Thanks
Regards
Joerg
P.S.: Since it isn't error-free, wavy.zip contains ONLY SOURCECODE!>>

Hi Joerg.

I don't know if you've had any suggestions yet, but I made your app stop
crashing by simply changing the last call in the routine.

I added the @callsuper(); to make sure that any default handling was done,
and then your routine call, and then my change, like this.

@method WavyProcessClass, MSG_META_EXPOSED
{
@callsuper();
WavPlayFile(SP_USER_DATA, "", "wavy.wav");
@send WavyApp::MSG_META_QUIT(); /*<-Why doesn't it work?!*/

} /*MSG_META_EXPOSED*/

The reason that you were crashing is because you are blocking the thread
trying to kill the application. Remember, if you need information back
from a routine(which in this case you don't) you use @call. If you just
want to send a message to an object, and don't want return parameters,
etc... you @send.

Basically, you were killing the thread that your routine was calling
from...and expecting the system to find you after you killed
yourself....if that makes it easier to understand. <grin>

As for the WAV.... I didn't hear anything..but that not unusual...I'm not
set up to play wav's..and the library was written for the Zoomer...but
there's something not being done, I suspect in that call, that prevents
the app from getting the return message so that it can close itself. I
may be wrong...but it's not the first time, either.

Ciao.
\
cam...@aol.com
cam...@gnn.com
10250...@compuserve.com

_____ _____ _____ _____
| | | | |
| __ |__ | | |____
| | | | | |
|__ | |____ |____| |___|

(Trying new sig...see if it reads right in those readers...it reads right
here, unfortunately)

Geoworks Ensemble 2.0 - for those who don't need bells and whistles..
but can use them anyway.

GEOS developer, programmer, consultant.

For links and info, check my home page at:
AOL Home page - http://home.aol.com/CamiLee
GNN Home page - http://members.gnn.com/camilee/camiweb/camihome.htm
CompuServe Home page -
http://ourworld.compuserve.com/homepages/Cami_Lee/

By sending unsolicited commercially-oriented e-mail to this address, the
sender agrees to pay a $500 flat fee to the recipient for proofreading
services.

0 new messages