×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    25

    named pipe throws exception on emulator

    I'm attempting to use named pipe created with mkfifo.
    mkfifo works OK, but any attempt to open it with open() or fopen()
    throws a C++ exception. This can be easily reproduced with the named pipe sample code in the SDK documentation. My implementation has a sllight difference from the sample code; rather than using a main() routine, I'm simply invoking this from a UI callback message handler.

    I added try/catch to trap the problem and it appears that the named
    pipe is broken in the emulator

    Can anyone confirm that named pipes are working in the emulator, or is this a known problem?

  2. #2
    Registered User
    Join Date
    Jul 2007
    Posts
    2

    Re: named pipe throws exception on emulator

    I am having the same problem with both named pipes (mkfifo) and pipe. Both debug traces shows the same problem down in kernel DLLs, i.e a bug.

    In my application I need to use select. Since signals are not supported to wakeup a thread from select; I have to implement a wakeup mechanism using a pipe fd. Is there other way for waking up a thread from select that I can use?
    Without such mechanism select is useless (timeouts are not a solution).

    There is a report on this bug in Open-C but apparently there is not plan to fix it soon.

    Thanks

Similar Threads

  1. LocalDevice.getLocalDevice(); throws exception
    By ulimativ in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-06-17, 17:42
  2. LocalDevice.getLocalDevice(); throws exception
    By ulimativ in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2005-06-17, 09:18
  3. Exception while running the application on emulator??
    By symnewbie in forum Symbian C++
    Replies: 2
    Last Post: 2005-06-10, 06:41
  4. My emulator throws an Alert: "Bad Field Signature"
    By rj_cybersilver in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-03-31, 07:45
  5. start 6310i Emulator without SDK on Windows Commandline, How
    By ghaslbe in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2002-08-11, 20:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •