Home > Back-end >  A serial port communication applet
A serial port communication applet

Time:09-26

Two problems:
1, write their own small serial communication program, just open the software, debugging the output window will pop up a lot of this mistake, don't know is what reason,

5. 0 x77355492 most likely abnormalities in exe: 0 xc0000005: access violation occurred while writing position 0 x00000000
Thread 'Win32 threads (0 xa3c) have withdrawn, the return value is zero (0 x0),

2, a serial port communication, point to open the serial port of the button, go to the following step card dead, but this step will be a problem,
MessageBox (NULL, "SetupComm success!" ", "prompt", MB_OK);

CodePudding user response:

The first is a null pointer exception
Write position 0 x00000000 this address general is null, that is to say, may not initialized to the effective memory space is a pointer to the written information, so write error caused by illegal,

The second you want to confirm that is the problem that the subsequent code, or displays a message dialog itself
Is to click the ok button after the card machine card machine or message dialog displays, even message dialog without display card machine?
  • Related