Home » Community » Coffee corner » [SOLVED]Sharing Ptr of object to dll
Re: Sharing Ptr of object to dll [message #52178 is a reply to message #52175] |
Fri, 02 August 2019 13:19 |
|
Xemuth
Messages: 387 Registered: August 2018 Location: France
|
Senior Member |
|
|
mirek wrote on Fri, 02 August 2019 09:02Xemuth wrote on Thu, 01 August 2019 15:09
Someone have an idea ? maybe I can't share object between my Dll instance of object and my programm ?
Literally a lot of things can go wrong here. For starters, try to "USEMALLOC". Anyway, in general, sharing should work.
Mirek
Hello Mirek, I have try and it change nothing but I have digging deeply my code and the crash occure when, in the dll I want do this kind of thing :
req.New(); //req is HttpRequest Object, When I'm in debug mode, the crash occure here
Json json("content", message);
req.Url(baseUrl); // When I'm in release the crash occure here
req.Path("/api/channels/" + channel + "/messages");
req.POST();
req.Post(json);
String response =req.Execute();
LOG(response);
ValueMap m = ParseJSON(response);
ApplyRateLimits(req);
LOG(req.GetContent());
Seems like I have trouble to use HttpRequest within DLl even if Core and Core/SSL are built in.
May Request/Socket work differently when built in Dll ?
|
|
|
Goto Forum:
Current Time: Wed Apr 24 22:07:32 CEST 2024
Total time taken to generate the page: 0.85746 seconds
|