C++ callback works only in debug !


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: C++ callback works only in debug !

  1. #1
    Join Date
    Mar 2007
    Posts
    2

    C++ callback works only in debug !

    Hello There,

    I need some help from you.
    I have a C++ dll that send 'events' by callback pointer to a function.
    Also, from developing speed point of view I've choose VB6 for user interface.
    I follow up all rules about working with AddressOf and external lib in VB6.
    In VB6 debug mode all seams to work OK but after compiling and launch the exe file, no callback comes (all other functions seams to be ok).

    Do you have any idea, is it form VB or maybe from C++.

    Thanks,

  2. #2
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    I guess you wrote the c++ dll yourself, right?
    is it possible that the callback is called within a separated thread, created in the dll itself? I ask because that is one difference between IDE and exe: in the IDE everything runs in the same thread.

    Marco
    "There are two ways to write error-free programs. Only the third one works."
    Unknown

  3. #3
    Join Date
    Mar 2007
    Posts
    2
    Thanks mstarf,

    That's true, the C++ is multithreading and it has to be in this way.
    But you give me the answer that I need.

    Thanks a lot

Similar Threads

  1. Java Mail Error
    By ddsuresh in forum Java
    Replies: 1
    Last Post: 12-29-2005, 10:58 AM
  2. Replies: 8
    Last Post: 07-10-2005, 10:19 AM
  3. Replies: 3
    Last Post: 02-22-2002, 11:47 AM
  4. Replies: 10
    Last Post: 12-15-2000, 04:41 AM
  5. Replies: 0
    Last Post: 12-12-2000, 04:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center