Try this:
Componnents->Install Component
Click your source file
then build dclusr50.bpk
Ok directly add your source file to dclusr50.bpk and install it
My probleme is simple...
I Run my Appli, No pb!
But when I terminate It, Either by close the Main window or by sending the WM_QUIT signal or by calling the
Application->Terminate() function
My appli calls a function Application.Free (in Controls.pas)
And in this function the GetHandle function...
For example, could it come from a TBitmap.SaveToFile(XXXX) in a directory where there is about 1000 or 2000 files? or a memcpy where I copy too much data for the ptr I use?
Thank U
Ok I've found what was wrong: I had to add a sleep command between The part I display messages, and the part I Return to the waiting function.
Thank You
Yes, I have to synchronize it with the main thread to get errors, so there is an event that I wait... When I get it.. I change my int value, I dislay my message and I wait for the next time the event is pulsed
The error is generated by the user: for example a client who has just disconnected...
The question I ask to the user is : "Is the link out of order? or will the client reconnect?"
Two choices: Wait for the client reconnection or kill the client in the server memory
Just after I ask...
I just change an int and enable two buttons for the user answer... (+ changing the active tabsheet) that's all!
No exception, no loop, no answer expected... (I've just checked all this)
I've got a PageControl in my main form with 5 TabSheets!
One of these is there to acquit errors...
Errors are controled by a thread that waits an event.
When The event is set The active sheet is errors and messages appear in a Memo, buttons are enabled by the event
When an error occurs, all is...
Here is a little code:
HANDLE hThread;
...
hThread=CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)ThreadFunc,(LPVOID) Param,0,ThreadID);
...
void ThreadFunc(LPVOID Param)
HANDLE hEvent;
hEvent=CreateEvent(NULL,FALSE,FALSE,NULL);
ResetEvent(hEvent);
WaitForSingleObject(hEvent,INFINITE);
...
I never...
What I would like to do is to execute an appli on a Computer and to debug It on another.. of course the two Computers communicate by TCP/IP.
It is very important because this appli can execute only on this computer!and I can't install Builder on it.
Is there a way to do that?
When I make a project the logical internal errors of the compiler appears, When I Build my project, It disappear (for twice ...)
How Can I avoid it? where does it come from?
I've created a chained list class, and I use it like a fifo.
In it, I put a class with an int inside. But if I push a value in the stack and immediatly I Pop It, the int value has changed (from '3' to '-12..... (don't remember the exact value but I think in Hexa it looks like FFFFFFFF)) why?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.