How to use the code written in App.Xaml.cs in Windows Phone 8 in Windows Phone 8.1 Universal Apps

i have a App.xaml.cs file in Windows Phone 8.0 , amd i want to use the code in that file to make work with App.xaml.cs file in Windows Phone 8.1 Universal Apps
My Windows Phone 8 App.xaml.cs file is like as below
namespace OnlineVideos
public partial class App : Application
#region Initialization
public static dynamic group = default(dynamic);
public static dynamic grouptelugu = default(dynamic);
public static ShowList webinfo = default(ShowList);
public static WebInformation webinfotable = new WebInformation();
AppInitialize objCustomSetting;
IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;
DispatcherTimer timer;
IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication();
public static bool AdStatus = false;
public App()
UnhandledException += Application_UnhandledException;
if (System.Diagnostics.Debugger.IsAttached)
Application.Current.Host.Settings.EnableFrameRateCounter = true;
//RootFrame.UriMapper = Resources["UriMapper"] as UriMapper;
AppSettings.NavigationID = false;
objCustomSetting = new AppInitialize();
timer = new DispatcherTimer();
Constants.DownloadTimer = timer;
InitializeComponent();
InitializePhoneApplication();
#endregion
#region "Private Methods"
void StartDownloadingShows()
timer.Interval = TimeSpan.FromSeconds(10);
timer.Tick += new EventHandler(timer_Tick);
timer.Start();
void timer_Tick(object sender, EventArgs e)
try
BackgroundWorker worker = new BackgroundWorker();
worker.DoWork += new DoWorkEventHandler(StartBackgroundDownload);
worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
worker.RunWorkerAsync();
catch (Exception)
void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
if (AppSettings.StopTimer == "True")
timer.Stop();
AppSettings.StopTimer = "False";
async void StartBackgroundDownload(object sender, DoWorkEventArgs e)
switch (AppSettings.BackgroundAgentStatus)
case SyncAgentStatus.DownloadFavourites:
if (AppSettings.DownloadFavCompleted == false && AppSettings.SkyDriveLogin == true)
Deployment.Current.Dispatcher.BeginInvoke(() =>
timer.Stop();
ReStoreFavourites reStoreFav = new ReStoreFavourites();
await reStoreFav.RestorefavFolder(ResourceHelper.ProjectName);
Deployment.Current.Dispatcher.BeginInvoke(() =>
AppSettings.BackgroundAgentStatus = SyncAgentStatus.UploadFavourites;
timer.Start();
else
AppSettings.BackgroundAgentStatus = SyncAgentStatus.UploadFavourites;
break;
case SyncAgentStatus.UploadFavourites:
bool result = Task.Run(async () => await Storage.FavouriteFileExists("Favourites.xml")).Result;
if (AppSettings.SkyDriveLogin == true && result)
Deployment.Current.Dispatcher.BeginInvoke(() =>
timer.Stop();
UploadFavourites upLoad = new UploadFavourites();
await upLoad.CreateFolderForFav(ResourceHelper.ProjectName);
Deployment.Current.Dispatcher.BeginInvoke(() =>
AppSettings.BackgroundAgentStatus = SyncAgentStatus.DownloadParentalControlPreferences;
timer.Start();
else
AppSettings.BackgroundAgentStatus = SyncAgentStatus.DownloadParentalControlPreferences;
break;
case SyncAgentStatus.RestoreStory:
if (AppSettings.DownloadStoryCompleted == false && AppSettings.SkyDriveLogin == true && (ResourceHelper.ProjectName == "Story Time" || ResourceHelper.ProjectName == "Vedic Library"))
Deployment.Current.Dispatcher.BeginInvoke(() =>
timer.Stop();
RestoreStory restore = new RestoreStory();
//if (ResourceHelper.ProjectName == "Story Time")
await restore.RestoreFolder("StoryRecordings");
//else
// await restore.RestoreFolder("VedicRecordings");
Deployment.Current.Dispatcher.BeginInvoke(() =>
AppSettings.BackgroundAgentStatus = SyncAgentStatus.UploadStory;
timer.Start();
else
AppSettings.BackgroundAgentStatus = SyncAgentStatus.UploadStory;
break;
case SyncAgentStatus.UploadStory:
if (AppSettings.SkyDriveLogin == true && (ResourceHelper.ProjectName == "Story Time" || ResourceHelper.ProjectName == "Vedic Library"))
Deployment.Current.Dispatcher.BeginInvoke(() =>
timer.Stop();
UploadStory st = new UploadStory();
//if (ResourceHelper.ProjectName == "Story Time")
await st.CreateFolder("StoryRecordings");
//else
// await st.CreateFolder("VedicRecordings");
Deployment.Current.Dispatcher.BeginInvoke(() =>
AppSettings.BackgroundAgentStatus = SyncAgentStatus.DownloadFavourites;
timer.Start();
else
AppSettings.BackgroundAgentStatus = SyncAgentStatus.DownloadFavourites;
break;
default:
ShowDownloader.StartBackgroundDownload(timer);
break;
#endregion
#region "Application Events"
private void pop_Opened_1(object sender, EventArgs e)
DispatcherTimer timer1 = new DispatcherTimer();
timer1.Interval = TimeSpan.FromSeconds(5);
timer1.Tick += timer1_Tick;
timer1.Start();
void timer1_Tick(object sender, EventArgs e)
(sender as DispatcherTimer).Stop();
Border frameBorder = (Border)VisualTreeHelper.GetChild(Application.Current.RootVisual, 0);
Popup Adc = frameBorder.FindName("pop") as Popup;
Adc.IsOpen = false;
private void Application_Launching(object sender, LaunchingEventArgs e)
SQLite.SQLiteAsyncConnection conn = new SQLite.SQLiteAsyncConnection(Constants.DataBaseConnectionstringForSqlite);
Constants.connection = conn;
AppSettings.AppStatus = ApplicationStatus.Launching;
AppSettings.StopTimer = "False";
objCustomSetting.CheckElementSection();
SyncButton.Login();
if (AppSettings.IsNewVersion == true)
AppSettings.RatingUserName = AppResources.RatingUserName;
AppSettings.RatingPassword = AppResources.RatingPassword;
AppSettings.ShowsRatingBlogUrl = AppResources.ShowsRatingBlogUrl;
if (ResourceHelper.AppName == Apps.Online_Education.ToString() || ResourceHelper.AppName == Apps.DrivingTest.ToString())
AppSettings.QuizRatingBlogUrl = AppResources.QuizRatingBlogUrl;
AppSettings.LinksRatingBlogUrl = AppResources.LinksRatingBlogUrl;
AppSettings.ShowsRatingBlogName = AppResources.ShowsRatingBlogName;
AppSettings.LinksRatingBlogName = AppResources.LinksRatingBlogName;
if (ResourceHelper.AppName == Apps.Online_Education.ToString() || ResourceHelper.AppName == Apps.DrivingTest.ToString())
AppSettings.QuizLinksRatingBlogName = AppResources.QuizLinksRatingBlogName;
Constants.UIThread = true;
group=OnlineShow.GetTopRatedShows().Items;
grouptelugu = OnlineShow.GetRecentlyAddedShows().Items;
Constants.UIThread = false;
StartDownloadingShows();
private void Application_Activated(object sender, ActivatedEventArgs e)
AppSettings.AppStatus = ApplicationStatus.Active;
if (ResourceHelper.AppName == Apps.Kids_TV_Pro.ToString())
AppSettings.ShowAdControl = false;
private void Application_Deactivated(object sender, DeactivatedEventArgs e)
AppSettings.AppStatus = ApplicationStatus.Deactive;
AppState.RingtoneStatus = "TombStoned";
private void Application_Closing(object sender, ClosingEventArgs e)
AppSettings.AppStatus = ApplicationStatus.Closing;
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
FlurryWP8SDK.Api.LogError("Error at Application_UnhandledException in App.xaml.cs", e.ExceptionObject.InnerException);
if (System.Diagnostics.Debugger.IsAttached)
System.Diagnostics.Debugger.Break();
else
Exceptions.SaveOrSendExceptions("Exception in Application_UnhandledException Method In App.xaml.cs file.", e.ExceptionObject);
e.Handled = true;
return;
#endregion
#region Phone application initialization
public PhoneApplicationFrame RootFrame { get; private set; }
// Avoid double-initialization
private bool phoneApplicationInitialized = false;
// Do not add any additional code to this method
private void InitializePhoneApplication()
if (phoneApplicationInitialized)
return;
// Create the frame but don't set it as RootVisual yet; this allows the splash
// screen to remain active until the application is ready to render.
RootFrame = new PhoneApplicationFrame();
if (App.Current.Resources["AdVisible"] as string == "True")
RootFrame.Style = App.Current.Resources["RootFrameStyle"] as Style;
RootFrame.ApplyTemplate();
RootFrame.Navigated += CompleteInitializePhoneApplication;
// Handle navigation failures
RootFrame.NavigationFailed += RootFrame_NavigationFailed;
// Ensure we don't initialize again
phoneApplicationInitialized = true;
//NonLinearNavigationService.Instance.Initialize(RootFrame);
private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
if (System.Diagnostics.Debugger.IsAttached)
System.Diagnostics.Debugger.Break();
else
Exceptions.SaveOrSendExceptions("Exception in RootFrame_NavigationFailed Method In App.xaml.cs file.", e.Exception);
e.Handled = true;
return;
// Do not add any additional code to this method
private void CompleteInitializePhoneApplication(object sender, NavigationEventArgs e)
// Set the root visual to allow the application to render
if (RootVisual != RootFrame)
RootVisual = RootFrame;
// Remove this handler since it is no longer needed
RootFrame.Navigated -= CompleteInitializePhoneApplication;
#endregion
Mohan Rajesh Komatlapalli

Basically you are asking as how to port silverlight to Xaml (RT). Go one by one converting each API from silverlight to XAML, like IsolatedStorage isn't there in RT, so look for its alternative etc.
See here the namespace/class mappings : Windows Phone Silverlight to Windows Runtime namespace and class mappings
http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

Similar Messages

  • How to use the code to update to mountain lion?

    hi
    How can you use the code tu free update to Mountain Lion?  thks

    Basically you are asking as how to port silverlight to Xaml (RT). Go one by one converting each API from silverlight to XAML, like IsolatedStorage isn't there in RT, so look for its alternative etc.
    See here the namespace/class mappings : Windows Phone Silverlight to Windows Runtime namespace and class mappings
    http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

  • How to use the code posted in the thread

    Quick question. How do i use the code posted in the threads, because when I copy and past in the program it is not formatted well.
    Per example : In the below link there is some code which i want to use, but when i copy and paste in the ABAP editor i get lot of syntax errors.
    Re: BDC
    Thanks.

    Shiva,
    I dont think you can do much about this because the code which you mentioned in that thread should have been kept using markup 
    Thanks
    Bala Duvvuri
    Edited by: Bala Duvvuri on Jul 15, 2010 7:29 PM

  • How to compare the codes written in two different windows?

    Hi ,
    I have a long code written for a FM.
    Now I have got the same code in a notepad.
    I want to check weather the codes in the two windows are exactly alike.
    Is there any easy way to do this?

    hi Harshit Rungta ,
    T-code SE39 - ABAP split screen editor use to compare 2 different programs ,function modules ,class
    just create a function module that available in notepad and compare the code which u have already .
    choose the function radio button while checking the function module .
    regards
    chinnaiya

  • Example on how to use the NI "saving a front panel img to file" on a prog.

    New to the labview program - I'm trying to save the front panel of the displayed output to file. I downloaded "Panel_Image_to_File.zip" from the NI site. But I'm having problem using the code to our program so as to save the image as a jpeg.
    A simple example on how to use the code or any other code that will be able to save the front panel to a specified folder will be great.

    All you should need is an invoke node of VI class and the the method Get Panel Image. Wire the Image Data output to the Write JPEG File on the Graphics & Sound>Graphics Formats palette. The Invoke Node is on the application Control palette. When it's on the diagram, right click and select Class>VI Server>VI. Right click on it again and select Methods>Get Panel Image.
    Attachments:
    Save to jpg.jpg ‏10 KB

  • How to use the t-code vf31 tor taking print out of invoice

    Hi,
      How to use the t-code vf31 for taking print out,am getting an error like no message for initial processing exist,
    venu

    Hi,
    Please find the steps
    Output type                     RD00
    Transmission medium             1
    Sort order                      01
    Processing mode                 1
    Please give the oppropriate fields,
    if the still error persists  check the configuration in NACE transaction code.
    thanks
    Kuntla

  • How to Use the JAVA SCRIPT code in .htm page of the component

    Hi .
    In my requirement i have to use Java Script Function in .htm code ..how to use the java script code and functions in .htm???
    thank you
    B.Mani

    Check this document  [Arun's Blog|http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebClientUI-TalkingwithJava+Script]
    Regards
    Kavindra

  • When i update apps on my iphone they need the ID that i used when i downloaded these app and i forgot this ID and a make a new ID how i used the new one to update these apps thanks

    Hello all,
    when i update apps on my iphone they need the ID that i used when i downloaded these apps and i forgot this ID and a make a new ID
    How i used the new one to update these apps?
    thanks

    Your device can hold apps from multiple IDs, but to update them you have to swicth identities which is time consuming. If possible use only the one ID. If you need to reset the password for your old ID visit My Apple ID.
    tt2

  • I don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    i don't know how to use the canlendars function and the notes are kind of messy code,anyone help me

    Step by step:
    1. On your main vi Front Panel, create your boolean indicator.
    2. On the block diagram, right click the new boolean indicator and select Create - Reference.
    3. On sub-vi front panel, create boolean indicator (or use one that is already created).
    4. On sub-vi front panel, create a reference (Controls Palette - Refnum - Control Refnum).
    5. Right click on the newly created Refnum and select Select Vi Server Class - Generic - GObject - Control - Boolean. The refnum label changes to BoolRefnum.
    6. On sub-vi block diagram, create Property Node (Functions - Application Control - Property Node). Find the BoolRefnum and move it close to the new Property Node.
    7. Wire the BoolRefnum to the reference input of the property node.
    8.
    Right click on the property node and select Change to All Write.
    9. Move mouse to point to Visible inside property node box, left click and select Value.
    10. Wire the boolean indicator from step 3 to the Value input of the property node.
    11. On sub-vi front panel, right click on icon and select Show Connector.
    12. Click on empty connector spot then click on the new BoolRefnum. Save your sub-vi.
    13. On main vi block diagram, connect refernece created in step 2 to the new connector terminal of sub-vi.
    14. Save and run.
    Here are the modified vi's.
    - tbob
    Inventor of the WORM Global
    Attachments:
    Pass_a_Reference.vi ‏20 KB
    GL_Flicker_mod.vi ‏83 KB

  • HT1382 How to use the i-tunes to backup my iphone apps, thanks

    How to use the i-tunes to backup my iphone apps, thanks

    Plug the iPhone into the computer.
    From the Summary tab, select the option to backup to iTunes on the computer.
    Sync.

  • How to Use the Wiki Page Ribbon Functionalists in own APP development?

    Hello Pros,
    I am developing an APP tool for dynamically modifying the contents on the Wiki Page on SharePoint for some format purpose. I hope to use the Ribbon functionalists provided by Wiki Page Editor like configuring the font on that APP. I have an editable div
    on the page and hope to use the Ribbon Buttons as used in the Wiki Page to control the contents of this div. Is it possible or I just have to develop those functionalists by myself instead of loading the Ribbon to my APP.
    And other problems I have got the solutions like accessing to my APP with parameter or using the REST to control the contents on Wiki Page.
    Hope to hear your responses. Thanks.

    I've not used JBuilder much, but if it has ant support, then it should
    be pretty straight-forward.
    -- Rob
    Rick Ni wrote:
    How to use the "split development directory structure" in JBuilder9 ?
    Have /APP-INF supported ?

  • How to use the App Store wish list

    I Can't figure out how to use the App Store wish list...if anybody can answer this for me I would love that.

    Hi dlissor,
    The following article describes the Wish List and how to use it -
    iTunes Store: How to use Wish List
    http://support.apple.com/kb/HT1368
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • How to use the LAN NetStream for peer transmission, please help, write a sample code

    How to use the LAN NetStream for peer transmission, please help, write a sample code

    No reply, I reply, Oh

  • How to use unlock code for iPhone 4s

    I finished my contract with Virgin Mobile USA and requested that they unlock my iPhone 4S so I can use it with other carriers. Virgin processed the unlocking, they provided me an "unlock code" and told me that I need to provide that code to my new carrier to finalize the unlock process. I have taken it to ATT, Verizon and have asked other carriers, and none of them know how to use the unlock code. I have restored my iPhone via iTunes to try and see if the unlock would go through, but had no luck. I've unlocked other iPhones in the past with other operators, but have never needed a code... Can someone help me? Thanks!

    I have the same problem. I did the 'update' which deleted ALL of my information. I could not even turn my phone on. I eventually restored my phone, because I had synced EVERYTHING before trying to to the update. SOMEHOW, in spite of making 100% that my contact button was selected in the sync, when I restored and then went to the last sync, none of my contacts were there. It is disgusting that in 2012, Apple has not figured out how to do something as simple as resotre contacts as many times as I plug the phone into my computer...
    Many of my contacts are in third world countries, and do not have email. I have lost their contact forever. It is very saddening and frustrating. Iphone sees fit to keep pictures/music/and stupid game apps before keeping CONTACTS?!?!?!?!?!?!?!?!? SOOOOOOoooooooooo very disappointing Apple.
    If I had known how unreliable Apple was before attemping what seemed like a simple 'upgrade', I would have NEVER done the upgrade. My phone was fine before, but I figured, oh you know, it will not hurt to do the upgrade. I could have written all of the numbers down BUT the site said (yes I did check before) that as long as you sync, if something goes wrong, you can go back to the last sync.
    NOT TRUE!!!
    Disgusted.

  • JNI - How to use the error reporting mechanism?

    I've developed a C++ DLL which is loaded from a commercial Win32 application (not written by me) as a plug-in for external calculations. On its initialization the C++ DLL launches the Java VM via the JNI invocation interface. When the DLL functions are called by the application, they forward the calls to Java objects inside the Java VM, again via JNI invocation interface.
    This works well, but I have encountered a weird error.
    From Java I open a JFrame containing a JTextArea as small console for debug output messages. If I turn output to this debug console off (my printToConsole routine checks whether a boolean flag is set), the string concatenation operator may lead to a crash of the Java VM.
    For example, if in one of the Java functions called from the
    DLL via JNI invocation interface the following is the first statement,
    it leads to a crash of the Java VM and the application that loaded the C++ proxy DLL.
    String test=""+Math.random(); // String test not used later
    Interestingly, if I comment this statement out, the Java code works fine WITHOUT any crash. I've already thought about potential races and synchronization issues in my code, but I don't see where this is the case. And the string concatenation error fails as well, if I insert sleep() statements in front of it and at other places in the code. However, if I turn on log messages printed to my JFrame debug console (containing a JTextArea), the String concatenation works without problems.
    So maybe the JNI interface has a bug and affects the Java VM; I don't see where my JNI code is wrong.
    One problem is that I do not get any stdout output, as the C++ proxy DLL is loaded by the Windows application, even if I start the Windows application from the DOS command line (under Windows).
    Does anyone know how to use the error reporting mechanism?
    http://java.sun.com/j2se/1.4.2/docs/guide/vm/error-handling.html
    Is it possible that the JVM, when it crashes, writes debug information about the crash into a file instead of stdout/stderr?
    My C++ proxy DLL was compiled in debug mode, but the commercial application (which loaded the DLL) is very likely not.
    I do not know hot to find the reason why the String concatenation fails inside the Java function called from the C++ DLL via JNI.

    Yes, I've initially thought about errors in the C++ code too. But the C++ code is actually very simple and short. It doesn't allocate anything on the C++ side. It allocates a couple of ByteBuffers inside the Java VM however via JNI invocation interface calls of env->NewDirectByteBuffer(). The native memory regions accessed via the ByteBuffers are allocated not by my own C++ code, but by the program that calls my DLL (the program is Metastock).
    The interesting thing is that everything works fine if output to my debug console is enabled, which means that in the Java print routine getConsoleLoggingState() returns true and text is appended to the jTextArea.
    static synchronized void print(String str)
    { MetaStockMonitor mMon=getInstance();
    if ( mMon.getFileLoggingState() && mMon.logFileWriter!=null) {
    mMon.logFileWriter.print(str);
    mMon.logFileWriter.flush();
    if ( mMon.getConsoleLoggingState() ) {
    mMon.jTextArea1.append(str);
    Only if output to the JTextArea is turned off (ie. getConsoleLoggingState()==false), the crash happens when the FIRST statement in the Java routine called via JNI invocation interface is a (useless) String concatenation operation, as described above.
    String test=""+Math.random(); // String test not used later
    Moreover, the crash happens BEFORE the allocated ByteBuffer objects are accessed in the Java code. But again, if console output is turned on, it works stable. If console output is turned off, it works when the (useless) String concatenation operation is removed in the Java routine called from C++.
    I've already thought about potential races (regarding multiple threads), but this can be ruled out in my case. It almost appears as if the JVM can have problems when called by the invocation interface (I tested it with Java 1.4.2 b28).
    All the calls between C++ and Java go ALWAYS in the direction from C++ code to Java. Unfortunately, there is no special JRE version with extensive logging capabilities to facilitate debugging. And the problem is not easily reproducible either.
    JNIEnv* JNI_GetEnv()
    JNIEnv *env;
    cached_jvm->AttachCurrentThread((void**)&env,NULL);
    fprintf(logfile,"env=%i\n",env);
    fflush(logfile);
    return env;
    // function called by Metastock's MSX plug-in interface
    BOOL __stdcall createIndEngine (const MSXDataRec *a_psDataRec,
    const MSXDataInfoRecArgsArray *a_psDataInfoArgs,
    const MSXNumericArgsArray *a_psNumericArgs,
    const MSXStringArgsArray *a_psStringArgs,
    const MSXCustomArgsArray *a_psCustomArgs,
    MSXResultRec *a_psResultRec)
    a_psResultRec->psResultArray->iFirstValid=0;
    a_psResultRec->psResultArray->iLastValid=-1;
    jthrowable ex;
    jmethodID mid;
    JNIEnv* env=JNI_GetEnv();
    jobject chart=getChart(env, a_psDataRec);
    if ( chart==NULL) {
    return MSX_ERROR;
    jobject getChart (JNIEnv* env, const MSXDataRec *a_psDataRec)
    jthrowable ex;
    jmethodID mid;
    int closeFirstValid, closeLastValid;
    closeFirstValid=a_psDataRec->sClose.iFirstValid;
    closeLastValid=a_psDataRec->sClose.iLastValid;
    long firstDate, firstTime;
    if (closeFirstValid>=1 && closeFirstValid<=closeLastValid) {
    firstDate = a_psDataRec->psDate[closeFirstValid].lDate;
    firstTime = a_psDataRec->psDate[closeFirstValid].lTime;
    } else {
    firstDate=0;
    firstTime=0;
    jclass chartFactoryClass = env->FindClass("wschwendt/metastock/msx/ChartFactory");
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Cannot find class ChartFactory\n");
    printSBufViaJava(sbuf);
    return NULL;
    mid = env->GetStaticMethodID(chartFactoryClass, "getInstance", "()Lwschwendt/metastock/msx/ChartFactory;");
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Cannot find method ID for ChartFactory.getInstance()\n");
    printSBufViaJava(sbuf);
    return NULL;
    jobject chartFactory=env->CallStaticObjectMethod(chartFactoryClass, mid);
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Exception while calling ChartFactory.getInstance()");
    printSBufViaJava(sbuf);
    return NULL;
    mid = env->GetMethodID(chartFactoryClass, "getChartID", "(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;IIIIIII)F");
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Cannot find method ID for ChartFactory.getChartID()\n");
    printSBufViaJava(sbuf);
    return NULL;
    jobject symbolBuf=env->NewDirectByteBuffer(a_psDataRec->pszSymbol, strlen(a_psDataRec->pszSymbol) );
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Cannot allocate symbolBuf\n");
    printSBufViaJava(sbuf);
    return NULL;
    jobject securityNameBuf=env->NewDirectByteBuffer(a_psDataRec->pszSecurityName, strlen(a_psDataRec->pszSecurityName) );
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Cannot allocate securityNameBuf\n");
    printSBufViaJava(sbuf);
    return NULL;
    jobject securityPathBuf=env->NewDirectByteBuffer(a_psDataRec->pszSecurityPath, strlen(a_psDataRec->pszSecurityPath) );
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Cannot allocate securityPathBuf\n");
    printSBufViaJava(sbuf);
    return NULL;
    jobject securityOnlineSourceBuf=env->NewDirectByteBuffer(a_psDataRec->pszOnlineSource, strlen(a_psDataRec->pszOnlineSource) );
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Cannot allocate onlineSourceBuf\n");
    printSBufViaJava(sbuf);
    return NULL;
    // Java Function call leads to crash, if console output is turned off and
    // the first statement in the Java routine is a (useless) string concatenation.
    // Otherwise it works stable.
    jfloat chartID=env->CallFloatMethod(chartFactory, mid, securityNameBuf, symbolBuf,
    securityPathBuf, securityOnlineSourceBuf, (jint)(a_psDataRec->iPeriod),
    (jint)(a_psDataRec->iInterval), (jint)(a_psDataRec->iStartTime),
    (jint)(a_psDataRec->iEndTime), (jint)(a_psDataRec->iSymbolType),
    (jint)firstDate, (jint)firstTime );
    if (ex= env->ExceptionOccurred() ) {
    env->ExceptionDescribe();
    env->ExceptionClear();
    sprintf(sbuf, "DLL: Exception while calling ChartFactory.getChartID()");
    printSBufViaJava(sbuf);
    return NULL;

Maybe you are looking for

  • No Drag-n-Drop feature for my mounted Adobe Drive in my Adobe Bridge CC

    I've developed a custom Drive Connector for our storage server. In Adobe Bridge CC, after connecting and auto-mounting to our server through Adobe Drive 5, there is no Drag-n-Drop feature for my data inside the mounted drive. But, if I browse other d

  • JMenuItem ActionEvent Dinamically - Problems

    Hi, friends I am trying to use a JMenu and a JMenuItem wich are dinamicaly constructed getting data using a Oracle's Database Table. They are working fine, but I can't figured out how can I add ActionEvent dinamicaly. The piece of my code is down her

  • Is anyone else observing black lines all around applications windows in Mavericks?

    Note that when I am in application windows am observing lines around my applistion windows as if there ewre multiple echos of the window and this happened since I upgraded from Mountain Lion to Mavericks.  I will attempt to insert a screen shot of th

  • Disable processing status "Locked" for tempaltes

    A template in cProjects has these processing statuses: - created - released - locked - obsolete I would to deactivate the status "locked". Is this possible? If yes, is it also possible if there are already templates that are "locked", or should i "un

  • Connect External HD to 2 G4's ?????

    Can a external HD be connected to 2 G4s at the same time via Firewire ? like a commen Hard drive.........i know i can share files via network or file transfer (which is kind of a hassle) im curious if i could simply plug 2 FW from 2 G4s and share tha