Requesting Object Dump
BlitzMax Forums/BlitzMax Programming/Requesting Object Dump
| ||
| Hey, I've been implementing a little debugger in my IDE and noticed that if you request and object dump of a TGadgets EventFilter you will crash the app. Not sure if this is a bug or not because i don't really know what I'm doing with this debugging stuff but everything else seems to be working ok and i would like to think the debug app would just return nothing rather than crash if i requested and object dump of some illegal memory or something.. |
| ||
| Sample code? Does it crash 'the' debugger or just yours? |
| ||
| It crashes the app you are debuging, not the app sending the request. The official debugger doesn't let you expand this entry in the tree. In my reworking I'm allowing the user to request the memory of any object. At first I thought this must be crashing because its a function pointer but in the little test app below the function pointer simply returns nothing.
SuperStrict
Function testFunction(blar:String)
Notify blar
End Function
Type tTest
Field fp(blar:String)
Field i:Int = 0
End Type
Local test:tTest = New tTest
test.fp = testfunction
test.fp("Hello")
Local gadet:tGadget = CreateWindow ("Window for Crashing",10,10,50,50)
DebugStop
|
| ||
| Hi, Moving this to programming as there doesn't appear to be anything reproducible! |
| ||
| ok.. i was thinking of making my little IDE available soon, I'll show you then. |