On Sun, Jan 20, 2013 at 1:27 AM, Paul K <[email protected]> wrote:
> Hi All,
>
> Does anyone have an example of how multiple views can be used in
> wxlua? I looked at the documentation here
> http://www.yellowbrain.com/stc/mult_views.html, but even a simple code
> like this crashes the app:
>
> local pointer = ed:GetDocPointer()
> ed:ReleasePointer(pointer)
You need to increase the ref count of the doc pointer.
AddRefDocument(origEditor->GetDocPointer());
SetDocPointer(origEditor->GetDocPointer());
and then release it before the refed editor is destroyed.
ReleaseDocument(GetDocPointer());
Hope this helps,
John
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users