Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have this situation:

program A which sends a sql query to a mysql client which in turns triggers (on update table T event) a user defined function in a dll B which updates a variable v.

program A then uses another function of the same dll B to read the variable v.

The variable v is declared in a shared data segment following the tecnique you describe in the article "How to share a data segment in a DLL".

I implemented functions in the dll to set and get the value of v.

My effort is to implement automatic update of the program's A variable v when the table T is updated by a remote query.

It happens that the modification of v made by the mysql client don't reflect themselves in program A and viceversa, as v was not shared.

But the things work fine if I perform a test with two (or more) instances of program A or two (or more) instances of the mysql client, instead of program A and mysql client.

Please help.

D.Iracà
Pisa Italy
Email address removed
Posted
Updated 4-Sep-10 2:30am
v2

1 solution

Have you seen this post [^] in the article's thread?
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900