Crash with user defined syntax schema

Started by Stefan, December 01, 2008, 01:59:43 PM

Previous topic - Next topic

Stefan

I do Tread hijacking, to keep things together, OK  ?  ;D

Hi alex, just FYI:

Quote from: alex on October 29, 2008, 01:10:00 AM

Then open new files and search for something similar to this:
<SYNTAX id="asm" name="ASM" inherit="def_source" inherit_url="defsource_spec.xml">
Here (everything is case sensitive):
id – unique id of the language (obligatory)
name – description of the language that would be used in UI
inherit – name of base (parent) schema. New schema would inherit all settings, styles of parent.
inhertit_url – name of parent schema file. Used only fir navigation between schemas when opened in browser (optional).

1) I copied an XML for my own use.
2)  Since i didn't have no "base (parent) schema"  (at least i think so) i empty the fields inherit and inhertit_url.
3) HE crashed while i try to open a new  "File > New > AutoHotkey > *.AHK"

---------------------------
CiceroUIWndFrame: HippoEdit.exe - Fehler in Anwendung
---------------------------
Die Anweisung in "0x1200d61e" verweist auf Speicher in "0x00000004". Der Vorgang

"read" konnte nicht auf dem Speicher durchgeführt werden.


Klicken Sie auf "OK", um das Programm zu beenden.
Klicken Sie auf "Abbrechen", um das Programm zu debuggen.
---------------------------
OK   Abbrechen   
---------------------------



          ---------------------------
HippoEdit.exe - Fehler in Anwendung
---------------------------
Die Ausnahme "unknown software exception" (0xc0150010) ist in der Anwendung an der Stelle 0x7c943345 aufgetreten.


Klicken Sie auf "OK", um das Programm zu beenden.
Klicken Sie auf "Abbrechen", um das Programm zu debuggen.
---------------------------
OK   Abbrechen   
---------------------------



My workaround was to write an 'a' in this fields inherit and inhertit_url.
<SYNTAX id="AHK" name="AutoHotkey" inherit="a" inherit_url="a">

Should i delete such fields i didn't use?
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

alex

#1
Because topic were really not connected, I have splitted them.

I would check scenario with empty inherit and inherit_url (I think crash was because of inherit).
Reason is probably that I only check that inherited attribute exists, and do not handle empty attribute case correctly. I would say it is a bug - because I need to except any schema and at least not crash.

And generally about the new syntax schema. Normally you need to inherit from def or def_text or def_source.
Because they have base definition for styles. Without defined there base settings a lot of functionality would not be available.
I would update FAQ section also.

Best regards,
Alex.

HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]