This is strange.. if anyone has an answer I would appreciate it.

surely someone has come across this problem before:



.data
CommandLine dd 0
szDisplayName db "Multiple Windows",0
guiEDITBOX db "EDIT",0
iccex INITCOMMONCONTROLSEX <0>
bTest db 'SCREEN',0
cmdLine db 128 dup(0)
bRet db 40 dup(0)

CMDD db 10 dup(0) ;<====== this has to be?!?
CMDL db 10 dup(0) ;
CMDA db 10 dup(0) ;


When CMDD is not physically in the data structure, I parse my first string using my strtok function into those as follows:

string = "THIS IS A TEST"

CMDL={NULL}
CMDA="IS"
CMDB="A"
etc


when I DO have CMDD added there, it works prefect, and note I don't touch CMDD at all programmatically, only in the data structure does it exist.. and this is on WIN2k btw.

CMDL="THIS"
CMDA="IS"
CMDB="A"
CMDC="TEST"
etc.

It does not appear to be the function but rather in my .data definitions.
Posted on 2004-04-16 19:57:23 by drarem
The first place I would look is what happens in the bRet buffer. Is it possible that it is overflowing into the next buffer with a 0?

Raymond
Posted on 2004-04-16 21:23:02 by Raymond
that was the issue, thank you.

0 to 39 = 40 bytes, I went 0 to 40 for 41 bytes when initializing/cleaning the bRet variable.
Posted on 2004-04-19 08:00:05 by drarem