G
Guest
Hi,
I am developing one software for Desktop PC and Pocket PC. I am working on that project since last three months and today morning when i have started developing something and then tried to debug that time it was not doing what i was expecting. Problem is that it is going into the loop while there is no loop but it executes a piece of the block and it is not comming out of it. Here is the one example how it is working.
public function abc() as dataset
dim dSet as dataset
dim cl as connection
cl.senddata(Datastring)
dim str as string
str = cl.getdata
if str.trim.toupper = "ERROR".trim.toupper then
msgbox "No Data Received, Error on Server"
else
dset.readexml(str)
endif
return dset
end function
Here Connection is the class for communication and for the communication i am using Socket and it is working fine. it has senddata and getdata method to send and receive data.
it receives data fine then it check that str is euqal to "ERROR" then displays the message box and then it goes back to the cl.senddata(). and then it goes forever. In this function there is no loop of the functions which calls this function those also doesnt have the loop then why it only goes for the indefinate loop for the small piece of the code.
Then i tried to find some help on the microsoft knowledge base in that i got only one link for IDE debugging step incorrectly but it is for visual studio.net 2002 and i am using visual studio.net 2003.
I am developing one software for Desktop PC and Pocket PC. I am working on that project since last three months and today morning when i have started developing something and then tried to debug that time it was not doing what i was expecting. Problem is that it is going into the loop while there is no loop but it executes a piece of the block and it is not comming out of it. Here is the one example how it is working.
public function abc() as dataset
dim dSet as dataset
dim cl as connection
cl.senddata(Datastring)
dim str as string
str = cl.getdata
if str.trim.toupper = "ERROR".trim.toupper then
msgbox "No Data Received, Error on Server"
else
dset.readexml(str)
endif
return dset
end function
Here Connection is the class for communication and for the communication i am using Socket and it is working fine. it has senddata and getdata method to send and receive data.
it receives data fine then it check that str is euqal to "ERROR" then displays the message box and then it goes back to the cl.senddata(). and then it goes forever. In this function there is no loop of the functions which calls this function those also doesnt have the loop then why it only goes for the indefinate loop for the small piece of the code.
Then i tried to find some help on the microsoft knowledge base in that i got only one link for IDE debugging step incorrectly but it is for visual studio.net 2002 and i am using visual studio.net 2003.