r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Ann-Reply] Reply to Announce group

Maxim
29-Sep-2010
[2122]
note that you cannot use the hostkit API directly, only the extension 
API.


what I did was a separate host-kit like header which creates defines 
for the functions I needed.  I added a platform #ifdef, so that it 
will automatically adapt to new platforms if I try to port it.
Andreas
29-Sep-2010
[2123x3]
ChristianE: I took the liberty of adapting your code to also allow 
building it as DLL. Here's the complete diff:

https://gist.github.com/fa147ed65ee752b23133
Building as hostkit-embedded extension is the default, the ODBC_DLL 
define triggers building as external extension.
This also adds a target to the makefile, that allows buidling the 
external dll via `make ../lib/ext-odbc.dll`.
ChristianE
29-Sep-2010
[2126x2]
Andreas, this is great! I'll apply the changes tomorrow evening since 
I'm not a my dev pc now, and put the DLL on the page for others to 
download and play it..
(play with it)
ChristianE
30-Sep-2010
[2128]
Andreas, thanks again for the diff ! I wouldn't have come up with 
the solution. I've just put the DLL online.
Graham
30-Sep-2010
[2129]
Perhaps you could write a small tutorial on how to create extension 
and dll while it's fresh in your mind :)
ChristianE
30-Sep-2010
[2130]
NIce idea, Graham.
PatrickP61
30-Sep-2010
[2131]
Please do!
Robert
5-Oct-2010
[2132]
Max is Renote like National Velocity?
Maxim
5-Oct-2010
[2133x6]
yeah, it seems to be very similar (You meant notational Velocity 
I guess ;-)

though the title is actually called tags, they are the same concept... 
only in renote, they are pushed on the right, to be less obstructive.
funny I never heard about NV, thought the idea is borne of the same 
thing... though renote already seems more powerfull with 3 days of 
dev behind it.
(because of macros)
note that I've tested with hundreds of notes and its still very fast., 
even the scrolling.
auto-tagging is also flexible, especially when you use the parent 
modes.  this automatically adds tags to your note based on the parent 
it is in.
this is done even when its grouped later.  


I will be adding a "get all children" command so that it can be used 
in macros. (add/remove tags to a whole group)
I also plan on adding other export modes, one being for make-doc 
 it would allow us to edit data and look at it via make-doc strings 
in a single click.
Henrik
25-Oct-2010
[2139]
Z:\Downloads\Applications\r3-cgr\cgr-apps\r3.exe


This application has failed to start because the application configuration 
is incorrect. Reinstalling the application may fix this problem.

Not sure what that means...
Maxim
25-Oct-2010
[2140]
I've never seen this error !  on what os?
Henrik
25-Oct-2010
[2141]
XP under VirtualBox
Robert
25-Oct-2010
[2142]
Sounds like corrupted EXE
Cyphre
25-Oct-2010
[2143]
Maxim, the exe doesn't work for me either. I'm gettingsomethinglike 
"There was an error during execution" or so in a Windows message 
box. Win XP here.
Maxim
25-Oct-2010
[2144x2]
what size was your zip.
it might have corrrupted on upload... ' :-/
Henrik
25-Oct-2010
[2146]
5.660.639 bytes
Maxim
25-Oct-2010
[2147x3]
darn, I just downloaded and unpacked it... works for me...  :-(
hum... ok. its correct... let me try something else.
are you able to start the r2.exe in the bin folder?
ChristianE
25-Oct-2010
[2150x2]
On Win7 when starting r3.exe I get "The application has failed to 
start because its side-by-side configuration is incorrect."
Maybe http://buffered.io/2008/05/17/resolving-side-by-side-configuration-issues/
has some hints ...
Maxim
25-Oct-2010
[2152x2]
ahhh... compiled using debug mode.!
ok.... this is going to take a few minutes... since I have to update 
the release mode so it has the same setup as the debug mode.
amacleod
25-Oct-2010
[2154x2]
I got it to work...pretty cool. Maxim!
What's with r2 stuff...does this work under R2 too? I thought this 
was R3 stuff only?
Pekr
25-Oct-2010
[2156]
Is this just nice excercise to show the possibilities, or is there 
any feedback from Carl, if he is willing to extend API to support 
such stuff?
Maxim
25-Oct-2010
[2157x3]
no its just that I'm using r2 to build files.
pekr, its not just an exercise.


and yes Carl is interested, it just wasn't obvious what would make 
it easier to hook into, now we have something to look at and discuss.
I am unable to get the external dll working when doing a Release 
level build.  it compiles without any errors... 


but when running the same script which is working in debug mode, 
I get this  error in the console:


** access error: cannot open: %opengl-cgr.dll reason: "not found 
or not valid"

very strange
Steeve
25-Oct-2010
[2160]
Perhaps because of the option -s "which strip the symbols from binary"
Robert
25-Oct-2010
[2161]
Some things that might cause it:
- memory alignment
- uninitialized globals that are used
- missing entry points (use something like dump to see it)
Maxim
25-Oct-2010
[2162x3]
might be the struct alignment.... I just found that it wasn't set 
in release level
yep... that was it  :-)
updated R3-CGR with a Release compiled build.  please test, thanks.

http://www.pointillistic.com/open-REBOL/moa/files/r3-cgr.zip
Henrik
25-Oct-2010
[2165]
OK, now I get an error that I don't have HW acceleration in virtual 
box, so I guess that's a good sign. :-)
Maxim
25-Oct-2010
[2166]
:-) yep...
ChristianE
25-Oct-2010
[2167]
Crashing on Win7 after printing

... (several lines omitted ..)
1362:polygon  : 1362
--------------------------------------------------
POLYGON PRIMITIVE
...
-->Select_Float_Array()
-->HT_Select()
(crash)
Andreas
25-Oct-2010
[2168]
For those interested in a quick overview of the changes in the hostkit, 
here's a diff between CGR-A109 and RT-A109:
https://gist.github.com/9d6d0330b88d6d5419b1
Maxim
26-Oct-2010
[2169x3]
I was out of town, back now... Christian, yes it seems there are 
still one or two compile things to figure out, I'm getting random 
crashes too.
oddly, in debug mode its 100% stable.
Andreas thanks for that.... 


that is exactly why I spent a day re-organizing my code base so that 
the host and the CGR system are now almost separate.  

its now very easy to see what little changes are required for CGRs 
to work.  


though a few tweaks in the host would make CGRs a bit faster and 
simple to use.