pureDispHelper & nBit control crash on release object
Posted: Thu May 03, 2007 9:09 am
Hi.
I am trying the demo version of the http://www.nbit.net.au HTML editor with pureDispHelper.
This crashes with "invalid memory access" on dhReleaseObject.
If I don't use the windowID or gadgetID in createobject, it fails to load.
If I do use either, it loads and is editable but crashes with "invalid memory access" on release.
Also:
No errors are reported but setting/getting properties fails (just doesn't happen). Eg:
I am obviously missing some major point here.
Can anyone help?
Aside and on another note altogether. How do you pass a word (2 byte integer) value in dhPutValue? ("%w" is not recognised).
I am trying the demo version of the http://www.nbit.net.au HTML editor with pureDispHelper.
This crashes with "invalid memory access" on dhReleaseObject.
Code: Select all
dhToggleExceptions(#True)
OpenWindow(1, 0,0, 800,600, "Test")
CreateGadgetList(WindowID(1))
ContainerGadget(1,10,10,600,300)
CloseGadgetList()
; oEd = dhCreateObject("rmpHTML.HTMLEd", WindowID(1)) ; Okay, but fills window
oEd = dhCreateObject("rmpHTML.HTMLEd", GadgetID(1)) ; Okay
Debug oEd
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow
dhReleaseObject(oEd) ; Crash if windowID or gadgetID used in dhCreateObject
; -- Invalid Memory Access --
; Crashes on first internal IDE comment line following this line.
; so assume it is this lineIf I do use either, it loads and is editable but crashes with "invalid memory access" on release.
Also:
No errors are reported but setting/getting properties fails (just doesn't happen). Eg:
Code: Select all
w.s="<div>abc</div>"
dhPutValue(oEd, ".DocumentHTML = %s", @w)Can anyone help?
Aside and on another note altogether. How do you pass a word (2 byte integer) value in dhPutValue? ("%w" is not recognised).