Archived

This topic is now archived and is closed to further replies.

Ejaz

Strange behaviour when put directplay in C++ class

Recommended Posts

Dear All, I''m trying to wrapup directplay in my class for peer-peer communication. I did and its working fine, but there is a strange behaviour. When I create an instance of my peer class and after that display a dialog box, to take inputs from user, so that they can be set in the SetPeerInfo(...), everything works fine, but when I close the application, it gives error that "user break point at bla bla bla". On the other hand, if I display the dialog first, take input, put them in some global structure, destroy that dialog, and after that get info from that global structure and proceeds, then everything works perfectely. I searched the net about this "user breakpoint error", all I get was that compiler put extra code in the debug verion (int 3 of 1 byte), which is used in cases where the application crashes unexpectedly. The solution I got was to check all the variables, I did and find nothing suspected, but the problem is still there. All my progress is stuck because of this error. Does anyone have this problem too. I''ll appriciate any help in this matter & thanx in advance. Regards, Ejaz.

Share this post


Link to post
Share on other sites