Hi
I try to use the TOracleQueue component. I have made the following actions:
1. Create new project
2. Drop on the form TOracleSession, TOracleQueue and TButton components.
3. Set TOracleQueue.Session property
4. Set TOracleQueue.QueueName property
5. Set to True TOracleQueue.ThreadSynchronized
6. Set DequeueOptions.Wait = 5
5. type the following code in TForm1.Button1Click:
6. type the following code in TForm1.OracleQueue1ThreadError:
7. Run project and connect to DB
8. Press on button and start thread.
In Memo1 I get the following message:
OCI-21700: object does not exist...
OK, my user don't have any permissions for dequeue, it's normal, but my application buzzed after this! I can not close it! Only "Program Reset" menu item returns me into IDE.
I have a number similar problems with stopping in thread mode.
For example: I wrote the following code in OracleQueue1ThreadStop handler:
I try to use the TOracleQueue component. I have made the following actions:
1. Create new project
2. Drop on the form TOracleSession, TOracleQueue and TButton components.
3. Set TOracleQueue.Session property
4. Set TOracleQueue.QueueName property
5. Set to True TOracleQueue.ThreadSynchronized
6. Set DequeueOptions.Wait = 5
5. type the following code in TForm1.Button1Click:
Code:
OracleQueue1.StartThread;
Code:
Memo1.Lines.Add(ErrorMessage);
OracleQueue1.StopThread;
8. Press on button and start thread.
In Memo1 I get the following message:
OCI-21700: object does not exist...
OK, my user don't have any permissions for dequeue, it's normal, but my application buzzed after this! I can not close it! Only "Program Reset" menu item returns me into IDE.
I have a number similar problems with stopping in thread mode.
For example: I wrote the following code in OracleQueue1ThreadStop handler:
Code:
Memo1.Lines.Add('Thread Stopped');/CODE]
and after StopThread my programm buzzed!
Why?