开发者

Encoding: Java Memory Leak

开发者 https://www.devze.com 2023-02-08 02:24 出处:网络
I\'m newbie on this site. I state my problem and I hope someone can help me. I compiled the same class in Java UTF \\ 8 and CP1252 (default). The execution of the first class generates memory leaks.

I'm newbie on this site. I state my problem and I hope someone can help me. I compiled the same class in Java UTF \ 8 and CP1252 (default). The execution of the first class generates memory leaks. A different encoding declaration can create access to memory and then memory leaks? I state my problem and I hope someone can help me. I filled in the same class in Java UTF \ 8 and CP1252 (default). The execution of the first class generates memory leaks. A different encoding declaration can create access to memory and then memory leak开发者_开发百科s?


How can you say you have memory leaks? Note that garbage collector will run when it thinks it will be appropriate, no when you order it to run.


At first: Look which characters you use in your source code. I believe you have non-ascii characters in the source, else there would be no difference in which input encoding you use for your source files.

And IF you use non-ascii characters, you have to stick with one source encoding anyway... else your input files would make no sense.

0

精彩评论

暂无评论...
验证码 换一张
取 消