pg.ddx.io pgsql-interfaces@postgresql.org mailing list archivehelp / color / mirror / Atom feed
libpq msvc crashing 2+ messages / 2 participants [nested] [flat]
* libpq msvc crashing @ 2003-04-29 00:18 Garfield Palmer <Garfield.palmer@beckfield030303.freeserve.co.uk> 0 siblings, 0 replies; 2+ messages in thread From: Garfield Palmer @ 2003-04-29 00:18 UTC (permalink / raw) To: pgsql-interfaces Hi Has anyone had problems running the testlibq in xp using msvc or encounterd this problem. I am using postgresql 7.3.1, which if I run two command shell (one as a server) it works fine. I only encounter problems when I try to run msvc. I am fairly new to postgresql, so I am basically trying to get the example programs to work, so that I know that the C programme communicates with the server, however everytime the programme compiles, It crashes. A college lecturer has looked at the code and commented out a lot of the code to establish where its going wrong, to us it seems it does not like the line of code /* make a connection to the database */ conn = PQsetdb (pghost, pgport, pgoptions, pgtty, dbName); libpq.dll, libpq.lib and header files are included, pghost and pgport are set, we are not sure on pgoption and pgtty though, however we have simulated different scenarios and hit the same result. Compiles then CRASH, can anyone help. Thanks Garfield palmer_garfield@hotmail.com ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: libpq msvc crashing @ 2003-05-05 13:06 Christoph Haller <ch@rodos.fzk.de> 0 siblings, 0 replies; 2+ messages in thread From: Christoph Haller @ 2003-05-05 13:06 UTC (permalink / raw) To: pgsql-interfaces; +Cc: Garfield.palmer@beckfield030303.freeserve.co.uk > Has anyone had problems running the testlibq in xp using msvc or encounterd= > this problem.=20 > > I am using postgresql 7.3.1, which if I run two command shell (one as a ser= > ver) it works fine. I only encounter problems when I try to run msvc. I am = > fairly new to postgresql, so I am basically trying to get the example progr= > ams to work, so that I know that the C programme communicates with the serv= > er, however everytime the programme compiles, It crashes. A college lecture= > r has looked at the code and commented out a lot of the code to establish w= > here its going wrong, to us it seems it does not like the line of code > > /* make a connection to the database */ > conn =3D PQsetdb (pghost, pgport, pgoptions, pgtty, dbName); > > > libpq.dll, libpq.lib and header files are included, pghost and pgport are= > set, we are not sure on pgoption and pgtty though, however we have simulat= > ed different scenarios and hit the same result. Compiles then CRASH, can an= > yone help.=20=20 > Could we see what's going on before calling PQsetdb, especially what type of variable dbName is and how it is set. Regards, Christoph ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-05-05 13:06 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2003-04-29 00:18 libpq msvc crashing Garfield Palmer <Garfield.palmer@beckfield030303.freeserve.co.uk> 2003-05-05 13:06 Re: libpq msvc crashing Christoph Haller <ch@rodos.fzk.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox