Application only works in debug mode

I just want to know if anybody has encounter this bug I wrote an app to interact with hardware and try to prompt the status of CTS. It works fine while i debug it. but i start losing data while running in normal or release mode. the only factor i can think of is speed. but it still couldnot explain why the app is not working properly.
Any suggestion


Answer this question

Application only works in debug mode

  • ccondit

    try to find out how codes interated. Me i got it working but not calling the function which generate the error when it's not needed.

  • adorer

    Oh my point is not about the cts thing. it's more about if anybody has experienced this type of bug before. like the app runs fine during debug mode and not during release or normal execution.
    sorry for the confusion.

  • rksinghal

    I am having the same problem. However, the device is card reader. When I walk through it in debug mode, it works fine. However, when I use release mode, it does not work and there are errors. I am using vb.net 2005 pro. Any help with this would be greatly appreciated.

    cheers

    Hawk


  • TvB

    This is too general a question. It's not entirely clear from your post, but if CTS means serial port CTS pin, you might be dealing with a device that does not perform H/W flow control properly. Try XON/XOFF instead, or pace your communications

  • Nimrand

    I agree it's a timing issue. the get CTS status code used API calls and with some unsafe codes.
    it's a little bit complicated to lay it out here. and i got it working under desktop version of my app.
    So rite now im trying to figure out wat kinda of timing issue makes the app behaves differently between debug and release mode. it's just doesn't make sense to work in one mode and not the other.

  • Dan Amero

    I'm not sure what kind of answer are you looking for. Could there be timing issues that are not present in debug build but are there in release build Certainly. Does CTS (which you again decided to leave unexplained - I still assume that this is the serial port CTS line) handling and serial I/O flow control fall into "timing issue" category Yes, it does.

  • Application only works in debug mode