comp.lang.ada
 help / color / mirror / Atom feed
* raised CONSTRAINT_ERROR : sudoku_choose_chr_cb.adb:57 access check failed
@ 2020-01-22  6:58 L Dries
  2020-01-22 12:04 ` Jeffrey R. Carter
  0 siblings, 1 reply; 2+ messages in thread
From: L Dries @ 2020-01-22  6:58 UTC (permalink / raw)


The line (57):
Append_Text(Choose_Chr_Dialog.Str_Combo_Choose_Char, 
To_String(symbols(n, 2)));

gives:

raised CONSTRAINT_ERROR : sudoku_choose_chr_cb.adb:57 access check failed

the value of n = 1 declaration of symbols(0 .. 36, 1 ..3) array of 
unboumded_string

output of symbols(n, 2) as well as To_String(symbols(n, 2)) results in A 
which is the value present in  symbols(n,2)

In other parts of the program this statement does not present problems

The statement is used in then On_OK routine of another Dialog. Of that 
Dialog the is Ended before Appen_Text is called
-- 
L. Dries

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: raised CONSTRAINT_ERROR : sudoku_choose_chr_cb.adb:57 access check failed
  2020-01-22  6:58 raised CONSTRAINT_ERROR : sudoku_choose_chr_cb.adb:57 access check failed L Dries
@ 2020-01-22 12:04 ` Jeffrey R. Carter
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey R. Carter @ 2020-01-22 12:04 UTC (permalink / raw)


On 1/22/20 7:58 AM, L Dries wrote:
> 
> raised CONSTRAINT_ERROR : sudoku_choose_chr_cb.adb:57 access check failed

This usually means trying to dereference a null access value.

-- 
Jeff Carter
"That was the most fun I've ever had without laughing."
Annie Hall
43


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-22 12:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-22  6:58 raised CONSTRAINT_ERROR : sudoku_choose_chr_cb.adb:57 access check failed L Dries
2020-01-22 12:04 ` Jeffrey R. Carter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox