http://translate.google.com/translate?sl=auto&tl=fr&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fv8-users%3Fpli%3D1

http://translate.google.com/translate?hl=en&sl=auto&tl=ar&u=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fv8-users%3Fpli%3D1

2012/1/26 Mounir Belhadj <[email protected]>:
> Messieurs,
>   BONJOUR ; C'est bien BELHADJ MOUNIR de TUNISIA avec vous je pense
> que vous etes très pro en informatique . Alors que moi non j'ai 52 ans
> mais je veux apprendre ainsi qu'un autre problème qui me suit c'est le
> faite de ne pas parler l'anglais . Mais aussi j'ai la bonne volonté
> d'y apprendre .
>   Avec tout le respect que je vous dois je vous prie de bien vouloir
> m'écrire en français ou en arabe . Je suis content d'avoir fait votre
> connaissance . Tous mes respects à l'expditeur de l'E-mail ainsi qu'au
> GROUPE V8-USERS
>                                                               BELHADJ
> MOUNIR Good Luck
>
> 2012/1/26  <[email protected]>:
>>   Today's Topic Summary
>>
>> Group: http://groups.google.com/group/v8-users/topics
>>
>> newbie crash problem [1 Update]
>>
>>  newbie crash problem
>>
>> Juwon Lee <[email protected]> Jan 25 08:48PM -0800
>>
>> Hi all
>>
>> I am new to v8.
>> and I'm trying to make some test codes.
>>
>> Below is my test code.
>> It crashes sometimes when executing Context::New function.
>> Could someone please let me know what the problem is?
>>
>> #include "stdafx.h"
>> #include "v8.h"
>> #include <process.h>
>> #include <windows.h>
>>
>> using namespace v8;
>>
>> static Handle<Value> Print(const Arguments& args)
>> {
>> if (!args.Length())
>> return Undefined();
>> HandleScope scope;
>> Handle<Value> arg = args[0];
>> String::AsciiValue ascii(arg);
>> printf("%s\n", *ascii);
>> return Undefined();
>> }
>>
>> void __cdecl th(void *arg)
>> {
>> Isolate *isolate = Isolate::New();
>> {
>> Isolate::Scope isolate_scope(isolate);
>>
>> HandleScope handle_scope;
>> char code[1024];
>> sprintf(code, "print('thread %d(1)');print('thread %d(2)');", (int)arg,
>> (int)arg);
>> Handle<ObjectTemplate> global = ObjectTemplate::New();
>> global->Set(String::New("print"), FunctionTemplate::New(Print));
>> Persistent<Context> context = Context::New(NULL, global);
>> {
>> Context::Scope context_scope(context);
>>
>> Handle<String> source = String::New(code);
>> Handle<Script> script = Script::Compile(source);
>>
>> while(1)
>> Handle<Value> result = script->Run();
>> }
>>
>> context.Dispose();
>> }
>> isolate->Dispose();
>> }
>>
>> int _tmain(int argc, _TCHAR* argv[])
>> {
>> _beginthread(th, 0, (void *)1);
>> _beginthread(th, 0, (void *)2);
>> _beginthread(th, 0, (void *)3);
>> _beginthread(th, 0, (void *)4);
>> while (1)
>> Sleep(10000);
>> return 0;
>> }
>>
>>
>>
>> You received this message because you are subscribed to the Google Group
>> v8-users.
>> You can post via email.
>> To unsubscribe from this group, send an empty message.
>> For more options, visit this group.
>>
>> --
>> v8-users mailing list
>> [email protected]
>> http://groups.google.com/group/v8-users
>
>
>
> --
> Bonne Chance-BELHADJ MOUNIR
>
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to