Fernando
09-05-2003, 10:49 PM
Hi guys.
I'm a C++ programmer that started to program with Delphi, and have a few question..
I don't know what happens, but sometimes, when executing my program, a nice and uggly screen called 'CPU' appears. It has a lot of assembly coding, and in front of it, a message dialog with 'access violation at 0xbff, etc'.
I'm sure that my code is not wrong... And I think this problem is related to threads...
I'm not using threads on my application, but it seems that a lot of components in delphi use it.
When I execute my program, I have a few impression that after calling a function, the program doesn't wait until it finishs to return. The program returns, and continue executing the function on the background. And I think this cause the 'access violations' that I'm getting.
Is there a way to avoid this?
Thank you, and sorry for the bad english... (i'm brazillian).
Fernando.
I'm a C++ programmer that started to program with Delphi, and have a few question..
I don't know what happens, but sometimes, when executing my program, a nice and uggly screen called 'CPU' appears. It has a lot of assembly coding, and in front of it, a message dialog with 'access violation at 0xbff, etc'.
I'm sure that my code is not wrong... And I think this problem is related to threads...
I'm not using threads on my application, but it seems that a lot of components in delphi use it.
When I execute my program, I have a few impression that after calling a function, the program doesn't wait until it finishs to return. The program returns, and continue executing the function on the background. And I think this cause the 'access violations' that I'm getting.
Is there a way to avoid this?
Thank you, and sorry for the bad english... (i'm brazillian).
Fernando.