MsComm out of stack space - Urgent
Posted on 1999-07-08
I have written a module that reads a GPS from COM2 using the MsComm ocx. The problem is that the module seizes control of the computer and only respond to key presses after some delay. In order to improve this I have a doevents at the beginning of the module, this solves the problem but I then get an 'Out of stack space' error.
I have looked at the call stack and there is my module being called and the caller separated by [non visual basic code] each time repeated many times.
The settings of the MsComm ocx are
GpsInput.CommPort = 2
GpsInput.InputLen = 1
GpsInput.Handshaking = comRTS
GpsInput.NullDiscard = True
GpsInput.OutBufferSize = 1024
GpsInput.InBufferSize = 1024
GpsInput.Settings = "4800,n,8,1"
GpsInput.SThreshold = 1
GpsInput.RTSEnable = True
GpsInput.InputMode = comInputModeText
GpsInput.DTREnable = True
GpsInput.EOFEnable = True
Anybody have any ideas