Run-time error '40006' on chat program
Run-time error '40006' on chat program
Run-time error '40006' on chat program
Run-time error '40006' on chat program
Run-time error '40006' on chat program
Run-time error '40006' on chat program Run-time error '40006' on chat program Run-time error '40006' on chat program Run-time error '40006' on chat program Run-time error '40006' on chat program Run-time error '40006' on chat program Run-time error '40006' on chat program Run-time error '40006' on chat program
Run-time error '40006' on chat program Run-time error '40006' on chat program
Run-time error '40006' on chat program
Go Back  Xtreme Visual Basic Talk > > > Run-time error '40006' on chat program


Reply
 
Thread Tools Display Modes
  #1  
Old 01-02-2004, 09:11 AM
DemonLama's Avatar
DemonLama DemonLama is offline
Regular
 
Join Date: May 2003
Location: Naaldwijk, TheNetherlands
Posts: 82
Unhappy Run-time error '40006' on chat program


Hello folks,

I keep getting an run-time error '40006' on my little chat program which I would like to use inside my program. I got the source of the program elsewhere and embedded it in my own program but now I can't get rid of the error. Anyone an idea?
Reply With Quote
  #2  
Old 01-02-2004, 10:19 AM
reboot's Avatar
rebootRun-time error '40006' on chat program reboot is offline
Keeper of foo

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Graceland
Posts: 15,614
Default

I'm not sure how you expect us to answer such an incredibly vague question.
Reply With Quote
  #3  
Old 01-05-2004, 02:45 AM
AndreRyan AndreRyan is offline
Contributor
 
Join Date: Jan 2002
Posts: 489
Default

It sounds like you're using a Winsock control, you should not use the Winsock control use System.Net.Sockets instead.
__________________
If you're a beginner or have little experience don't launch into something beyond your abilities, for example don't start game programming by trying to make a 3D first person shooter if you have no idea how to use DirectX and/or OpenGL or how to keep track of objects in a 2D plane let alone a 3D one.
Reply With Quote
  #4  
Old 01-05-2004, 02:51 AM
DemonLama's Avatar
DemonLama DemonLama is offline
Regular
 
Join Date: May 2003
Location: Naaldwijk, TheNetherlands
Posts: 82
Default

Quote:
Originally Posted by reboot
I'm not sure how you expect us to answer such an incredibly vague question.



Ok I've written an program which includes an form with an Winsock control on it. This control will try to connect to an IP number at an certain port. But when I try to setup the connection I get this error. No matter what I change within the code.
Reply With Quote
  #5  
Old 01-06-2004, 06:33 AM
AndreRyan AndreRyan is offline
Contributor
 
Join Date: Jan 2002
Posts: 489
Default

Like I said, use System.Net.Sockets, because A) .Net gives more power and control then the Winsock Control and B) The winsock control is not compatible to start with, it will never work properly in a .Net application.
__________________
If you're a beginner or have little experience don't launch into something beyond your abilities, for example don't start game programming by trying to make a 3D first person shooter if you have no idea how to use DirectX and/or OpenGL or how to keep track of objects in a 2D plane let alone a 3D one.
Reply With Quote
  #6  
Old 01-30-2004, 09:08 AM
asgekars asgekars is offline
Newcomer
 
Join Date: Jan 2004
Posts: 1
Default Solution

Hey dude try this. B4 u say ws.accept requestID say ws.close
that should do it.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I wanna make my chat program accept more ppl at one time.... lilb29 Tech Discussions 14 12-19-2003 03:22 PM
Can run program in VB IDE but cannot run compiled EXE dawntrader Installation / Documentation 8 08-16-2003 08:37 PM
Run time error in exe but not when run through the source madman_rocks General 4 08-09-2003 03:09 PM
Run time error 6-over flow visualGuru General 8 03-18-2003 12:07 PM
HELP! Run time error w/ exe Medic General 3 01-19-2001 02:55 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Run-time error '40006' on chat program
Run-time error '40006' on chat program
Run-time error '40006' on chat program Run-time error '40006' on chat program
Run-time error '40006' on chat program
Run-time error '40006' on chat program
Run-time error '40006' on chat program Run-time error '40006' on chat program Run-time error '40006' on chat program Run-time error '40006' on chat program Run-time error '40006' on chat program Run-time error '40006' on chat program Run-time error '40006' on chat program
Run-time error '40006' on chat program
Run-time error '40006' on chat program
 
Run-time error '40006' on chat program
Run-time error '40006' on chat program
 
-->