before I'm diving in to boil down my code to get the exact code that fails, I'd like to ask if anyone of You have encountered problems with the XML file library on PB versions higher than 6.04?
The fifth line from the bottom in my code below fails hard every time - like if the nodes would be zero (which is not the case).
As soon as I use older versions of PureBasic everything is fine.
Yeah, I know the code doesn't say very much since I just made a snapshot of it as it is.

If this is a non heard of problem, I might take a deeper dive into this and try to isolate the exact code that can fail on PB6.10 and 6.11.
Code: Select all
Case "PATTERNS"
;Debug file$
*child = ChildXMLNode(*node)
flagDeleted = #False
While *child
If UCase(GetXMLNodeName(*child)) = "PATTERN" And ExamineXMLAttributes(*child) = #True
;Debug "patterns found"
a$ = GetXMLNodeText(*child)
If Left(a$, 2) = ".\"
a$ = Preferences::dataRoot$ + Right(a$, Len(a$) - 2)
EndIf
Debug "Pattern: " + file$ + " : " + a$
Select UCase(GetExtensionPart(a$))
Case "DXF", "CPX"
myNode = ChooseNode(xml, "MARKER/INSERTS/INSERT/")
n = 0
While myNode
If GetXMLAttribute(myNode, "PatID") = GetXMLAttribute(*child, "ID") ; this line fails every time with PB > 6.04
n + 1
EndIf
myNode = NextXMLNode(myNode)
Wend