Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (115)
games submitted by our members
Games in WIP (562)
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 1249 times)
0 Members and 1 Guest are viewing this topic.
Offline DanK

Junior Member




Javver games rock yawel!


« Posted 2004-07-24 04: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 Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #1 - Posted 2004-07-24 09: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-25 22: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!
Legends of Yore - The Casual Retro Roguelike
Offline jbanes

JGO Coder


Projects: 1


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


« Reply #3 - Posted 2004-07-25 23: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-25 23: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.

 

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

The first screenshot will be displayed as a thumbnail.

BurntPizza (21 views)
2014-09-21 02:42:18

BurntPizza (15 views)
2014-09-21 01:30:30

moogie (18 views)
2014-09-21 00:26:15

UprightPath (25 views)
2014-09-20 20:14:06

BurntPizza (27 views)
2014-09-19 03:14:18

Dwinin (43 views)
2014-09-12 09:08:26

Norakomi (73 views)
2014-09-10 13:57:51

TehJavaDev (97 views)
2014-09-10 06:39:09

Tekkerue (49 views)
2014-09-09 02:24:56

mitcheeb (70 views)
2014-09-08 06:06:29
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!