×

Discussion Board

Search:

Type: Posts; User: heldal; Keyword(s):

Search: Search took 0.03 seconds.

  1. Re: Signing midlet with Thawte code signing certificate, S40, using Netbeans

    Just a thought, but have you set the FileConnection permission as required? If so, then try not to and see if it still won't work.

    Also, if you've added the FileConnection permissions and are...
  2. Re: Data sent through HttpConnection stays in memory (S60)

    I finally found the "solution". Not quite what I hoped.

    I've done a lot of testing, and without doubt - there is a bug in HttpConnection on S60 devices that cause it to leak memory. Java won't...
  3. Replies
    2
    Views
    748

    Re: SocketConnection very slow

    As you can see in the code, I only time the sending of data, not the receiving part. If you have the possibility of testing it yourself, I can post the source code for the entire testapp?
  4. Replies
    2
    Views
    748

    SocketConnection very slow

    Hi,

    I'm having problems using SocketConnection, namely two things:

    Sending data is very slow (~ 9kb/s when using the mobile network)
    Sometimes, I get a message telling me an unhandled...
  5. Re: Data sent through HttpConnection stays in memory (S60)

    Anyone else carie to explain what might cause the problem? I'm totally stuck..
  6. Re: Data sent through HttpConnection stays in memory (S60)

    What do you mean by synchronizing the connections? This all happens in the same thread, and I close all resources before the next request. I'm not sure I understand exactly what you mean, can you...
  7. Re: Data sent through HttpConnection stays in memory (S60)

    How can I not create more than one HttpConnection when I have more than one request? Can you please give me an example?

    Also, note that in the production app I may only perform a connection every...
  8. Re: Data sent through HttpConnection stays in memory (S60)

    Anyone, please?
  9. Data sent through HttpConnection stays in memory (S60)

    Hi,

    I have a great problem: I'm developing an app that sends a lot of data through the internet. However, on all S60 devices it will fail after a while due to low memory. The reason? It seems that...
  10. Incomplete images using getSnapshot(..) on S60

    Hi,

    I'm having a hard time taking snapshots using MMAPI from Nokia S60 phones. For some strange reason, all pictures are incomplete. Just the upper part shows. The code works fine on S40 (at least...
  11. Replies
    13
    Views
    10,695

    Re: The issue of "OutputStream.flush()"/Memory leak.

    This code makes it last longer, however it still fails after a little while:



    SocketConnection connection = null;
    OutputStream outStream = null;
    InputStream inStream = null;
    try {...
  12. Replies
    13
    Views
    10,695

    Re: The issue of "OutputStream.flush()"/Memory leak.

    It doesn't matter if I wait a long time or not - the error occurs anyway. What do you mean by release all the resources? Don't I already do it in the code?
  13. Replies
    13
    Views
    10,695

    Re: The issue of "OutputStream.flush()"/Memory leak.

    Thanks for your quick reply! I have a thread that periodically performs HTTP requests. It opens a connection, sends some data and closes it. This is repeated many times. When it reaches a certain...
  14. Replies
    13
    Views
    10,695

    Re: The issue of "OutputStream.flush()"/Memory leak.

    If I remove the opening code from the loop, then how am I supposed to perform more than one request?
  15. Replies
    13
    Views
    10,695

    Re: The issue of "OutputStream.flush()"/Memory leak.

    +1, I have the same problem. This leak also occurs on the Sun WTK emulator.

    Consider the following loop:




    HttpConnection connection;
    OutputStream outStream;
    byte[] sendData = new...
Results 1 to 15 of 15