World: r4wp
[#Red] Red language group
older newer | first last |
Bo 3-Jul-2013 [9281] | Thanks for the advice and comments, everyone! I'm feeling really good about Red/System and the greater Red ecosystem now that I have a project under my belt. Kaj's been an immense help and I thank others also for their input! |
Arnold 3-Jul-2013 [9282] | No console input command yet for Red or Red/System prin "Number of sweets:" number-of-sweets: input number-of-kids: ask "How many kids?" Is the support planned? Will work nice with the kids sharing candy storyline making their program better. |
Kaj 3-Jul-2013 [9283] | Yes, there is, in my I/O binding and interpreter builds. The basic console has very little |
Bo 3-Jul-2013 [9284] | Kaj, you said that 'read-file in Red/System automatically defines a large enough memory space for the file. How about 'read-file-binary? That one has a 'size parameter. How can one determine how big to make that 'size parameter before reading the file? |
Kaj 3-Jul-2013 [9285x3] | You don't make it any size. It works the same as read-file and the READ function in REBOL: it allocates the storage for you |
In the case of read-string you get a c-string!, so you can get the size with LENGTH?. For read-file-binary that's not possible, so you pass a pointer to an integer! to be informed about the read size | |
Sorry, read-file | |
Bo 3-Jul-2013 [9288] | Thanks for that. Another detail I wasn't understanding correctly. |
Paul 3-Jul-2013 [9289] | Where is RED at these days in comparison to R3? |
Kaj 3-Jul-2013 [9290x2] | Glass half full, half empty :-) |
What are you interested in? | |
Paul 3-Jul-2013 [9292] | I guess more or less what is the major usuability items that are still lacking in each. Maybe you can answer that towards what RED still lacks as a major need. |
Kaj 3-Jul-2013 [9293] | Garbage collector, error trapping, objects, floating point, PARSE, other complex datatypes |
Paul 3-Jul-2013 [9294] | Some major ones there. |
Kaj 3-Jul-2013 [9295] | Yep, that's the glass half empty |
Paul 3-Jul-2013 [9296x2] | Thanks Kaj. |
There a timeline on those? | |
Kaj 3-Jul-2013 [9298] | More like an order than an ETA, but you'd have to ask Doc |
Paul 3-Jul-2013 [9299x2] | ok |
Good info - thanks. | |
DocKimbel 3-Jul-2013 [9301] | Hi Paul, we have some Windows drivers issues for you to solve, up to the challenge? ;-) |
Paul 3-Jul-2013 [9302x3] | Hehe. Possibly but got a new job that is hitting me hard. |
Working mostly in SAN/NAS Cloud technologies. | |
What is your most pressing windows driver issue? | |
DocKimbel 3-Jul-2013 [9305] | Kaj will explain it to you. :-) |
Paul 3-Jul-2013 [9306] | ok |
DocKimbel 3-Jul-2013 [9307] | Basically, we have a minifilter driver in Red/System that can be installed through an INF file, but when started (using `sc start`) we get either error 1058 or error 2 (File not found). |
Paul 3-Jul-2013 [9308x2] | SC is the service control manager command line utility |
Is the process created as a service? | |
DocKimbel 3-Jul-2013 [9310] | The INF file installs the filter driver as a service, yes. |
Paul 3-Jul-2013 [9311x2] | ok |
What is the verbose for 1058? | |
DocKimbel 3-Jul-2013 [9313] | Just thinking loud, does that mean that the filter driver has to respond to service commands? |
Paul 3-Jul-2013 [9314] | Yes most likely. |
DocKimbel 3-Jul-2013 [9315] | 1058: I don't know, that's Kaj's error. |
Paul 3-Jul-2013 [9316] | ok |
DocKimbel 3-Jul-2013 [9317] | Hmm, I guess we should try then implementing a suitable callback to answer properly to SCM commands... |
Paul 3-Jul-2013 [9318x2] | Yes, still not sure what SC seen as file not found though. But a process monitor from systems internals might tell us that. |
Run procmon.exe against it and see if it records a specific file not found. | |
Bo 3-Jul-2013 [9320] | Thanks for helping on this, Paul! |
Paul 3-Jul-2013 [9321] | Sure no problem. |
DocKimbel 3-Jul-2013 [9322] | Filemon: yeah, thanks for the reminder, forgot about it. |
Paul 3-Jul-2013 [9323x2] | Procmon is the newer version of Filemon. |
It gives you much more including registry, network, and profiling counters in addition to file system calls. | |
Kaj 3-Jul-2013 [9325] | Thanks, Paul |
Paul 3-Jul-2013 [9326x2] | When working with Windows debugging, I typically like to run a process through procmon.exe and dependancy walker profiling before tossing into the windows debugger. |
np | |
Kaj 3-Jul-2013 [9328] | 1058 is driver deactivated or couldn't bind to any devices |
Paul 3-Jul-2013 [9329] | ok, so I assume that was on another platform? Or was that also on windows? |
Kaj 3-Jul-2013 [9330] | However, the driver just has a skeleton success return entry point, it doesn't try to take any devices or anything yet |
older newer | first last |