SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Jul 2001
    Location
    Ithaca, NY, USA
    Posts
    199
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    VB & MFC problem

    I have some MFC application running and within it I start a VB COM client server program.

    The problem is when Silk closes the VB application(s) it loses the handle to the previous MFC application.

    Anyone has an idea what to do about this?

    Thanks

    ------------------
    Disclaimer: Nothing of what I mentioned above is to be taken as a racist or sexist remark nor as a personal attack.

    Klaus Kiesenhofer
    Convenience is the first step to enslave yourself. Freedom is inconvenient.

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: VB & MFC problem

    I had a very similar problem with MFC/VB application a couple of years ago.
    You can search the forum for the details.
    The problem disappeared when the developers cleaned up the heap management code.

    I am not sure that your diagnosis is entirely correct.
    What is the SilkTest error that you get that make you think that the Agent handle is lost?

    If it was only a matter of the handle being lost, you should be able to re-establish the handle with the statement Connect("(local)").

    Let us know how it works.

    ------------------
    Rob Kapteyn
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Location
    Ithaca, NY, USA
    Posts
    199
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: VB & MFC problem

    I tried SetActive() again on the MFF app and SilkTest plainly told me that this window cannot be found.

    Anyway, that Connect trick did it for me. Thanks.

    ------------------
    Disclaimer: Nothing of what I mentioned above is to be taken as a racist or sexist remark nor as a personal attack.

    Klaus Kiesenhofer
    Convenience is the first step to enslave yourself. Freedom is inconvenient.

 

 

Posting Permissions

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

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 05:31 PM.

Copyright BetaSoft Inc.