Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (407)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Microsoft JVM memory leak  (Read 1048 times)
0 Members and 1 Guest are viewing this topic.
Offline DanK

Junior Member




Javver games rock yawel!


« Posted 2004-07-24 06:18:38 »

Is there a workaround for the microsoft jvm memory leak for playing audioclips or is the only option to just not play sounds when that JVM is being used?

Offline erikd

JGO Knight


Medals: 3
Projects: 3


Maximumisness


« Reply #1 - Posted 2004-07-24 11:06:59 »

Maybe you can use the sun.audio package but it's a pain to use it and not an official api (nor documented). And chances are the MSVM uses it under the hood anyway for AudioClips...

The best option is not to use the MSVM at all  Smiley

Offline DanK

Junior Member




Javver games rock yawel!


« Reply #2 - Posted 2004-07-26 00:31:36 »

Actually the bug was in the sun JVM's up until I think 1.2, the reason I'm wanting to know is I've written a game that I didn't see a good reason not to make an applet... or even a good reason it shouldn't run on the MS JVM (or well, any 1.1 jvm, but other than the MS JVM I don't think it's likely someone will have that old of a JVM in use). Obviously I would recommend anyone using the applet to upgrade to 1.4 but I don't want to make that a requirement.

Is there a non-pure java solution, maybe something like having the sounds embedded into the page somehow using javascript to play the files?

I haven't researched it but I seem to recall there was something about using javascript to manipulate applets (or what I'm hoping the other way around), if that's the case I could probably solve the problem without any obvious problems.

Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline jbanes

JGO Coder


Projects: 1


"Java Games? Incredible! Mr. Incredible, that is!"


« Reply #3 - Posted 2004-07-26 01:34:23 »

Quote
Is there a non-pure java solution, maybe something like having the sounds embedded into the page somehow using javascript to play the files?


I believe you're referring to Netscape LiveConnect. I believe it works in both Netscape and IE. AFAIK, no other browsers support it.

Is that what you were looking for?  Smiley

Java Game Console Project
Last Journal Entry: 12/17/04
Offline DanK

Junior Member




Javver games rock yawel!


« Reply #4 - Posted 2004-07-26 01:35:07 »

Did some searching and there is an object called JSObject from netscape that allows Javascript to talk to and be talked to by Java, microsoft also has an object JSObject that does the same, so I'm going to give a shot at using javascript functions to play sounds from my applet.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (88 views)
2013-05-17 21:29:12

alaslipknot (96 views)
2013-05-16 21:24:48

gouessej (128 views)
2013-05-16 00:53:38

gouessej (123 views)
2013-05-16 00:17:58

theagentd (131 views)
2013-05-15 15:01:13

theagentd (119 views)
2013-05-15 15:00:54

StreetDoggy (161 views)
2013-05-14 15:56:26

kutucuk (184 views)
2013-05-12 17:10:36

kutucuk (185 views)
2013-05-12 15:36:09

UnluckyDevil (191 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.072 seconds with 21 queries.