On Thu, 13 Oct 2016 16:41:41 -0700 (PDT) Andrew Price <aprice2...@gmail.com> wrote:
> I have a program that accesses a MS SQL Server via > github.com/denisenkom/go-mssqldb. This from my windows 7 dev box. > > It works beautifully when I start it by "go run prog.go", but when > started as just "prog.exe" it gives the dreaded "dial tcp > 10.1.11.23:1433 socket: An invalid argument was supplied." error. > > Connection strings are identical in both cases. > > I haven't tried on linux yet. > > Any ideas anyone? Windows firewall issue by any chance? `go run` works in a way that the resulting temporary application is run by a Go host process; when you run your built application, it's started by another process -- a console process or Explorer or whaterev -- depending on how do you start it. Since Windows firewall is tightly integrated with the userspace this could make a difference IMO. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.