C++ Builder

Moderators: Lundin
Number of threads: 518
Number of posts: 1158

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
TMemo access from within Thread Posted by phhvw on 23 Apr 2011 at 10:18 AM
Hi,

I'm using the old Borland Builder 5.0 C++.

My TForm dynamically creates a TThread. This TThread dynamically creates a TMemo.

It seems my application hangs when I execute a TButton click on my TForm accessing a TMemo function.

I'm using Windows 7. With XP (as far as I remember) this was no problem as long as I used a global pointer (outside any class) to this TMemo.

All hints and tips are welcome.

Thanks,

Henk

Report
Re: TMemo access from within Thread Posted by phhvw on 23 Apr 2011 at 10:50 AM
Hi,

just let me answer myself...

If I execute a TMemo->Clear() in the TThread constructor after having TMemo created then all works fine!

Thanks for listening anyway.

Henk




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.