Segmentation fault



My program is structured in this way:

I have two buttons: START and STOP.

Clicking on START lanches the computation of a great quantity of datas. Computation is done using recursion. 
The recursive function, everytime is called, checks a variable called stop, passed to the fuction by 
reference. If *stop == TRUE, function returns, otherwise the recursion continues.

Clicking on button STOP, the variable *stop is setted to TRUE.

Program is running without any problem under Linux, while under Windows, when clicking STOP I get 
segmentation fault.

Here is the backtrace.

Program received signal SIGSEGV, Segmentation fault.
0x0040279e in enter_callback ()
(gdb) bt full
#0  0x0040279e in enter_callback ()
No symbol table info available.
#1  0x62743935 in _libuser32_a_iname ()
   from /cygdrive/c/Dev-Cpp/workspace/ganag/package/libgobject-2.0-0.dll
No symbol table info available.
#2  0x00000001 in ?? ()
No symbol table info available.
#3  0x0023f290 in ?? ()
No symbol table info available.
#4  0x0023f178 in ?? ()
No symbol table info available.
#5  0x00000000 in ?? () from
No symbol table info available.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]