[fpc-pascal]mysql package under WinNT

Mirek Novak mirek.novak at centrum.cz
Thu Mar 15 08:56:19 CET 2001


Hi,

Probable solution  of your problem is:

- use 3.22.* version of client, because mysql.pp lib _is_ for 3.22.*
client. There are some differences, in structures defined in client
header, between 3.22 and 3.23. I think /don't know exactly/ you can use
older client with new server but for to be sure ask someone at mysql.com,
for examle  via "MySQL mail list" <mysql at lists.mysql.com>.


Mirek Novak
Anima Publishers
www.auto.cz

Bernhard Steffen píše:

> ... but still one thing doesn't work:
>
> As soon as I run more than one query, I will get an WinNT error popup
> when calling mysql_close():
>         "Microsoft Visual C++ Debug Library
>         Debug Assertion Failed
>         Program:    <path> test.exe
>         File:       dbgheap.c
>         Line:       1011
>         Expression: _CrtIsValidHeapPointer(pUserData)
>         "
> - If I do an (A)bort, the program dies silently, no other command
>   after mysql_close() gets executed
> - If I do a (R)etry, I get yet another NT error: "unknown software
>   exception" (0x80000003) at position 0x100278AB; after that, my
>   program quits silently
> - If I do an (I)gnore, program will quit with an runtime error 216 at
>   the same position and a call stack trace gets printed
>
> I'm doing queries in the way as described in "testdb.pp", ie
> *** mysql_connect
> *** mysql_select_db
> *** one or more:
>         - mysql_query
>         - mysql_store_result
>         - one or more: mysql_fetch_row
>         - mysql_free_result
> *** mysql_close
>
> Anything I forgot?
>
> Since I updated, I'm now using MySQL 3.23.34 (debug version of client
> lib) on WinNT. Program is compiled with -gl -gh.
>
> Again, any help appreciated!
>
> Bernhard
>
> --
> http://www.bernhard-steffen.de/
> bernhard.steffen at gmx.net
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal





More information about the fpc-pascal mailing list