Bug #2742
closed
Face creation fails due to heavy application processing before calling processEvents
Added by Anonymous about 10 years ago.
Updated almost 10 years ago.
Description
Applications that have the following pattern:
Face face;
<load/process data>
<register prefixes>
face.processEvents()
fail because of the time gap between creating the Face and calling processEvents. This is a recurring problem for applications and repo-ng seems to be another victim.
Files
The following exception is thrown for the attached program:
libc++abi.dylib: terminating with uncaught exception of type ndn::Transport::Error: error while connecting to the forwarder
Could the Face constructor take a callback that informs the application of when it's ready to be used? Something similar to setInterestFilter's registration success and failure callbacks.
- Status changed from New to In Progress
- Assignee set to Alex Afanasyev
- Target version set to v0.4
- Related to Task #2526: Application crashes after trying to put large data into face added
- Status changed from Code review to Resolved
Change is merged, but Steve needs to confirm the original issue is resolved.
- Status changed from Resolved to Closed
Everything looks good.
Sorry for the delay. The notification slipped by me.
Also available in: Atom
PDF