Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Problem with tray icon - very strange behaviour

Problem with tray icon - very strange behaviour

Scheduled Pinned Locked Moved C / C++ / MFC
c++sysadminhelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    s_k
    wrote on last edited by
    #1

    Hi! I'm really confused of what my program is doing. I have typical MFC application, serving as FTP Server. For easier controlling, I put the most used commands into tray icon menu. These commands' identificators are equal to the appropriate commands in main menu of the application. (eg. ID_SHOW_STATISTICS etc...). And now, the strange behavoiur - when some user is uploading data on the server (upload is performed in separate thread), and I choose on of the commands in tray menu, the server freezes up. In other words, uploading progress is frozen. I even exactly can see what routine my program stopped in - it is CAsyncSocket(or CSocket)::ConnectHelper(), function called from CSocket::Connect() routine. This routine never returns (I think that there is some calling of PumpMessage but I'm not sure...) BUT, when I choose the SAME command from main menu (not from tray), this problem doesn't appear. Can anybody explain this behaviour to me please ? I really don't know what to do now....... Any suggestion will be appreciated! Thanks in advance. Standa. Celebrate Mr. Cesilko!

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups