segmentation fault



Hi!

this problem has been a headache for about 2 hours now and i just cant figure it out.

ive got a c program that connects to a DB via mysql.
currently ive got 2 querys. the first worked just fine but when it comes to the 2nd ive got an error: segmentation fault.


my query is fine tried it out directly.

i init the db with
dbHandle = mysql_init(0)
dbHandle = mysql_realconnect(dbHandle, host, pass.... blahbla)

as soon as the program comes to

mysql_query(dbHandle, str_query1);

it throws the seg fault

as i said the first q works without probs.
could it be that the dbHandle has been changed during the first q?

any help would be appricated

thx and greez
.



Relevant Pages

  • Re: Is this the right place...
    ... Rack Jite wrote: ... You haven't been doing any work in the garden with a rake again have you? ... best OTC cure you're going to find is a BC headache powder. ...
    (alt.support.chronic-pain)
  • Usb mouse frozen randomly
    ... apt-get) and i cant move the mouse. ... I unplug the usb and plug again and ... But its really headache. ...
    (Debian-User)
  • Re: OT: A few brain teasers
    ... Frank, you are a torturer, I cant give myself a headache, lol ... Have a wonderful trip ...
    (alt.support.diabetes)