Public Sub Main()
*Code*
MsgBox "Before set server"
Set frmServer = New netserver
MsgBox "Before load server"
Load frmServer
MsgBox "After load server"
*Code*
End Sub
As you can see, I left the traces there. I know that the error occurs during the load of my form because I don't get the message "After Load server". I have also put some traces in the Load method of the form and I can tell you that the error occurs before the load is called because a trace put in the first line of the load method never appeared.
The wierd thing is that the error doesn't show up on most of the computers where I installed the program. That's what made me think that I must have forgotten to distribute some controls (that are on the server form) with my program on some computers. So, I tried to use the MS distribution wizard (just to be sure that I distributed everything) with no success. After running the program installed with the wizard, the error was still there.
I'm now officially clueless.
Oh yes, and one more thing: I have two controls on my server form: a WinSock control (corresponding to the file mswinsck.ocx which I know is distributed and registered on all the computers) and a timer object.
That's it! If any of you have a clue of what I should try next, please please please let me know!
Thanks a lot in advance, Stephane.