Search found 7 matches
- 01 Dec 2009, 11:27
- Forum: Server Side Extension Development
- Topic: one very weird scenario in extension
- Replies: 7
- Views: 9699
Sorry for my bothering questions:) I got new one. I am thinking about the memory waste, as my last post, I guess the other disadvantage is wasting some memory, right? One class that can be loaded later now is loaded earlier. But this should not affect the class instance, for example, if I put all my...
- 01 Dec 2009, 10:57
- Forum: Server Side Extension Development
- Topic: one very weird scenario in extension
- Replies: 7
- Views: 9699
I have checked, it works now:) I don't know why the default state of my SFS, the javaExtension is not under system class loader so it has different class loader version according to your comment. One further question, I don't care about dynamic loading extension, I can accept loading all classes at ...
- 01 Dec 2009, 10:27
- Forum: Server Side Extension Development
- Topic: one very weird scenario in extension
- Replies: 7
- Views: 9699
hi, a little bit confusion here. according to the document, Make sure that the javaExtensions/ folder is not comprised in your classpath. By default SmartFoxServer includes this folder in the classpath so that all extension code is loaded at boot-time by the JVM system class loader. While this can b...
- 01 Dec 2009, 09:05
- Forum: Server Side Extension Development
- Topic: one very weird scenario in extension
- Replies: 7
- Views: 9699
- 01 Dec 2009, 05:40
- Forum: Server Side Extension Development
- Topic: each extension corresponding to single JVM?
- Replies: 1
- Views: 3762
each extension corresponding to single JVM?
Hi, I want to use double check singleton like below: private static class Instance { static final DBManager instance = new DBManager(); } public static DBManager getInstance() { return Instance.instance; } private DBManager() { try{ throw new Exc...
- 30 Nov 2009, 16:07
- Forum: Server Side Extension Development
- Topic: one very weird scenario in extension
- Replies: 7
- Views: 9699
one very weird scenario in extension
Hi, I write some code like this, one class named as Test, which has one function like below: private static Test instance = null; public static Test getInstance() { if (instance == null){ System.out.println("create new Test instance"); instance = new Test&...
- 30 Nov 2009, 15:34
- Forum: .Net / Unity3D API
- Topic: one getnumber bug, pls correct me if I am wrong
- Replies: 0
- Views: 3873
one getnumber bug, pls correct me if I am wrong
Hi, Seems found one bug, if it is not, pls correct me:) I used getnumber to get double from client. Since there is only double parameter available and my original intension is transfer long. So I did convert before put, like below: client: new hashtable, then Hashtable param = new Hashtable(); long ...