Search found 2654 matches
- Apr 03, 2016 17:46
- Forum: General
- Topic: ? invalid pointer ? [SOLVED]
- Replies: 7
- Views: 592
Re: ? invalid pointer ?
I did correct that mistake, yes. stringize_array( array ) is called to save a JSON variable as a JSON object. Here is the entire file with an example. As you can see it works. However, the pass segfaulted when there was an array of objects (of the exact same type as the example) with over 2 million ...
- Apr 03, 2016 13:34
- Forum: General
- Topic: I need someone to defeat my string splitting algo
- Replies: 113
- Views: 7907
Re: I need someone to defeat my string splitting algo
Never mind. Text was empty.
- Apr 03, 2016 13:33
- Forum: General
- Topic: I need someone to defeat my string splitting algo
- Replies: 113
- Views: 7907
Re: I need someone to defeat my string splitting algo
I'll take a look through later when I'm back home. But under -EXX (compiled under Linux LXLE) I'm getting an illegal function call on the line:
redim preserve outArr(numberSubString-1)
(Windows too. It does not want to compile under -exx.)
redim preserve outArr(numberSubString-1)
(Windows too. It does not want to compile under -exx.)
- Apr 03, 2016 13:15
- Forum: General
- Topic: ? invalid pointer ? [SOLVED]
- Replies: 7
- Views: 592
Re: ? invalid pointer ?
I'm not sure seeing the code would help. It only happens given the condition that I send a JSON array with 2 million indexes to a stringize function. The offending code is somewhere in here: function stringize_array( byref v as variable ) as string if v.typ <> varType._ARRAY_ then return ""...
- Apr 03, 2016 3:14
- Forum: General
- Topic: I need someone to defeat my string splitting algo
- Replies: 113
- Views: 7907
- Apr 03, 2016 3:09
- Forum: General
- Topic: ? invalid pointer ? [SOLVED]
- Replies: 7
- Views: 592
? invalid pointer ? [SOLVED]
Wtf is that?
*** Error in `./stat_builder': free(): invalid pointer: 0xbff3dfe8 ***
Aborting due to runtime error 14 ("abnormal termination" signal) in /home/jynx/Desktop/im4/json_parser.bas::()
- Apr 03, 2016 1:21
- Forum: General
- Topic: I need someone to defeat my string splitting algo
- Replies: 113
- Views: 7907
Re: I need someone to defeat my string splitting algo
This is much faster. Pre processes the spots where delims are then uses mid to carve up the string. Array is then copied to eliminate empty indexes. sub splitOver2( byval txt as string, byval delim as string, outArr() as string ) txt &= chr( delim[0] ) dim as integer spots(), lentxt = len(txt)-1...
- Apr 03, 2016 0:24
- Forum: Projects
- Topic: JSON library (0.20.2)
- Replies: 37
- Views: 19376
Re: JSON library (0.11)
I made a JSON parser awhile back. Out of curiosity, can yours parse indefinitely nested arrays and objects? Mine has no XML compatibility.
- Apr 03, 2016 0:13
- Forum: General
- Topic: I need someone to defeat my string splitting algo
- Replies: 113
- Views: 7907
I need someone to defeat my string splitting algo
The algorithm must be able to split a string over multiple delimiters (not just one). It outputs the split strings as an array. The algorithm works well for a standard text of 1 million chars or less. But when it gets around 16 million, well.. Hours of my life are robbed from me. The call goes like ...
- Mar 23, 2016 18:58
- Forum: General
- Topic: Segfault in Let Operator
- Replies: 2
- Views: 422
Re: Segfault in Let Operator
Derp. Thanks fxm. Obvious mistake.
- Mar 23, 2016 14:45
- Forum: General
- Topic: Segfault in Let Operator
- Replies: 2
- Views: 422
Segfault in Let Operator
I can't seem to hunt down the reason for this segfault. I've traced the problem to the LET operator :: variable.Let( byref rhs as variable ) :: but I can't seem to figure out how to fix it. Maybe I'm tired or my brain is fried but any help would be appreciated. #include once "parsing.bas" ...
- Mar 23, 2016 14:42
- Forum: General
- Topic: Macro Possible Bug
- Replies: 13
- Views: 1102
Re: Macro Possible Bug
Macros process code the exact same way the compiler does. It is a literal swap. That means that it should process the code identically to how the compiler processes it, but in this case, and for an unidentified reason, it was eating one of the lines (the first line in the macro).
- Mar 22, 2016 20:32
- Forum: General
- Topic: Dynamic Arrays in UDT Constructor Crash [SOLVED]
- Replies: 8
- Views: 747
Re: Heap Overflow?
That would explain it. There are dynamic arrays in the UDT.
- Mar 22, 2016 16:38
- Forum: General
- Topic: Dynamic Arrays in UDT Constructor Crash [SOLVED]
- Replies: 8
- Views: 747
Re: Heap Overflow?
The answer to your question is *probably*. I don't think there would be any issues with initializing a shared UDT in a constructor at this stage of FB's development that no one else has run into before mine. That being said, I don't know exactly what in there it's crashing on. And I don't know why -...
- Mar 21, 2016 22:00
- Forum: General
- Topic: Macro Possible Bug
- Replies: 13
- Views: 1102
Re: Macro Possible Bug
No, that won't work. The colon starts a new line.