Re: Can't use TComponent in thread object?



brett wrote:
That does compile but when I create the thread in another unit as

thread.Create(true);

Please copy and paste your real code. Otherwise, you get people pointing out errors that you might have just introduced while trying to retype your code from memory.

I get this error after running the above line:

Debugger Exception Notification
Project myapp.exe raised exception class EAccessViolation with message
'Access' violation at address 00403B6A in module 'myapp.exe'. Read of
address 8BD88B4F'. Process stopped. Use Step or Run to continue.

Do you have any suggestions for that?

My suggestion: Look at the call stack in the debugger and figure out why your program crashed. Both the addresses in the error message are non-zero, which is a very good sign.

--
Rob
.



Relevant Pages

  • Re: array error: variable is undefined
    ... Can you copy and paste the real code and the real error, ... >I freehanded the error message instead of copy/paste and goofed, ... > does specify m_arrProducts. ... >> Ray at work ...
    (microsoft.public.inetserver.asp.general)
  • Re: Error Trapping for trying to run an exe file without supporting files
    ... the easiest way to do this is to check for the file presense ... before running any real code. ... files are you just show the user an error message and exit the ...
    (microsoft.public.dotnet.languages.vb)
  • Re: JSP form beginner question
    ... generates an error message using a Map of error messages. ... It compiles fine ... Why not post the real code? ...
    (comp.lang.java.help)
  • Re: GetStringChars should be simple
    ... Post your real code if that isn't it (don't retype it when you post). ... If that *is* your real code, then you should probably brush up on some ... [do not email me copies of your followups] ...
    (comp.lang.java.programmer)