•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 423,751 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,315 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser: Programming Forums
Views: 964 | Replies: 8
![]() |
•
•
Join Date: Apr 2008
Posts: 6
Reputation:
Rep Power: 0
Solved Threads: 0
I made a network chat program on my desktop pc and it works fine, but when I try to run it on my laptop it does not work and comes up with this error: http://ecp-clan.frih.net/untitled.PNG.
Here is a description of the error:
EventType clr20r3, P1 p2pchat.exe, P2 1.0.0.0, P3 47fc0f45, P4 p2pchat, P5 1.0.0.0, P6 47fc0f45, P7 d, P8 c6, P9 system.invalidoperationexception, P10 NIL.
Thanks
Here is a description of the error:
EventType clr20r3, P1 p2pchat.exe, P2 1.0.0.0, P3 47fc0f45, P4 p2pchat, P5 1.0.0.0, P6 47fc0f45, P7 d, P8 c6, P9 system.invalidoperationexception, P10 NIL.
Thanks
•
•
Join Date: Oct 2006
Location: the Netherlands
Posts: 1,776
Reputation:
Rep Power: 11
Solved Threads: 185
You're probably messing with memory that isn't yours, or accessing a file that is accessed at the same time by something else, or writing to a socket that was closed or never opened, or ....
Without seeing your code, it just a guessing game
Without seeing your code, it just a guessing game
Want better/more replies to your questions? Wrap your code in [code] [/code] tags!
do NOT pm me for help, in the best case, you'll get ignored
do NOT pm me for help, in the best case, you'll get ignored
•
•
Join Date: Apr 2008
Posts: 6
Reputation:
Rep Power: 0
Solved Threads: 0
Ok and how would I post that? Should I upload the whole solution?
Edit: Also, I have discovered that it happens with any program that has winsock, because another application that I wrote which doesn't use winsock works fine.
Edit: Also, I have discovered that it happens with any program that has winsock, because another application that I wrote which doesn't use winsock works fine.
Last edited by munkey_boy : Apr 9th, 2008 at 4:57 am. Reason: discovery :P
•
•
Join Date: Oct 2006
Location: the Netherlands
Posts: 1,776
Reputation:
Rep Power: 11
Solved Threads: 185
If you think that winsock is the problem, then post all the code that uses it here. Also initialization.
be sure to use [code] your code here [/code] tags
Niek
be sure to use [code] your code here [/code] tags
Niek
Want better/more replies to your questions? Wrap your code in [code] [/code] tags!
do NOT pm me for help, in the best case, you'll get ignored
do NOT pm me for help, in the best case, you'll get ignored
•
•
Join Date: Apr 2008
Posts: 6
Reputation:
Rep Power: 0
Solved Threads: 0
Protocol is UDP, Remote Host is 255.255.255.255, Local Port is 1 and Remote Port is 1. But I don't think it's the port that is the problem as my other winsock program only uses Winsock.LocalIP() and no ports. My Winsock code is:
Edit: And thanks for helping me Niek.
Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSend.Click
Dim dataOut As String
dataOut = txtName.Text & ": " & txtMsg.Text
AxWinsock1.SendData(dataOut)
txtMsg.Clear()
End Sub
Private Sub AxWinsock1_DataArrival(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent) Handles AxWinsock1.DataArrival
Dim dataIn As String
dataIn = 0
AxWinsock1.GetData(dataIn)
txtChat.Text = txtChat.Text & dataIn & vbNewLine
End Sub
End ClassEdit: And thanks for helping me Niek.
Last edited by munkey_boy : Apr 9th, 2008 at 5:48 am.
•
•
Join Date: Oct 2006
Location: the Netherlands
Posts: 1,776
Reputation:
Rep Power: 11
Solved Threads: 185
![]() |
•
•
•
•
•
•
•
•
DaniWeb VB.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Previous Thread: using disk instead of memory for image creation using intptr
- Next Thread: how to link excel 2007 with VB.net



Linear Mode