Visual Studio.Net Bug

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
Thanks Sudhakar

I tried that but i didnt work. i created a new solution and took all the project from old to new and the tried to run the solution then also same error was coming. Please let me know is there any other way to solve the things because of this our development has been stopped
thank
 
Sounds to me like one of your socket functions is blocking. Better see
whether you can replace a send or receive with an asynchronous version.

*shrug*

Chris

Bhavesh said:
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.
 
thaks chris
Socket thing is working fine because we have tested that for couple of months then only we have implemented and it is working with our other products since two years so there is no problem in socket. but then also i tried that to change and try to work out with both synchronous and asynchronous way it isnt making any difference. Is there any other option please lte me know.
thanks
 
Back
Top