It runs!
Thank you!
'Invalid memory Access' with GTK-API
'Invalid memory Access' with GTK-API
Last edited by Pinhead on Sat Sep 10, 2005 12:39 am, edited 1 time in total.
The last parameter must be the pointer to a long variable to receive the cursor position after the text was inserted.
Also you should probably remove the "+1" there from datenmenge.l
gtk_editable_insert_text_(GadgetID(#Editor_1),*Buffer,datenmenge.l,@position.l)
Also you should probably remove the "+1" there from datenmenge.l
gtk_editable_insert_text_(GadgetID(#Editor_1),*Buffer,datenmenge.l,@position.l)
quidquid Latine dictum sit altum videtur
I tried this:
In the characters in the editor are not showabel, I only see squaers...
The Input file is a html file
Code: Select all
If ReadFile(#File_1, File.s)
laenge=FileSize(File.s)
*Buffer.b = AllocateMemory(laenge)
If *Buffer
datenmenge.l = ReadData(*Buffer, laenge)
CloseFile(#File_1)
*Buffer = AllocateMemory(datenmenge.l)
*position.l=AllocateMemory(1)
PokeB(*position,0)
gtk_editable_insert_text_(GadgetID(#Editor_1),*Buffer,datenmenge.l,@position.l)
Else
MessageRequester("Fehler", "Speicher nicht reserviert!", 0)
EndIf
Else
The Input file is a html file