Recent

Author Topic: 'External: SIGSEGV' and Application.ProcessMessages  (Read 4274 times)

Kunstbanause

  • New Member
  • *
  • Posts: 47
'External: SIGSEGV' and Application.ProcessMessages
« on: October 20, 2008, 09:33:50 am »
Hi,

I've written a component to find files within a given directory.
I use Application.ProcessMessages to give the user of the application the possibility to cancel the search.

When starting the search the first time after the application started it works as designed (no error message). But when using it a second time, I get the following error message:
http://www.myrasmussen.de/bilder/sigsegv_error.png

Using the debugger, I figuered out that the error occurs when call Application.ProcessMessages

I get this error on Windows XP SP2 and an Windows Vista Ultimate (both 32bit).

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1890
RE:
« Reply #1 on: October 20, 2008, 11:51:55 am »
There must be something wrong with your code.
The error message and your description don't say enough to help you.

Kunstbanause

  • New Member
  • *
  • Posts: 47
RE:
« Reply #2 on: October 20, 2008, 03:20:20 pm »
Will it help when I upload the project (including the component)?

duncanparsons

  • Jr. Member
  • **
  • Posts: 83
RE:
« Reply #3 on: October 20, 2008, 03:25:06 pm »
sigsegv is an equivalent to EInvalidPointer in delphi. You must have a call to an object that has already been freed or a nil pointer in your message loop.

You'll just have to comb through the code to find where it is! It may be that it is caused by something outside that procedure, but the effect is seen there, so beware :)

ATB
DSP