For your information I am running FC7. I have now done a little more research.
The "mysql_init(PMySQL(@qmysql));" statement appears to be writing beyond the structure size of Mysql_res, about 860 bytes beyond I would say. Possibly even further.
How do I know this? Well, I put an array right behind qmysql of 1000 integers and right before executing the mysql_init, I filled it up with integers (1 - 999) and then right after executing the mysql_init I printed them. The array appeared to be clobbered up until 429th integer. My program is still behaving kind of oddly though and something may still be getting clobbered further down in the memory.
Terry