pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Haller <ch@rodos.fzk.de>
To: pgsql-interfaces@postgresql.org
Cc: Garfield.palmer@beckfield030303.freeserve.co.uk
Subject: Re: libpq msvc crashing
Date: Mon, 05 May 2003 15:06:38 +0200
Message-ID: <3EB661DE.59A026E1@rodos.fzk.de> (raw)

> 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




view thread (2+ messages)

Message-ID: <3EB661DE.59A026E1@rodos.fzk.de>
Permalink:  ../3EB661DE.59A026E1@rodos.fzk.de/
Also on:    postgresql.org/message-id/3EB661DE.59A026E1@rodos.fzk.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: ch@rodos.fzk.de, Garfield.palmer@beckfield030303.freeserve.co.uk
  Subject: Re: libpq msvc crashing
  In-Reply-To: <3EB661DE.59A026E1@rodos.fzk.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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