Search found 1000 matches

by LCMark
Wed Apr 10, 2019 12:05 pm
Forum: LiveCode Builder
Topic: Memory exhausted
Replies: 4
Views: 336

Re: Memory exhausted

@pink: That error is generated by the lc-compile command-line tool which compiles lcb into modules. The error you are getting typically arises if you have a single handler with a very large number of commands in it (it's a limitation of the parser generator we use for the LCB parser). You can avoid ...
by LCMark
Mon Mar 25, 2019 10:47 am
Forum: Talking LiveCode
Topic: Find offset of first and last char of Word x in a field
Replies: 8
Views: 366

Re: Find offset of first and last char of Word x in a field

@kaveh1000: I think you are looking for the 'charIndex' property. e.g. Given a field (1) containing "Hello World Again!":

Code: Select all

put the charIndex of char 1 of word 2 of field 1 -> 7
put the charIndex of char -1 of word 2 of field 1 -> 11
This should work for any chunk - so trueWord too.
by LCMark
Thu Mar 14, 2019 9:30 am
Forum: Engine Contributors
Topic: new location for extensions?
Replies: 14
Views: 1387

Re: new location for extensions?

@mwieder: You might want to use this instead - revEnvironmentExtensionsPath() :)
by LCMark
Wed Mar 13, 2019 7:25 am
Forum: Engine Contributors
Topic: new location for extensions?
Replies: 14
Views: 1387

Re: new location for extensions?

@mwieder: As far as I'm aware the 9.1-dp-1 (when it appears) won't change anything in regards to where things are stored in a built/deployed distribution. When you build from source, it isn't quite the same though - the extensions are built into packaged_extensions (they always have been) and then t...
by LCMark
Fri Aug 17, 2018 7:50 am
Forum: Linux
Topic: Printing to pdf issue
Replies: 12
Views: 1160

Re: Printing to pdf issue

@Scoperzor: There's not many reasons that open printing to pdf <filename> can fail. It throws an error if it can't find the pdfprinter library (or it doesn't load) - which isn't the case here. Otherwise 'printing failed' would indicate a failure to open the <filename> for create/write; memory exhaus...
by LCMark
Mon Aug 13, 2018 8:27 pm
Forum: LiveCode Builder
Topic: AmongKeysOfArray issues
Replies: 3
Views: 465

Re: AmongKeysOfArray issues

@pink: The problem here is that pData[tKey] is not necessarily an array. Try: private handler setData(in pData as Array) variable tCount as Number variable tKey as String put the number of elements in pData into mCount repeat with tCount from 1 up to mCount put tCount formatted as string into tKey i...
by LCMark
Mon Aug 13, 2018 7:24 pm
Forum: Off-Topic
Topic: Expired licence
Replies: 25
Views: 3350

Re: Expired licence

@richmond62: Yes - that is correct. Whilst all editions are derived from the same source-base (commercial has private code included which is not under GPL though), we own the copyright on the code so we (as in LiveCode Ltd.) are allowed to distribute things we build from it under any license we choo...
by LCMark
Mon Aug 13, 2018 10:54 am
Forum: Feature Requests
Topic: Multi Threadedness ?
Replies: 67
Views: 4743

Re: Multi Threadedness ?

@FourthWorld: Irksomely I wrote a response to the above then it got eaten because I had been logged out of the forums (due to timeout). Anyway - I've reviewed the code in the engine for this and the engine change is unlikely to happen soon. However, that being said, wrapping the current functionalit...
by LCMark
Mon Aug 13, 2018 10:50 am
Forum: LiveCode Builder
Topic: One extension with multiple native library implementations
Replies: 4
Views: 774

Re: One extension with multiple native library implementations

Just to expand on what Ali and Trevor mentioned about this... The LCB runtime does not bind to a foreign handler until it is used - so you can have all bindings for all platforms in one module. Even if we change this at some point (for efficiency reasons) it would still work the same way from the po...
by LCMark
Sat Aug 11, 2018 11:58 pm
Forum: Feature Requests
Topic: Multi Threadedness ?
Replies: 67
Views: 4743

Re: Multi Threadedness ?

@FourthWorld: In not-quite reverse order (just because...) Though I'm focused on what I can do with the engine we have now, it may also be helpful to plan ahead: do you foresee a specific future version in which "open process" would include callbacks? Indeed - as am I - although I did mention a few ...
by LCMark
Sat Aug 11, 2018 6:38 pm
Forum: Feature Requests
Topic: Multi Threadedness ?
Replies: 67
Views: 4743

Re: Multi Threadedness ?

FourthWorld: Why not use local sockets for IPC? Indeed, you can do that - you can create a socket in the parent process, then you can pass the port you get for that as an argument to the child process, the child process connects to the parent, and you can carry on your merry way... However then you...
by LCMark
Sat Aug 11, 2018 5:57 pm
Forum: Feature Requests
Topic: Multi Threadedness ?
Replies: 67
Views: 4743

Re: Multi Threadedness ?

@Mikey The two paragraphs on the script library I removed because I missed the part where you mentioned adding processes to the engine and doing the rest with a script library. What I thought you were saying was that we could approximate threads with a script library (which is what we're attempting ...
by LCMark
Sat Aug 11, 2018 5:17 am
Forum: Feature Requests
Topic: Multi Threadedness ?
Replies: 67
Views: 4743

Re: Multi Threadedness ?

@FourthWorld: Probably - although I'd be inclined to say that the window manager concept on Linux is one giant bug ;) Although, I'm pretty sure window modal dialogs on Linux did work at some point and, indeed, application modal dialogs should stack... By the way, which part in regards to async-frien...
by LCMark
Sat Aug 11, 2018 2:39 am
Forum: Off-Topic
Topic: Another way of assessing LiveCode
Replies: 64
Views: 6916

Re: Another way of assessing LiveCode

@richmond62: I'm not sure we consider ourselves moomins - as I think we occasionally show some rather sharp teeth (although always regret doing so after the event). The use of moomin as a local dialectual synonym of 'refactor' was mainly to allow us to keep using the notion in the office without cau...
by LCMark
Sat Aug 11, 2018 2:04 am
Forum: Feature Requests
Topic: Multi Threadedness ?
Replies: 67
Views: 4743

Re: Multi Threadedness ?

@Mikey: Heh - yes. Armed with the knowledge I extracted from the 4D docs yesterday, and with your very eloquent description of your system, I have a much greater understanding of both. Indeed, I *think* it has helped me finally solve a problem (or at least put me on a path to solve a problem) which ...

Go to advanced search